RINF test
By dragos2406
PREFIX era: http://data.europa.eu/949/ prefix geo: http://www.opengis.net/ont/geosparql# prefix bif: http://www.openlinksw.com/schemas/bif# PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
SELECT distinct ?lineString ?lineStringColor ?lineStringLabel
FROM http://data.europa.eu/949/graph/rinf
WHERE {
values ( ?profile ?lineStringColor) {
(true 'blue' )
#(false 'red' )
}
?sectionOfLine a era:SectionOfLine ;
#era:inCountry <http://publications.europa.eu/resource/authority/country/BEL> ;
era:opStart/geo:hasGeometry/geo:asWKT ?startgeo;
era:opEnd/geo:hasGeometry/geo:asWKT ?endgeo;
rdfs:label ?lineStringLabel;
era:track/era:isQuietRoute ?profile.
bind(<bif:st_linestring>(<bif:st_point>(<bif:st_x>(?startgeo),<bif:st_y>(?startgeo)), <bif:st_point>(<bif:st_x>(?endgeo),<bif:st_y>(?endgeo))) as ?lineString)
}