Hi,
I'm using Jena to write out data to file as RDF/XML-ABBREV. I'm using the
prettyTypes property to ensure that my domain objects sit at the top of the
file. This works great. These XML files are eaten both by RDF-aware tools
but also some legacy tooling. The legacy tooling requires xml elements to
arrive sorted in a particular order. At the moment I'm controlling this by
writing them to the Jena model in the reverse order I want them to appear
in the file. However, this is brittle.
Is there some way to control the sorting of things within a block? For
example, by specifying a list of URIs and having Jena emit the XML in that
order.
Thanks,
Matthew
Integrative Bioinformatics Group, School of Computing Science, Newcastle
University
mailto: matthew.pocock [ at ] ncl.ac.uk
gchat: turingatemyhamster [ at ] gmail.com
msn: matthew_pocock [ at ] yahoo.co.uk
irc.freenode.net: drdozer
skype: matthew.pocock
tel: (0191) 2566550
mob: +447535664143
I'm using Jena to write out data to file as RDF/XML-ABBREV. I'm using the
prettyTypes property to ensure that my domain objects sit at the top of the
file. This works great. These XML files are eaten both by RDF-aware tools
but also some legacy tooling. The legacy tooling requires xml elements to
arrive sorted in a particular order. At the moment I'm controlling this by
writing them to the Jena model in the reverse order I want them to appear
in the file. However, this is brittle.
Is there some way to control the sorting of things within a block? For
example, by specifying a list of URIs and having Jena emit the XML in that
order.
Thanks,
Matthew
Integrative Bioinformatics Group, School of Computing Science, Newcastle
University
mailto: matthew.pocock [ at ] ncl.ac.uk
gchat: turingatemyhamster [ at ] gmail.com
msn: matthew_pocock [ at ] yahoo.co.uk
irc.freenode.net: drdozer
skype: matthew.pocock
tel: (0191) 2566550
mob: +447535664143