Project:SPARQL/examples: Difference between revisions

From Timna Valley Database
no edit summary
No edit summary
 
Line 85: Line 85:
   ?Instance rdfs:label ?P110Label .
   ?Instance rdfs:label ?P110Label .
   FILTER (lang(?P110Label) = "en")
   FILTER (lang(?P110Label) = "en")
}
LIMIT 300
</sparql>
==Dating_Methods==
This query returns Dating_Methods. As such it is a relatively straightforward query.
<sparql tryit="1">
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 ?P104value
WHERE {
  ?entity wdt:P104 ?P104value .
  ?entity rdfs:label ?entityLabel .
  FILTER (lang(?entityLabel) = "en")
 
  OPTIONAL {
    ?entity wdt:P28 ?coordinate .
  }
}
}
LIMIT 300
LIMIT 300
</sparql>
</sparql>
Bureaucrats, emailconfirmed, Administrators
1,193

edits