Skip to content

Instantly share code, notes, and snippets.

@lcriadof
Created August 3, 2016 09:19
Show Gist options
  • Save lcriadof/80156e159d509bddd7bccb35a16faef2 to your computer and use it in GitHub Desktop.
Save lcriadof/80156e159d509bddd7bccb35a16faef2 to your computer and use it in GitHub Desktop.
dPayPoint con coordenadas
PREFIX dpay: <http://datos.crtm.es/recurso/transporte/validacion/dpaypoint/>
PREFIX gsp: <http://www.opengis.net/ont/geosparql#>
PREFIX ttp: <http://vocab.linkeddata.es/datosabiertos/def/transporte/tarjeta-transporte-publico#>
PREFIX validacionInstancia: <http://crtm.linkeddata.es/recurso/transporte/validacion/>
PREFIX ssn: <http://purl.oclc.org/NET/ssnx/ssn>
SELECT DISTINCT ?dPayPoint ?geometry
FROM NAMED <http://crtm.linkeddata.es/graph/data/validaciones>
FROM NAMED <http://crtm.linkeddata.es/graph/data/dpaypoints>
WHERE {
GRAPH <http://crtm.linkeddata.es/graph/data/validaciones> {
?obs a ttp:Validacion .
?obs ssn:observationResultTime ?time .
?obs ssn:observedBy ?dPayPoint .
?obs ssn:observationResult ?sensorOutput .
?sensorOutput ssn:hasValue ?obsValue .
FILTER (?time >= "2016-03-08"^^xsd:date && ?time < "2016-03-10"^^xsd:date)
}
GRAPH <http://crtm.linkeddata.es/graph/data/dpaypoints> {
?dPayPoint gsp:hasGeometry/gsp:asWKT ?geometry .
}
} LIMIT 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment