| java.lang.Object com.hp.hpl.jena.rdf.arp.ARP
ARP | public class ARP implements ARPConfig(Code) | | 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. In these cases ARP needs to remember the rdf:nodeID
usage through the file life time.
See ARP documentation for more information.
author: Jeremy Carroll with contributions from Simon Raboczi author: and Andrew Newman |
Constructor Summary | |
public | ARP() Creates a new RDF Parser. |
ARP | public ARP()(Code) | | Creates a new RDF Parser.
Can parse one file at a time.
|
getLocator | public Locator getLocator()(Code) | | When parsing a file, this returns a Locator giving the
position of the last XML event processed by ARP.
This may return null or misleading results before any
tokens have been processed.
Locator |
load | public void load(Reader in, String xmlBase) throws SAXException, IOException(Code) | | Load RDF/XML from a Reader.
Parameters: in - The input XML document. Parameters: xmlBase - The base URI for the document. throws: SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler. throws: IOException - Occurring during XML processing. |
load | public void load(InputStream in, String xmlBase) throws SAXException, IOException(Code) | | Load RDF/XML from an InputStream.
Parameters: in - The input XML document. Parameters: xmlBase - The base URI for the document. throws: SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler. throws: IOException - Occurring during XML processing. |
load | public void load(InputStream in) throws SAXException, IOException(Code) | | Load RDF/XML from an InputStream, leaving relative URIs as relative.
Parameters: in - The input XML document. throws: SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler. throws: IOException - Occurring during XML processing. |
load | public void load(Reader in) throws SAXException, IOException(Code) | | Load RDF/XML from a Reader, leaving relative URIs as relative.
Parameters: in - The input XML document. throws: SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler. throws: IOException - Occurring during XML processing. |
setHandlersWith | public void setHandlersWith(ARPHandlers handlers)(Code) | | Copies the handlers from the argument
to be used by this instance.
To make further modifications it is necessary
to call
ARP.getHandlers to retrieve this
instance's copy of the handler information.
Parameters: handlers - The new values to use. |
setOptionsWith | public void setOptionsWith(ARPOptions opts)(Code) | | Copies the options from the argument
to be used by this instance.
To make further modifications it is necessary
to call
ARP.getOptions to retrieve this
instance's copy of the options.
Parameters: opts - The new values to use. |
|
|