Skip to content
forked from knorex/pysparql

SPARQL lexer and parser library for Python

License

Notifications You must be signed in to change notification settings

huyphan/pysparql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PySPARQL README

This is the Python version of sparql-grammar library which was originally written in Ruby.

Dependencies

Examples


>>> from pysparql import Parser
>>> query = "SELECT ?name WHERE { ?x rdf:type foaf:Person . ?x foaf:name ?name }"
>>> p = Parser(query)
>>> p.parse()
>>> print p.result
['project', [Variable(?name)], Query(None)[['triple', Variable(?x), URI(type), URI(Person)], ['triple', Variable(?x), URI(name), Variable(?name)]]]

Author

License

PySPARQL is freely available for all uses under a BSD license.

About

SPARQL lexer and parser library for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published