query-f77292727803e5d07312442a728a1cd9
: Thanks a lot for this! Yeah, to make a federated query does make sense. And the results work also, however only for one label. As soon as I try to add more labels the results are visibly incorrect. Dipsacus fullonum@
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?Urheber ?UrheberLabel ?relevante_Person ?relevante_PersonLabel ?Ort ?OrtLabel ?Koordinaten_des_Standpunktes ?Gr_ndung__Erstellung_bzw__Entstehung_oder_Erbauung ?Lizenz ?LizenzLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?Urheber wdt:P170 wd:Q98908523.
OPTIONAL { ?Urheber wdt:P3342 ?relevante_Person. }
OPTIONAL { ?Urheber wdt:P276 ?Ort. }
OPTIONAL { ?Urheber wdt:P1259 ?Koordinaten_des_Standpunktes. }
OPTIONAL { ?Urheber wdt:P571 ?Gr_ndung__Erstellung_bzw__Entstehung_oder_Erbauung. }
OPTIONAL { ?Urheber wdt:P275 ?Lizenz. }
SERVICE <https://query.wikidata.org/sparql> {
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?Lizenz rdfs:label ?LizenzLabel.
?relevante_Person rdfs:label ?relevante_PersonLabel.
?Ort rdfs:label ?OrtLabel.
}
}
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?Gr_ndung__Erstellung_bzw__Entstehung_oder_Erbauung"):::projected
v4("?Koordinaten_des_Standpunktes"):::projected
v6("?Lizenz"):::projected
v7("?LizenzLabel"):::projected
v3("?Ort"):::projected
v9("?OrtLabel"):::projected
v1("?Urheber"):::projected
v2("?relevante_Person"):::projected
v8("?relevante_PersonLabel"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q98908523"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P170"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P3342".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P276".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1259".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P275".-> v6
end
subgraph s2["https://query.wikidata.org/sparql"]
style s2 stroke-width:4px;
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
v6 --"rdfs:label"--> v7
v2 --"rdfs:label"--> v8
v3 --"rdfs:label"--> v9
end
end