Skip to content

Commit 5475b5b

Browse files
rdhyeeclaude
andcommitted
Add property distribution analysis to parquet_cesium tutorial
Added analysis section to understand the range of properties (predicates) in the triple store structure, showing count distribution and totals for better insight into the graph database schema. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1c69a40 commit 5475b5b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

tutorials/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ With iSamples Central currently unavailable, all tutorials now use **geoparquet
3333
## Why Geoparquet?
3434

3535
Our tutorials showcase how **geoparquet + DuckDB-WASM** enables:
36+
3637
-**Universal access**: No software installation required
3738
-**Fast analysis**: 5-10x faster than traditional approaches (e.g., downloading full CSV datasets and analyzing them locally). [See benchmark](https://duckdb.org/2023/05/10/duckdb-wasm.html)
3839
-**Memory efficient**: Analyze 300MB datasets using <100MB browser memory

tutorials/parquet_cesium.qmd

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,4 +406,40 @@ viewof otypeTable = {
406406

407407
Total records by object type: ${otypeCounts.reduce((sum, row) => sum + row.count, 0).toLocaleString()}
408408

409+
## Property Distribution Analysis
410+
411+
Understanding the range of properties (predicates) in this graph database structure:
412+
413+
```{ojs}
414+
//| code-fold: true
415+
propertyDistribution = {
416+
const query = `SELECT p as property, COUNT(*) as count FROM nodes WHERE p IS NOT NULL GROUP BY p ORDER BY count DESC`;
417+
const data = await loadData(query, [], "loading_properties");
418+
return data;
419+
}
420+
```
421+
422+
<div id="loading_properties">Loading property distribution...</div>
423+
424+
```{ojs}
425+
//| code-fold: true
426+
viewof propertyTable = {
427+
const data_table = Inputs.table(propertyDistribution, {
428+
header: {
429+
property: "Property (Predicate)",
430+
count: "Count"
431+
},
432+
format: {
433+
count: d => d.toLocaleString()
434+
},
435+
layout: "auto"
436+
});
437+
return data_table;
438+
}
439+
```
440+
441+
Total records with properties: ${propertyDistribution.reduce((sum, row) => sum + row.count, 0).toLocaleString()}
442+
443+
Unique properties in the dataset: ${propertyDistribution.length.toLocaleString()}
444+
409445

0 commit comments

Comments
 (0)