incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Pellegrino (Commented) (JIRA)" <>
Subject [jira] [Commented] (JENA-182) Add TriG support to RiotWriter
Date Fri, 30 Dec 2011 23:18:31 GMT


Laurent Pellegrino commented on JENA-182:

Thanks Andy for your comment.

> If it's to reduce size, then you can do only partial "pretty" trig and gat much if not
all of the advantage. 

You are right, it will be simpler to manage it as you suggested even if it would better to
use something which is more "standardized" but, as you said, TriG as not been yet defined
by RDF-W.G :(

I had started to work on a simple patch before to read your comment (translating dataset as
TriG without taking advantage of Turtle features (prefixes abreviation, groups abreviation,
lists, ...). Even if it is too simple, In terms of size and readability this simple version
is always better than NQuads. 

Why not to create a TriG writer which has 2 levels?

- One where no abbreviation is used (something similar to the simple version I described just
- One where node values which are repeated are abbreviated and/or aggregated by using Turtle
features (prefixes abbreviation, groups abbreviation through ',' and ';' symbols, lists, ...).

Thus, level 1 could be easily provided with some minor changes whereas level 2, that takes
advantage of Turtle features could be implemented later, when the RIOT architecture will be
ready. Also, by using these two kind of writers, users could in the future choose between
a version which does not use abbreviation but which is fast and consume less memory than the
version 2 which has to buffer, sort nodes?        

> Add TriG support to RiotWriter
> ------------------------------
>                 Key: JENA-182
>                 URL:
>             Project: Jena
>          Issue Type: New Feature
>          Components: RIOT
>            Reporter: Paolo Castagna
>            Priority: Minor
>              Labels: trig
>   Original Estimate: 4h
>  Remaining Estimate: 4h
> RIOT has the ability to parse TriG ( files
but not to serialize RDF datasets in that format.
> When working with named graphs people would probably find it easier to look at TriG files
rather than N-Quads (same as Turtle and N-Triples).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message