dragos2406

dragos2406
Member since Apr 6th, 2022

RINF test

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)

}

Created 5 months ago, 2 versions