SAX Input into Jena and ARP

Normally, both ARP and Jena are used to read files either from the local machine or from the Web. A different use case, addressed here, is when the XML source is available in-memory in some way. In these cases, ARP and Jena can be used as a SAX event handler, turning SAX events into triples. If you have a DOM tree, it is necessary to turn it into a stream of SAX events.

Contents