query-3fcfe20c553122084f8e0af6adf55f80
Precise meaning of this propertyHi, ). As I'm not sure if the property is more the first or the second (or something/anything else, the current description is quite wide). I see a lot of both (and as I was just replicating, if A P197 B is wrong then B P197 A is also wrong and should be corrected). Special:Diff/470076590 saying « those would be "next stop of a long distance train" not "neighbour station on same track") » ((Q706994)Mannheim Central Station reverted me on NenntmichruhigipI was adding symetric P197 values when : The mitooo, Mahir256, Kemenymate, Liuxinyu970226, Multichill, B.Zsolt@ ]reply[14:39, 24 March 2017 (UTC)) talk (VIGNERONCdlt, For information, here is some stations more than 100 km appart (271 results right now, some are geolocation errors).
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?stationA ?stationALabel ?stationB ?stationBLabel ?coordA ?coordB ?dist
WHERE
{
?stationA wdt:P197 ?stationB .
?stationA wdt:P625 ?coordA .
?stationB wdt:P625 ?coordB .
BIND( geof:distance( ?coordA , ?coordB) as ?dist ).
FILTER ( ?dist > 100 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} order by desc(?dist)