Skip to content

Instantly share code, notes, and snippets.

@tommorris
Created October 13, 2012 16:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommorris/3885185 to your computer and use it in GitHub Desktop.
Save tommorris/3885185 to your computer and use it in GitHub Desktop.
CONSTRUCT {
?s <http://tommorris.org/ontology/stationConnect> ?o .
?o <http://tommorris.org/ontology/stationConnect> ?o .
?s <http://dbpedia.org/ontology/agencyStationCode> ?subjectCode .
}
WHERE {
{ ?s <http://dbpedia.org/property/next> ?o . } UNION { ?o <http://dbpedia.org/property/prev> ?s . }
?s <http://dbpedia.org/ontology/agencyStationCode> ?subjectCode .
FILTER (bound(?subjectCode))
FILTER (isURI(?s))
FILTER (isURI(?o))
FILTER (?s != ?o)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment