RDFLib/rdflib — Issue #122: TriG Serializer
Author: gjhiggins
Created: 2012-02-20 08:33:15+00:00
State: open

wwai...@gmail.com, 2010-07-09T15:53:43.000Z

Candidate for eventual inclusion,

http://knowledgeforge.net/pdw/ordf/file/tip/ordf/serializer.py

contains a serializer for TriG. I plan to do one for N-Quads as well.

Parsers might hopefully come later.

Comment 1 by gromgull
both trig serialisation/parsing should be easy to extend from the current n3 stuff. In fact - the N3 parser is stolen from cwm - if they support trig, we can probably also do so easily.

Comment 2 by wwai...@gmail.com
The trig serialiser in the file i mentioned reuses N3 serialiser and calls it recursively on graphs in the current conjunctive graph, wrapping them in { ... }

I agree parsing shouldn't be too difficult.

Comment 3 by gromgull
Hmm - I would add this - but we do not have a parser for TriG, which would be a bit asymmetrical :)

Do you feel inspired to whip up a parser for us? :)

Comment 4 by gromgull
I've tried to add your parser in this branch:

http://code.google.com/p/rdflib/source/list?name=trigSerializer

However, my first test failed :) Does ordf perhaps have some other changes we also need?

Could you have a look? Also, feel free to add a more thorough test :)

(and a parser! :)