query-ce11bfc1a8101043ef038189c0e3213a

rq turtle/ttl

Query #8: Experimenting with Qualifiers [NOT MINE; THIS IS FROM THE EXAMPLES PAGE]TODO: should display links and numeric ids Properties grouped by their parent property

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Tree
SELECT ?property2 ?property2Label ?property1 ?property1Label WHERE {
  ?property1 rdf:type wikibase:Property. #not replaceable with wikibase:Item, wikibase:Statement, wikibase:Reference at WDQS
                                         #https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#WDQS_data_differences
  ?property1 wdt:P1647 ?property2.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?property1"):::projected v2("?property2"):::projected c5(["bd:serviceParam"]):::iri c2(["wikibase:Property"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"a"--> c2 v1 --"wdt:P1647"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end