gjhiggins/rdflib — Issue #36: add Graph.fromN3
Author: gjhiggins
Created: 2011-10-19 01:01:27+00:00
State: open

Originally filed by drewpca on 2008-12-26T22:31:59

It would help the creation of our test cases, rdflib's test cases, bug
reports, and tutorials if there was a one-liner to make a graph initialized
from some N3. I propose this API:

from rdflib.Graph import Graph
graph = Graph.fromN3("""
@prefix ...

""")