query-695bc035b235601f90843386776c6110
Surplus of coordinates - T198078Task T198078PhabricatorTracked in , on which I've left a note. phab:T198078 this is possibly akin to Wikidata:Request_a_query#Surplus_of_coordinates has only one coordinate). From discussion at (Q6522893)Lennoxlove House Right now I'm getting 2 rows from this query where I expect 1 (the item Surplus of coordinatesRight now I'm getting 2 rows from this query where I expect 1 (the item has only one coordinate). Is my understanding of psv: faulty ... should I expect two rows? Why? thx .
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?stat ?lat ?long
WHERE
{
VALUES ?item {wd:Q6522893}
?item p:P625 ?stat. ?stat psv:P625 [wikibase:geoLatitude ?lat ; wikibase:geoLongitude ?long ] .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team/Archive/2019/11
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2019/11
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?lat"):::projected
v4("?long"):::projected
v2("?stat"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q6522893"])
bind00 --> bind0
v1 --"p:P625"--> v2
a1 --"wikibase:geoLatitude"--> v3
a1 --"wikibase:geoLongitude"--> v4
v2 --"p:statement/value/P625"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end