reteplayground
Path

🏰 Everything a castle is (P279+ ancestors)

Ancestor classNameDescription+1
Q103940464continuant @enentity that persists,……
Q1063239polity @engroup of people who a……
Q106559804person or organizatio…class of agents @en…
Q106668099corporate body @enin library science, a……
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 60 rows · 77.3 s · 280.1 MB of 2.03 GB read over HTTP range · no server, no download — the query runs in your browser.

The query

PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX schema: <http://schema.org/> PREFIX rete: <https://w3id.org/rete/> SELECT ?ancestor ?name ?description ?instances WHERE { wd:Q23413 wdt:P279+ ?ancestor . ?ancestor rdfs:label ?name . FILTER(lang(?name) = "en") ?ancestor schema:description ?description . FILTER(lang(?description) = "en") OPTIONAL { ?ancestor rete:instanceCount ?instances } } LIMIT 60

rete playground · documentation · github.com/caviri/rete