Skip to content

Instantly share code, notes, and snippets.

@ocorcho
Created May 26, 2016 09:49
Show Gist options
  • Save ocorcho/a100b65dfabb2ca41f25f636182c9fce to your computer and use it in GitHub Desktop.
Save ocorcho/a100b65dfabb2ca41f25f636182c9fce to your computer and use it in GitHub Desktop.
CRTM - Observación, TTP, fecha-hora, título, perfil y dPayPoint
SELECT DISTINCT ?obs ?tarjeta ?time ?title ?perfil ?dPayPoint
WHERE {
?obs a <http://datos.crtm.es/recurso/transporte/Validacion> .
?obs ssn:observationResultTime ?time .
#?obs ssn:observedBy <http://datos.crtm.es/recurso/transporte/validacion/dpaypoint/25_L18_P846> .
?obs ssn:observedBy ?dPayPoint .
FILTER(?dPayPoint=<http://datos.crtm.es/recurso/transporte/validacion/dpaypoint/25_L18_P846>)
?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)
} LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment