query-86a9149aa904d63dedb9b8e52aa80824

rq turtle/ttl

Properties in "wdt" Namespace(hello!) The below query returns all properties used with wikidata items that are instances of art exhibitions and/or instances of subclasses of art exhibitions. The returned properties are in various namespaces ("wdt:", "p:", "schema:", etc.) How can the below query be revised so that only properties in the "wdt" namespace are returned? (thanks!) 00:18, 16 March 2019 (UTC) S.ann.adams--

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?property
WHERE
{
  ?item wdt:P31/wdt:P279* wd:Q667276 . 
  ?item ?property ?value .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?property"):::projected v3("?value") a1((" ")) c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;"]):::literal c3(["wd:Q667276"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 -->v2--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end