[OTDev] RDF size and use of prefixes

Nina Jeliazkova jeliazkova.nina at gmail.com
Fri May 20 10:19:03 CEST 2011


Hi All,

Related to the recent discussion on RDF scalability, I am sending an example
how simple use of prefixes in RDF can reduce the size of the serialized RDF.
 The length of the newly generated prefixed files  (both in RDF/XML and
N3)  is *3 times less* than the original one (RDF/XML).

The examples are generated by reading the original XML file through Jena,
setting prefixes and rdf writer options and writing back into RDF/XML and
N3.  The code could be inspected here [1] (look at the last write() method).
 There should be similar facilities in other RDF libraries.

Best regards,
Nina


[1]
https://ambit.svn.sourceforge.net/svnroot/ambit/branches/opentox/opentox-dsl/src/main/java/org/opentox/rdf/OT.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdf-datasets.zip
Type: application/zip
Size: 334752 bytes
Desc: not available
URL: <http://lists.opentox.org/pipermail/development/attachments/20110520/1dc0cbac/attachment.zip>


More information about the Development mailing list