>>> import pymantic >>> resource = Resource.in_graph(graph, 'http://example.com/resource')
Pymantic requires Python 2.5 or higher. rdflib is currently used to provide RDF primitives, only rdflib 3.x versions are supported. httplib2 is used for HTTP requests and the SPARQL client. lxml is required by the SPARQL client as well.
$ python setup.py install
This will install Pymantic and all its dependencies.
Generating a local copy of the documentation requires Sphinx:
$ easy_install Sphinx