[OTDev] RDF size and use of prefixes

Egon Willighagen egon.willighagen at gmail.com
Fri May 20 10:26:16 CEST 2011


On Fri, May 20, 2011 at 10:19 AM, Nina Jeliazkova
<jeliazkova.nina at gmail.com> wrote:
> 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).

You can win a few bits more by replacing

jenaModel.setNsPrefix( "dcterms", DCTerms.NS );

with

jenaModel.setNsPrefix( "dct", DCTerms.NS );

(etc)

Egon

-- 
Dr E.L. Willighagen
Postdoctoral Researcher
Institutet för miljömedicin
Karolinska Institutet (http://ki.se/imm)
Homepage: http://egonw.github.com/
LinkedIn: http://se.linkedin.com/in/egonw
Blog: http://chem-bla-ics.blogspot.com/
PubList: http://www.citeulike.org/user/egonw/tag/papers



More information about the Development mailing list