Hi,

I'm having a problem when parsing triples into a context. I see a
context as the name of a graph, graph=[statements], graphname=context.
What I have tested is to parse a set of RDF statements (from the RDF
primer):

@prefix ex: <http://example.org/> .
@prefix exterms: <http://www.example.org/terms/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .

ex:index.html   exterms:creation-date   "August 16, 1999" .
ex:index.html   dc:language             "en" .

into the context "http://example.org/add";, using
graph.parse(source,publicID="http://example.org/add";).

When I serialize the contents of the context I get:

<http://example.org/add#html>
<http://www.example.org/terms/creation-date> "August 16, 1999" .
<http://example.org/add#html> <http://purl.org/dc/elements/1.1/language> "en" .

but I expected the subject to remain <http://example.org/index.html>?
When I parse the equivalent in RDF/XML, the subject remains. I'm using
the latest version from trunk.

Best Regards,
Mikael
_______________________________________________
Dev mailing list
[email protected]
http://rdflib.net/mailman/listinfo/dev

Reply via email to