query-b764646105934c07cddae96cfe735db2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?wd ?wdLabel ?relationshipStProp ?relationshipPropLabel ?extProp
WHERE {
VALUES ?relationshipStProp { ps:P1709 ps:P3950 ps:P2888 }
?wd ?a [ ?relationshipStProp ?extProp ] .
FILTER(STRSTARTS(STR(?extProp), "http://www.cidoc-crm.org/") || STRSTARTS(STR(?extProp), "http://erlangen-crm.org/"))
?relationshipProp wikibase:statementProperty ?relationshipStProp .
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
v3("?wd"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["(starts-with(str(?extProp),'http://www.cidoc-crm.org/') || starts-with(str(?extProp),'http://erlangen-crm.org/'))"]]
f0 --> v1
bind1[/VALUES ?relationshipStProp/]
bind1-->v2
bind10(["ps:P1709"])
bind10 --> bind1
bind11(["ps:P3950"])
bind11 --> bind1
bind12(["ps:P2888"])
bind12 --> bind1
a1 -->v2--> v1
v3 -->v4--> a1
v5 --"wikibase:statementProperty"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end