RDFLib/rdflib — Issue #192: rdflib.term.fromn3 method
Author: gjhiggins
Created: 2012-02-20 08:34:49+00:00
State: open

gromgull, 2012-01-25T10:46:53.000Z

RDFLib Terms have a .n3() method that return the n3 representation of the term.

For round-tripping, it would be nice to have a method that does the opposite, i.e. something that creates a term object from the n3 representation.

Comment 1 by eik...@eikeon.com
see: from rdflib.util import from_n3

Comment 2 by joernhees
thanks. would still be cool to have that in term.
even cooler would be if the n3 parser used it in a similar way as the n3 serializer uses .n3()