query-3fcfe20c553122084f8e0af6adf55f80

rq turtle/ttl

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

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)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?coordA"):::projected v5("?coordB"):::projected v6("?dist"):::projected v2("?stationA"):::projected v3("?stationB"):::projected c5(["bd:serviceParam"]):::iri c7(["en"]):::literal f0[["?dist > '100^^xsd:integer'"]] f0 --> v6 v2 --"wdt:P197"--> v3 v2 --"wdt:P625"--> v4 v3 --"wdt:P625"--> v5 bind1[/"http://www.opengis.net/def/function/geosparql/distance(?coordA,?coordB)"/] v4 --o bind1 v5 --o bind1 bind1 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end