java.lang.Object
org.apache.jena.rdfxml.arp1.ARP
All Implemented Interfaces:
ARPConfig

@Deprecated(forRemoval=true) public class ARP extends Object implements 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:
  1. Create an ARP.
  2. Set its handlers, by calling the getHandlers() method, and then.
    • Setting the statement handler.
    • Optionally setting the other handlers.
  3. 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

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, 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.
    void
    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.
    void
    load(InputStream in, String xmlBase)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Load RDF/XML from an InputStream.
    void
    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.
    void
    load(Reader in, String xmlBase)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Load RDF/XML from a Reader.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    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.
    void
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait