Project:SPARQL/starters: Difference between revisions
No edit summary |
Guygreenberg (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
===Where Timna sites are located=== | ===Where Timna sites are located=== | ||
One way into the data is through the locations of archeological sites This query does that for all the sites but could be adapted (on lines *xx* and *xx* TBD) to look for other places or regions. | One way into the data is through the locations of archeological sites This query does that for all the sites but could be adapted (on lines *xx* and *xx* TBD) to look for other places or regions. | ||
PREFIX wd: <https://timna-database.wikibase.cloud/entity/> | |||
PREFIX wdt: <https://timna-database.wikibase.cloud/prop/direct/> | |||
PREFIX p: <https://timna-database.wikibase.cloud/prop/> | |||
PREFIX ps: <https://timna-database.wikibase.cloud/prop/statement/> | |||
PREFIX geo: <http://www.opengis.net/ont/geosparql#> | |||
SELECT DISTINCT ?entity ?entityLabel ?coordinate | |||
WHERE { | |||
?entity rdfs:label ?entityLabel . | |||
FILTER (lang(?entityLabel) = "en") | |||
FILTER (STRSTARTS(?entityLabel, "Site")) | |||
FILTER (STRSTARTS(STR(?entity), "https://timna-database.wikibase.cloud/entity/Q")) | |||
?entity wdt:P28 ?coordinate . | |||
} | |||
LIMIT 300 | |||
##defaultView:Map | |||
Try it! | Try it! |
Revision as of 12:21, 17 July 2024
Place
Where Timna sites are located
One way into the data is through the locations of archeological sites This query does that for all the sites but could be adapted (on lines *xx* and *xx* TBD) to look for other places or regions. PREFIX wd: <https://timna-database.wikibase.cloud/entity/> PREFIX wdt: <https://timna-database.wikibase.cloud/prop/direct/> PREFIX p: <https://timna-database.wikibase.cloud/prop/> PREFIX ps: <https://timna-database.wikibase.cloud/prop/statement/> PREFIX geo: <http://www.opengis.net/ont/geosparql#>
SELECT DISTINCT ?entity ?entityLabel ?coordinate WHERE {
?entity rdfs:label ?entityLabel . FILTER (lang(?entityLabel) = "en") FILTER (STRSTARTS(?entityLabel, "Site")) FILTER (STRSTARTS(STR(?entity), "https://timna-database.wikibase.cloud/entity/Q")) ?entity wdt:P28 ?coordinate .
} LIMIT 300
- defaultView:Map
Try it!
Time
When Timna excavations took place
One way into the data is through the dates the archeological excavations took place. This query does that for CTV of 2024 but could be adapted (on lines *xx* and *xx* TBD) to look for different dates.
Try it!
People
This query returns members of the CTV excavations. As such it is a relatively straightforward query.
Try it!