Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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