java.lang.Object
org.apache.jena.rdfxml.arp1.ARP
- All Implemented Interfaces:
ARPConfig
Deprecated, for removal: This API element is subject to removal in a future version.
Direct access to the RDF/XML parser is planned for removal. Please contact the Jena development community for details.
Another RDF Parser.
To load an RDF file:
- Create an ARP.
- Set its handlers, by calling the
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(org.xml.sax.ErrorHandler) 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(java.lang.Object) 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.
Includes contributions from Simon Raboczi and Andrew Newman-
Constructor Summary
ConstructorsConstructorDescriptionARP()Deprecated, for removal: This API element is subject to removal in a future version.Direct access to this RDF/XML parser is planned for removal. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The handlers used during parsing.Deprecated, for removal: This API element is subject to removal in a future version.When parsing a file, this returns a Locator giving the position of the last XML event processed by ARP.Deprecated, for removal: This API element is subject to removal in a future version.The options used during parsing.voidload(InputStream in) Deprecated, for removal: This API element is subject to removal in a future version.Load RDF/XML from an InputStream, leaving relative URIs as relative.voidload(InputStream in, String xmlBase) Deprecated, for removal: This API element is subject to removal in a future version.Load RDF/XML from an InputStream.voidDeprecated, for removal: This API element is subject to removal in a future version.Load RDF/XML from a Reader, leaving relative URIs as relative.voidDeprecated, for removal: This API element is subject to removal in a future version.Load RDF/XML from a Reader.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetHandlersWith(ARPHandlers handlers) Deprecated, for removal: This API element is subject to removal in a future version.Copies the handlers from the argument to be used by this instance.voidsetOptionsWith(ARPOptions opts) Deprecated, for removal: This API element is subject to removal in a future version.Copies the options from the argument to be used by this instance.
-
Constructor Details
-
ARP
Deprecated, for removal: This API element is subject to removal in a future version.Direct access to this RDF/XML parser is planned for removal. Please contact the Jena development community for details.Can parse one file at a time.
-
-
Method Details
-
getLocator
Deprecated, for removal: This API element is subject to removal in a future version.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.- Returns:
- Locator
-
load
Deprecated, for removal: This API element is subject to removal in a future version.Load RDF/XML from a Reader.- Parameters:
in- The input XML document.xmlBase- The base URI for the document.- Throws:
SAXException- More serious error during XML or RDF processing; or thrown from the ErrorHandler.IOException- Occurring during XML processing.
-
load
Deprecated, for removal: This API element is subject to removal in a future version.Load RDF/XML from an InputStream.- Parameters:
in- The input XML document.xmlBase- The base URI for the document.- Throws:
SAXException- More serious error during XML or RDF processing; or thrown from the ErrorHandler.IOException- Occurring during XML processing.
-
load
Deprecated, for removal: This API element is subject to removal in a future version.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.IOException- Occurring during XML processing.
-
load
Deprecated, for removal: This API element is subject to removal in a future version.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.IOException- Occurring during XML processing.
-
getHandlers
Deprecated, for removal: This API element is subject to removal in a future version.The handlers used during parsing. The handlers can be changed by calling this method and then using theset..Handlermethods inARPHandlers. The handlers can be copied onto another ARP instance using thesetHandlersWith(org.apache.jena.rdfxml.arp1.ARPHandlers)method.- Specified by:
getHandlersin interfaceARPConfig- Returns:
- The handlers used during parsing.
- See Also:
-
setHandlersWith
Deprecated, for removal: This API element is subject to removal in a future version.Copies the handlers from the argument to be used by this instance. To make further modifications it is necessary to callgetHandlers()to retrieve this instance's copy of the handler information.- Specified by:
setHandlersWithin interfaceARPConfig- Parameters:
handlers- The new values to use.
-
getOptions
Deprecated, for removal: This API element is subject to removal in a future version.The options used during parsing. The options can be changed by calling this method and then using theset..methods inARPOptions. The options can be copied onto another ARP instance using thesetOptionsWith(org.apache.jena.rdfxml.arp1.ARPOptions)method.- Specified by:
getOptionsin interfaceARPConfig- Returns:
- The handlers used during parsing.
- See Also:
-
setOptionsWith
Deprecated, for removal: This API element is subject to removal in a future version.Copies the options from the argument to be used by this instance. To make further modifications it is necessary to callgetOptions()to retrieve this instance's copy of the options.- Specified by:
setOptionsWithin interfaceARPConfig- Parameters:
opts- The new values to use.
-
setBadStatementHandler
Deprecated, for removal: This API element is subject to removal in a future version.
-