-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tarifdreieck-DV-Relationsgebiet.rq
36 lines (31 loc) · 1.53 KB
/
Tarifdreieck-DV-Relationsgebiet.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
33
34
35
36
PREFIX gtfs: <http://vocab.gtfs.org/terms#>
PREFIX otd: <https://lod.opentransportdata.swiss/vocab/>
PREFIX schema: <http://schema.org/>
SELECT ?stop1 ?stop2 ?stop1Name ?stop2Name ?tarifwert WHERE {
# Relationsgebiet "Heiden - Rorschach Hafen"
?dvRelation otd:relationsgebiet <https://lod.opentransportdata.swiss/dv-relationsgebiet/ids__6195732000001> .
?dvRelation gtfs:stop ?stop1 .
?dvRelation gtfs:stop ?stop2 .
?dvRelation otd:tarifwert ?tarifwert .
FILTER (?stop1 != ?stop2)
?stop1 schema:name ?stop1Name .
?stop2 schema:name ?stop2Name .
VALUES (?stop2 ?stop2Position) {
(<https://lod.opentransportdata.swiss/didok/8506354> 1)
(<https://lod.opentransportdata.swiss/didok/8506353> 2)
(<https://lod.opentransportdata.swiss/didok/8506352> 3)
(<https://lod.opentransportdata.swiss/didok/8506400> 4)
(<https://lod.opentransportdata.swiss/didok/8506278> 5)
(<https://lod.opentransportdata.swiss/didok/8506311> 6)
(<https://lod.opentransportdata.swiss/didok/8506306> 7)
}
} ORDER BY ?stop1Position ?stop2Position
VALUES (?stop1 ?stop1Position) {
(<https://lod.opentransportdata.swiss/didok/8506354> 1)
(<https://lod.opentransportdata.swiss/didok/8506353> 2)
(<https://lod.opentransportdata.swiss/didok/8506352> 3)
(<https://lod.opentransportdata.swiss/didok/8506400> 4)
(<https://lod.opentransportdata.swiss/didok/8506278> 5)
(<https://lod.opentransportdata.swiss/didok/8506311> 6)
(<https://lod.opentransportdata.swiss/didok/8506306> 7)
}