100 lines
3.3 KiB
Markdown
100 lines
3.3 KiB
Markdown
# Botanical Garden & Zoo (B) Class Queries - Quick Reference
|
|
|
|
## Latest Query
|
|
|
|
**File**: `botanical_query_updated_20251113T165219.sparql`
|
|
**Date**: 2025-11-13T16:52:19+00:00
|
|
**Status**: Ready for execution (not yet run)
|
|
|
|
## Query Behavior
|
|
|
|
### What It Does ✅
|
|
- **Traverses** through all subclass relationships from base classes
|
|
- **Includes** curated Q-numbers in traversal paths
|
|
- **Excludes** curated Q-numbers from final results
|
|
- **Returns** NEW hyponyms not in curated vocabulary
|
|
|
|
### What It Does NOT Do ❌
|
|
- Does NOT block traversal through curated items
|
|
- Does NOT prevent discovery of their subclasses
|
|
- Does NOT return items already in hyponyms_curated.yaml
|
|
|
|
## Base Classes (17 total)
|
|
|
|
1. Q167346 - botanical garden
|
|
2. Q43501 - zoo
|
|
3. Q27686 - aquarium
|
|
4. Q181916 - herbarium
|
|
5. Q1855774 - natural history museum
|
|
6. Q811430 - wildlife reserve
|
|
7. Q179049 - nature reserve
|
|
8. Q46169 - national park
|
|
9. Q473972 - protected area
|
|
10. Q158675 - biosphere reserve
|
|
11. Q2322153 - safari park
|
|
12. Q7377341 - wildlife sanctuary
|
|
13. Q15713570 - marine park
|
|
14. Q5162904 - conservation area
|
|
15. Q1391249 - seed bank
|
|
16. Q6658431 - living collection
|
|
17. Q35145263 - natural monument
|
|
|
|
## Exclusions
|
|
|
|
- **Total**: 573 Q-numbers
|
|
- **Source**: `/data/wikidata/GLAMORCUBEPSXHFN/hyponyms_curated.yaml`
|
|
- **Sections**: All 13 GLAMORCUBEPSXHFN classes
|
|
- **Purpose**: Filter curated items from results (not from traversal)
|
|
|
|
## Expected Results
|
|
|
|
### Should Appear ✅
|
|
- Tropical botanical garden (subtype of botanical garden)
|
|
- Children's zoo (subtype of zoo)
|
|
- Marine wildlife sanctuary (subtype of wildlife sanctuary)
|
|
- Alpine botanical garden (specific garden type)
|
|
- Geopark (subtype of protected area)
|
|
|
|
### Should NOT Appear ❌
|
|
- Q167346 (botanical garden) - curated base class
|
|
- Q43501 (zoo) - curated base class
|
|
- Q473972 (protected area) - curated parent class
|
|
- Any of the 573 curated Q-numbers
|
|
|
|
## Execution Instructions
|
|
|
|
1. Navigate to: https://query.wikidata.org/
|
|
2. Load: `botanical_query_updated_20251113T165219.sparql`
|
|
3. Click "Execute" (▶️ button)
|
|
4. Wait for results (may take 30-60 seconds)
|
|
5. Download as JSON: Click download icon → "JSON file"
|
|
6. Save as: `botanical_results_20251113.json`
|
|
7. Update metadata YAML with execution details
|
|
|
|
## Verification Checklist
|
|
|
|
After execution:
|
|
- [ ] Check first 10 results are NOT in hyponyms_curated.yaml
|
|
- [ ] Verify results are institution/location types
|
|
- [ ] Confirm results are subclasses of base classes
|
|
- [ ] Count total results
|
|
- [ ] Review for data quality issues (non-institutions)
|
|
|
|
## Documentation
|
|
|
|
- **Logic Explanation**: `/data/wikidata/GLAMORCUBEPSXHFN/QUERY_LOGIC_EXPLANATION.md`
|
|
- **Generation Log**: `/data/wikidata/GLAMORCUBEPSXHFN/query_generation_log.md`
|
|
- **Curated Vocabulary**: `/data/wikidata/GLAMORCUBEPSXHFN/hyponyms_curated.yaml`
|
|
|
|
## Query History
|
|
|
|
| Timestamp | File | Changes |
|
|
|-----------|------|---------|
|
|
| 2025-11-13T16:52:19 | botanical_query_updated_20251113T165219.sparql | Added logic clarification comments |
|
|
| 2025-11-13T16:11:49 | botanical_query_updated_20251113T161149.sparql | Updated to 573 exclusions |
|
|
| 2025-11-13T16:08:23 | botanical_query_updated_20251113T160823.sparql | Updated to 567 exclusions |
|
|
| 2025-11-13T13:06:59 | botanical_zoo_query_complete_20251113T130659.sparql | Original version |
|
|
|
|
---
|
|
|
|
**Last Updated**: 2025-11-13T16:52:19+00:00
|