-
Notifications
You must be signed in to change notification settings - Fork 0
/
places-with-elevators.sparql
42 lines (34 loc) · 1.31 KB
/
places-with-elevators.sparql
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
37
38
39
40
41
CONSTRUCT {
?sourceObj a <http://example.org/SourceObjectStress/elevator/with>;
<http://a.property> ?firstObj;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?aLabel
.
?firstObj
a <http://example.org/FirstObject>;
<http://psc.org> ?psc;
<http://a.property> ?secondObj.
?secondObj
a <http://example.org/SecondObject>;
<http://number.prop> ?streetNum;
<http://name.prop> ?uliceName;
<http://link.to.ruian> ?addrPlace.
}
WHERE {
?obec a ruian:Obec;
schema:name ?obecName.
# FILTER (STR(?obecName) = "Praha")
?ulice a ruian:Ulice;
ruian:obec ?obec;
schema:name ?uliceName .
?addrPlace a ruian:AdresníMísto;
ruian:ulice ?ulice;
ruian:psč ?psc;
ruian:čísloOrientační ?streetNum;
ruian:stavebníObjekt ?stavObjekt
.
?stavObjekt ruian:vybaveníVýtahem <https://ruian.linked.opendata.cz/slovník/stavební-objekty/VybaveniVytahem#1>
BIND ( IRI(CONCAT("http://another.com/", ENCODE_FOR_URI(?addrPlace))) as ?secondObj )
BIND ( IRI(CONCAT("http://example.com/", ENCODE_FOR_URI(?addrPlace))) as ?firstObj )
BIND ( IRI(CONCAT("http://src.com/stress/withelevator/", ENCODE_FOR_URI(?addrPlace))) as ?sourceObj )
BIND ( CONCAT(?uliceName, " ", ?streetNum) as ?aLabel)
}