You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move output tables above explanations for better UX
Reorganized Cesium tutorial to show query results immediately after
clicking a point, before technical explanations.
Changes:
- Moved "Samples at Location" section (HTML table output) directly
after "getGeoRecord (selected)" section
- "Understanding Paths in the iSamples Property Graph" now appears
after results
- Removed duplicate output section from old location
Benefits:
- Users see results immediately without scrolling through explanations
- Technical details remain available below for those interested
- Cleaner, more intuitive information hierarchy
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
This query implements Eric Kansa's authoritative `get_samples_at_geo_cord_location_via_sample_event` function from [open-context-py](https://github.com/ekansa/open-context-py/blob/staging/opencontext_py/apps/all_items/isamples/isamples_explore.py).
922
+
923
+
**Query Strategy (Path 1 Only)**:
924
+
- Starts at a GeospatialCoordLocation (clicked point)
925
+
- Walks **backward** via `sample_location` edges to find SamplingEvents that reference this location
926
+
- From those events, finds MaterialSampleRecords produced by them
927
+
- Requires site context (INNER JOIN on `sampling_site` → SamplingSite)
- Site context: `sample_site_label`, `sample_site_pid`
933
+
- Media: `sample_thumbnail_url`, `has_thumbnail`
934
+
935
+
**Ordering**: Prioritizes samples with images (`ORDER BY has_thumbnail DESC`)
936
+
937
+
**Important**: This query only returns samples whose **sampling events directly reference this geolocation** via `sample_location` (Path 1). Samples that reach this location only through their site's `site_location` (Path 2) are **not included**. This means site marker locations may return 0 results if no events were recorded at that exact coordinate.
This query implements Eric Kansa's authoritative `get_samples_at_geo_cord_location_via_sample_event` function from [open-context-py](https://github.com/ekansa/open-context-py/blob/staging/opencontext_py/apps/all_items/isamples/isamples_explore.py).
1227
-
1228
-
**Query Strategy (Path 1 Only)**:
1229
-
- Starts at a GeospatialCoordLocation (clicked point)
1230
-
- Walks **backward** via `sample_location` edges to find SamplingEvents that reference this location
1231
-
- From those events, finds MaterialSampleRecords produced by them
1232
-
- Requires site context (INNER JOIN on `sampling_site` → SamplingSite)
- Site context: `sample_site_label`, `sample_site_pid`
1238
-
- Media: `sample_thumbnail_url`, `has_thumbnail`
1239
-
1240
-
**Ordering**: Prioritizes samples with images (`ORDER BY has_thumbnail DESC`)
1241
-
1242
-
**Important**: This query only returns samples whose **sampling events directly reference this geolocation** via `sample_location` (Path 1). Samples that reach this location only through their site's `site_location` (Path 2) are **not included**. This means site marker locations may return 0 results if no events were recorded at that exact coordinate.
0 commit comments