Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import rdflib.graph as g
- graph = g.Graph()
- graph.parse('New_York.n3', format='n3')
- results = graph.query("""
- PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
- SELECT ?x ?lat ?long WHERE {
- ?x geo:lat ?lat; geo:long ?long .
- }
- """)
Advertisement
Add Comment
Please, Sign In to add comment