query-b584d7201ff90d6a02cd201d077d5c8a
Get only one value on query with two web references, one in Spanish and another one in Basque. I want to get the list only with one of the references, so I don't have twice every element: (P1325)external data available at URL by municipality. The problem is that they two web references in (Q65553409)Basque government heritage site Hello, I want to get a list of items that are Now I have this, and I guess that I have to shape somehow the last line:
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?ondare ?ondareLabel ?koordenatuak ?irudia ?Arkitektura_estiloa ?Arkitektura_estiloaLabel ?sorrera_data ?Commons_eko_kategoria ?honen_parte_daLabel ?datuak_dituen_kanpo_lotura WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?ondare wdt:P131 wd:Q744893.
?ondare wdt:P1435 wd:Q65553409.
OPTIONAL { ?ondare wdt:P625 ?koordenatuak. }
OPTIONAL { ?ondare wdt:P18 ?irudia. }
OPTIONAL { ?ondare wdt:P149 ?Arkitektura_estiloa. }
OPTIONAL { ?ondare wdt:P571 ?sorrera_data. }
OPTIONAL { ?ondare wdt:P373 ?Commons_eko_kategoria. }
OPTIONAL { ?ondare wdt:P361 ?honen_parte_da. }
OPTIONAL { ?ondare wdt:P1325 ?datuak_dituen_kanpo_lotura. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?Arkitektura_estiloa"):::projected
v6("?Commons_eko_kategoria"):::projected
v8("?datuak_dituen_kanpo_lotura"):::projected
v7("?honen_parte_da")
v3("?irudia"):::projected
v2("?koordenatuak"):::projected
v1("?ondare"):::projected
v5("?sorrera_data"):::projected
c6(["wd:Q744893"]):::iri
c8(["wd:Q65553409"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P131"--> c6
v1 --"wdt:P1435"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P149".-> 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:P373".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P361".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1325".-> v8
end