reteplayground
Path

🔭 The observatory family tree (P279+ descendants)

SELECT ?sub ?name ?description ?instances WHERE {
  ?sub wdt:P279+ wd:Q1254933 .
  ?sub rdfs:label ?name . FILTER(lang(?name) = "en")
  ?sub schema:description ?description . FILTER(lang(?des…
  OPTIONAL { ?sub rete:instanceCount ?instances }
}
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 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 ?sub ?name ?description ?instances WHERE { ?sub wdt:P279+ wd:Q1254933 . ?sub rdfs:label ?name . FILTER(lang(?name) = "en") ?sub schema:description ?description . FILTER(lang(?description) = "en") OPTIONAL { ?sub rete:instanceCount ?instances } } LIMIT 60

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