Skip to content

Instantly share code, notes, and snippets.

@ocorcho
Created May 26, 2016 19:31
Show Gist options
  • Save ocorcho/e617a6b61483f129350835818dbb78f4 to your computer and use it in GitHub Desktop.
Save ocorcho/e617a6b61483f129350835818dbb78f4 to your computer and use it in GitHub Desktop.
CRTM - DPaypoints con validaciones, y su geometría
PREFIX dpay: <http://datos.crtm.es/recurso/transporte/validacion/dpaypoint/>
PREFIX gsp: <http://www.opengis.net/ont/geosparql#>
SELECT DISTINCT ?dPayPoint ?geometry
WHERE {
?obs a <http://datos.crtm.es/recurso/transporte/Validacion> .
?obs ssn:observationResultTime ?time .
?obs ssn:observedBy ?dPayPoint .
?dPayPoint gsp:hasGeometry/gsp:asWKT ?geometry .
#?obs ssn:featureOfInterest ?tarjeta .
#?obs ssn:observedProperty ?property .
?obs ssn:observationResult ?sensorOutput .
?sensorOutput ssn:hasValue ?obsValue .
?obsValue <http://datos.crtm.es/recurso/transporte/titulo> ?title .
?obsValue <http://datos.crtm.es/recurso/transporte/perfil> ?perfil .
#?obsValue ttp:validationProfile ?profile .
#?obsValue ttp:validationType ?type .
FILTER (?time >= "2016-01-01"^^xsd:date && ?time < "2016-02-01"^^xsd:date)
#FILTER(?dPayPoint IN (dpay:25_L18_P846,dpay:25_L128_P679))
#VALUES ?dPayPoint {dpay:25_L18_P846 dpay:25_L128_P679}
} LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment