com.hp.hpl.jena.rdf.arp |
A parser for RDF/XML.
See the
ARP documentation
and
the
I/O mini howto for more information.
|
Java Source File Name | Type | Comment |
ALiteral.java | Interface | A string literal property value from an RDF/XML file. |
AResource.java | Interface | A URI or blank node reported to a
StatementHandler . |
ARP.java | Class | Another RDF Parser.
To load an RDF file:
- Create an ARP.
- Set its handlers, by calling the
ARP.getHandlers method, and then.
- Setting the statement handler.
- Optionally setting the other handlers.
- Call a load method.
Xerces is used for parsing the XML.
The SAXEvents generated by Xerces are then
analysed as RDF by ARP.
Errors may occur
in either the XML or the RDF part, see
ARPHandlers.setErrorHandler for details
of how to distinguish between them.
For very large files, ARP does not use any additional
memory except when either the
ExtendedHandler.discardNodesWithNodeID returns false or when the
AResource.setUserData method has been
used. |
ARPConfig.java | Interface | Used to set event handlers and options
on
ARP ,
SAX2Model , and
SAX2RDF instances.
author: Jeremy J. |
ARPErrorNumbers.java | Interface | Error numbers used by ARP. |
ARPEventHandler.java | Interface | Convenience generalization of all ARP handler interfaces. |
ARPHandlers.java | Class | The interface to set the various handlers on ARP. |
ARPOptions.java | Class | The interface to set the various options on ARP.
User defined
implementations of this interface are not supported. |
DOM2Model.java | Class | Transform DOM nodes of RDF.XML into Jena Models. |
ExtendedHandler.java | Interface | Extended callbacks from a reader to an RDF application. |
FatalParsingErrorException.java | Class | This exception should only be seen in user code when using
SAX2RDF or
SAX2Model .
This is thrown after fatal errors,
most importantly a
ARPErrorNumbers.ERR_SAX_FATAL_ERROR .
User code in an error handler may throw a different exception.
author: Jeremy J. |
JenaHandler.java | Class | |
JenaReader.java | Class | Interface between Jena and ARP. |
MalformedURIException.java | Class | MalformedURIExceptions are thrown in the process of building a URI
or setting fields on a URI when an operation would result in an
invalid URI specification. |
NamespaceHandler.java | Interface | The interface for being notified about namespace use in an RDF/XML
document. |
NTriple.java | Class | A command line interface into ARP. |
ParseException.java | Class | An exception during the RDF processing of ARP. |
SAX2Model.java | Class | Use arbitrary SAX input to Jena. |
SAX2RDF.java | Class |
Allows connecting an arbitrary source of SAX events with ARP.
For use with a DOM tree,
either use
DOM2Model or
see
The Java Developer's Almanac for a discussion of how to transform a DOM
into a source of SAX events.
The use pattern is to create and initialize one of these,
then set it as the content, lexical and error handler
for some source of SAX events (e.g. |
StatementHandler.java | Interface | The callback from a reader to an RDF application. |