Anonymous

Main Page: Difference between revisions

From geokb
Line 286: Line 286:
</sparql>
</sparql>


== Publications ==
== Publications/Documents ==
Another fundamental entity type we are bringing together in the GeoKB are representations of documents of one kind or another. For right now, we put "document" right at the top of the classification as a foundational type of "entity." You can query for the classification structure for documents with the following transitive query from the document root.
Another fundamental entity type we are bringing together in the GeoKB are representations of documents of one kind or another. For right now, we put "document" right at the top of the classification as a foundational type of "entity." You can query for the classification structure for documents with the following transitive query from the document root.


Line 297: Line 297:
SELECT ?item ?itemLabel
SELECT ?item ?itemLabel
WHERE {
WHERE {
   ?item wdt:P2* wd:Q6 . # subclass of, transitive "publication"
   ?item wdt:P2* wd:Q5 . # subclass of, transitive "document"
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
}