query-5f625b510737997e7e0cdcb91d58246e
, 10:55, 1 May 2018Sycedunsigned comment by : I think this would be acceptable, as it is a performance of the work. By the way, the property seems to be quite a mess currently, with some entering years as the object: Beat Estermann
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?left ?leftLabel ?leftClassLabel ?right ?rightLabel ?rightClassLabel
WHERE
{
?left wdt:P2550 ?right.
?left wdt:P31 ?leftClass.
?right wdt:P31 ?rightClass.
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("?left"):::projected
v3("?leftClass")
v2("?right"):::projected
v4("?rightClass")
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P2550"--> v2
v1 --"wdt:P31"--> v3
v2 --"wdt:P31"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end