[juc] Steve Battle – Gloze: XML to RDF and back again

Steve wants to translate XML into RDF, and back. He tried to come up with the simplest possible mapping. And he hates inventing new languages. So he didn’t want to create a mapping language.

The solution is to look at XML Schema. If the XML to be translated conforms to a schema, then you have enough information to do roundtripping without information loss.

This is not so easy for many reasons. In XML, ordering is relevant. In RDF not. There’s a lot of detail to look at: XML schema types (simple and complex), text content, ID and IDREF.

Interesting approach to ordering the properties of an RDF resource: The properties are attached to the resource with plain old predicates. Ordering is added by attaching an rdf:Seq that contains reifications of these statements. This is done only if the XML schema says ordering is relevant.

There’s no download yet, but should be available in a couple of days. The tool is called Gloze.

This entry was posted in General, Semantic Web. Bookmark the permalink.

1 Response to [juc] Steve Battle – Gloze: XML to RDF and back again

  1. MUSlar says:

    Hm, sadly, nothing came up with Gloze… if the project has been stopped?

Comments are closed.