Re: RDF to JDOM?

Tatu Saloranta <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>


--- On Tue, 5/12/09, Oliver Ruebenacker <[email protected]> wrote:

> From: Oliver Ruebenacker <[email protected]>
> Subject: Re: [jdom-interest] RDF to JDOM?
> To: "Paul Libbrecht" <[email protected]>
> Cc: [email protected]
> Date: Tuesday, May 12, 2009, 12:03 PM
>      Hello Paul,
> All,
> 
>   I don't know OWLAPI. Some browsing did not reveal
> any interfaces to
> jena, DOM or JDOM. Can you give me a hint?
> 
>   Jena interfaces, for example, with input and output
> streams to
> serialize and deserialize models as RDF/XML text. It also
> allows to
> read a model from a DOM document. To read from a JDOM
> document, I need
> to convert to DOM first. And I do not know how to convert
> from a Jena
> model to a DOM or JDOM document.

Unless performance is a concern, an easy way would be to just serialize to RDF xml serialization, then (re)parse (as JDOM or Jena model).
Parsing/serializing xml is surprisingly fast these days.

-+ Tatu +-



      
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.