Created
May 26, 2016 10:06
-
-
Save ocorcho/1e5dce0ac80cc1f0d31b8f85e2629094 to your computer and use it in GitHub Desktop.
CRTM - Número de validaciones que se producen en una lista de dPayPoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX dpay: <http://datos.crtm.es/recurso/transporte/validacion/dpaypoint/> | |
SELECT DISTINCT ?dPayPoint ?tarjeta ?title ?perfil (COUNT (DISTINCT ?obs) AS ?numValidaciones) | |
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 . | |
?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} | |
} GROUP BY ?dPayPoint ?tarjeta ?title ?perfil ORDER BY DESC(?numValidaciones) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment