query-54d8454882ffc8a309d2ee5b6ce8c098

rq turtle/ttl

Wikidata properties mapped to schema.org

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#>
select ?wdProperty ?wdPropertyLabel ?target
where {

  # get all properties
  ?wdProperty rdf:type wikibase:Property .

  # with exactly matching external URIs
  ?wdProperty wdt:P2888 ?target .

  # restrict to schema.org
  filter(strstarts(str(?target), 'https://schema.org/'))

  # get wikidata labels
  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("?target"):::projected v2("?wdProperty"):::projected c6(["bd:serviceParam"]):::iri c3(["wikibase:Property"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["starts-with(str(?target),'https://schema.org/')"]] f0 --> v1 v2 --"a"--> c3 v2 --"wdt:P2888"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end