query-b45afa094120f7e8ab838ca0d9de5ae6
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?property ?propertyLabel ?targetLabel WHERE {
{
SELECT ?item ?property ?target WHERE {
?property wikibase:claim ?p;
wikibase:statementProperty ?ps.
?st ?ps ?target.
?target wdt:P179 wd:Q51845238.
?item ?p ?st.
FILTER(?p NOT IN (p:P155, p:P156, p:P527)) # exclude properties follows, followed by and has part(s)
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de". }
}
ORDER BY (?property)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?item"):::projected
v2("?p")
v1("?property"):::projected
v3("?ps")
v4("?st")
v5("?target")
c9(["bd:serviceParam"]):::iri
c11(["en,de"]):::literal
c7(["wd:Q51845238"]):::iri
f0[["?p != 'p:P155'?p != 'p:P156'?p != 'p:P527'"]]
f0 --> v2
v1 --"wikibase:claim"--> v2
v1 --"wikibase:statementProperty"--> v3
v4 -->v3--> v5
v5 --"p:direct/P179"--> c7
v6 -->v2--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end