ARC RDF Store

SPARQL Query

some sample queries

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX cyc: <http://www.cyc.com/2004/06/04/cyc#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rss: <http://purl.org/rss/1.0/>

SELECT DISTINCT ?lat ?long ?item ?title ?sioc
WHERE {
 ?thing a cyc:SpatialThing-Localized .
 ?thing geo:lat ?lat .
 ?thing geo:long ?long .
 ?item dc:spatial ?thing .
 ?item rss:title ?title
}
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIx foaf: <http://xmlns.com/foaf/0.1/>

SELECT DISTINCT ?name ?other_name ?group ?description ?sha1 ?lat ?long
WHERE {
  ?x a sioc:User .
  ?x sioc:name ?name .
  ?u sioc:has_member ?x .
  OPTIONAL { ?u sioc:name ?group  } .
  OPTIONAL { ?u sioc:description ?description } .
  ?x sioc:email_sha1sum ?sha1 .
  ?person foaf:mbox_sha1sum ?sha1 .
  ?person foaf:name ?other_name .
  ?person foaf:based_near ?point .
  ?point geo:lat ?lat .
  ?point geo:long ?long .
}