[ 
https://issues.apache.org/jira/browse/JENA-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177819#comment-13177819
 ] 

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 before)
- 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: https://issues.apache.org/jira/browse/JENA-182
>             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 
> (http://www4.wiwiss.fu-berlin.de/bizer/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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to