-
Notifications
You must be signed in to change notification settings - Fork 0
/
monodirektionale-kurzstrecken.rq
32 lines (27 loc) · 1.23 KB
/
monodirektionale-kurzstrecken.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX gtfs: <http://vocab.gtfs.org/terms#>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX otd: <https://lod.opentransportdata.swiss/vocab/>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT * WHERE {
{ SELECT ?startingPoint (COUNT(?Kante) AS ?kurzstreckeDeparture) WHERE {
?Kante a otd:Relation;
otd:zoningPlan <https://lod.opentransportdata.swiss/zoningplan/libero/libero-billett-libero>;
schema:departureStation ?startingPoint ;
schema:arrivalStation ?arrivalStation .
} GROUP BY ?startingPoint
}
# ?arrivalStation rdfs:label ?arrivalStationLabel .
{ SELECT (COUNT(?kante2) AS ?kurzstrecke2Departure) WHERE {
?kante2 a otd:Relation;
otd:zoningPlan <https://lod.opentransportdata.swiss/zoningPlan/libero/libero-billett-libero>;
schema:departureStation ?arrivalStation;
schema:arrivalStation ?startingPoint .
} GROUP BY ?startingPoint
}
#?kante2Kantenende rdfs:label ?kante2KantenendeLabel .
FILTER( ?kurzstreckeDeparture != ?kurzstrecke2Departure)
}