Example queries

Event workflow

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfcal: <http://www.w3.org/2002/12/cal/icaltzd#>
PREFIX addr: <http://schemas.talis.com/2005/address/schema#>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?e ?s ?summary ?cat ?desc ?l ?lab ?lat ?lng
WHERE{
  ?e rdf:type rdfcal:Vevent.
  ?e rdfcal:summary ?summary.
  ?e skos:subject ?cat.
  ?e rdfcal:description ?desc.
  ?e geo:location ?l.
  ?l rdfs:label ?lab.
  ?l geo:lat ?lat.
  ?l geo:long ?lng.
  ?e rdfcal:dtstart ?s .
  ?l addr:localityName "Washington".
  FILTER(?s > xsd:dateTime("2009-10-25T00:00:00Z") && ?s < xsd:dateTime("2009-10-25T23:59:59Z")).
} 

Path finder workflow

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns/>
PREFIX lud: <http://www.linkingurbandata.org/onto/ama/>
SELECT ?p ?w ?n1 ?l ?n2
WHERE{
 ?p rdf:type lud:Path.
 ?p lud:pathFrom <http://seip.cefriel.it/ama/resource/nodes/node8578>.
 ?p lud:pathTo <http://seip.cefriel.it/ama/resource/nodes/node8137>.
 ?p lud:contain ?l.
 ?l lud:lFrom ?n1.
 ?l lud:lTo ?n2.
 ?p lud:length ?w.
} ORDER BY ?w

LarkcProject/2ndEarlyAdoptersWorkshop/Scenarios/urbancomputing (last edited 2009-10-25 15:18:12 by ?DanieleDellAglio)