query-3c01849866cec1d7cebb60f562840562

rq turtle/ttl

)Wikidata:WikiProject Visual arts/Getty Vocabularies#Ontology mapping(adapted from

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?wdProp ?wdPropLabel ?relationshipStProp ?relationshipPropLabel ?extProp ?singleValue
WHERE {
  VALUES ?relationshipStProp { ps:P1628 ps:P2235 ps:P2236 }
  ?wdProp ?a [ ?relationshipStProp ?extProp ] .
  FILTER(STRSTARTS(STR(?extProp), "http://www.cidoc-crm.org/cidoc-crm/"))
  ?relationshipProp wikibase:statementProperty ?relationshipStProp .
  BIND(EXISTS { ?wdProp wdt:P2302 wd:Q19474404 . } AS ?singleValue)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?extProp

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?a") v1("?extProp"):::projected v5("?relationshipProp") v2("?relationshipStProp"):::projected v6("?singleValue"):::projected v3("?wdProp"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["starts-with(str(?extProp),'http://www.cidoc-crm.org/cidoc-crm/')"]] f0 --> v1 bind1[/VALUES ?relationshipStProp/] bind1-->v2 bind10(["ps:P1628"]) bind10 --> bind1 bind11(["ps:P2235"]) bind11 --> bind1 bind12(["ps:P2236"]) bind12 --> bind1 a1 -->v2--> v1 v3 -->v4--> a1 v5 --"wikibase:statementProperty"--> v2 v3 --"wdt:P2302"--> null bind2[/" "/] subgraph bind2e0["Exists Clause"] e0v1 --"wdt:P2302"--> e0c2 e0v1("?wdProp"):::projected e0c2(["wd:Q19474404"]):::iri end bind2--EXISTS--> bind2e0 v3 --o bind2 null --o bind2 null --o bind2 bind2 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end