Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.rdf.arp.lang.* (6)com.hp.hpl.jena.rdf.arp.test.* (15)

com.hp.hpl.jena.rdf.arp: Javadoc index of package com.hp.hpl.jena.rdf.arp.


Package Samples:

com.hp.hpl.jena.rdf.arp.test: A parser for RDF/XML .  
com.hp.hpl.jena.rdf.arp.lang

Classes:

NTriple: A command line interface into ARP. Creates NTriple's or just error messages. java <class-path> com.hp.hpl.jena.arp.NTriple ( [ -[xstfu]][ -b xmlBase -[eiw] NNN[,NNN...] ] [ file ] [ url ] )... <class-path> should contain jena.jar , xerces.jar , and icu4j.jar or equivalents. All options, files and URLs can be intemingled in any order. They are processed from left-to-right. file Converts (embedded) RDF in XML file into N-triples url Converts (embedded) RDF from URL into N-triples -b uri Sets XML Base to the absolute URI. -r Content is RDF (no embedding, rdf:RDF tag may be omitted). -t ...
URI: A class to represent a Uniform Resource Identifier (URI). This class is designed to handle the parsing of URIs and provide access to the various components (scheme, host, port, userinfo, path, query string and fragment) that may constitute a URI. Parsing of a URI specification is done according to the URI syntax described in RFC 2396 . Every URI consists of a scheme, followed by a colon (':'), followed by a scheme-specific part. For URIs that follow the "generic URI" syntax, the scheme- specific part begins with two slashes ("//") and may be followed by an authority segment (comprised of user information, ...
ARP: Another RDF Parser. To load an RDF file: Create an ARP. Set its handlers, by calling the getHandlers() 55 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) 55 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() ...
SAX2RDF: Allows connecting an arbitrary source of SAX events with ARP. For use with a DOM tree, 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. from a parser). It must be configured to use namespaces, and namespace prefixes. This initializing can be done for XMLReaders using installHandlers(org.xml.sax.XMLReader, com.hp.hpl.jena.rdf.arp.XMLHandler) 55 . Triples and errors are reported on a different thread. ...
SAX2RDFImpl: This class is public merely to reduce the amount of irrelevant documentation generated by Javadoc for SAX2RDF . There is nothing of interest in this JavaDoc. This if (depth>0) superclass implements the functionality needed by SAX2RDF . The API given here is the familiar SAX.
Token: This class is not part of the API. It is public for test purposes only. Token's are passed from the XML parser to the RDF parser. An important part of the contract is that you must not keep a reference to any token for too long, since each token has a reference to the next token, and hence to the rest of the file. If it is necessary to keep a token, clone it, and set the next field to null.
ARPConfig: Used to set event handlers and options on ARP , SAX2Model , and SAX2RDF instances.
ARPOptions: Configure error reporting options etc on ARP , SAX2RDF and SAX2Model instances.
Iso639: Language codes from ISO639-1 and ISO639-2. An encapsulation of the registry of ISO639-1 and ISO639-2 codes as found at http://lcweb.loc.gov/standards/iso639-2/englangn.html on the 24th July 2001, and dated 12th October 2000.
AResource: A URI or blank node reported to a StatementHandler . Note: equality ( .equals ) rather than identity ( == ) must be used to compare AResource s.
IanaLanguageTag: Language codes registered by IANA. An encapsulation of the IANA language registry found at http://www.iana.org/assignments/language-tags . The values were updated on 8th July 2002 from a file dated 7th July 2002.
ARPEventHandler: Convenience generalization of all ARP handler interfaces. Sample usage: ARPHandler h = new ARPHandler() { // definitions }; ARP arp = new ARP(); arp.setStatementHandler(h); arp.setExtendedHandler(h); arp.setNamespaceHandler(h);
ARPHandler: Convenience generalization of all ARP handler interfaces. Sample usage: ARPHandler h = new ARPHandler() { // definitions }; ARP arp = new ARP(); arp.setStatementHandler(h); arp.setExtendedHandler(h); arp.setNamespaceHandler(h);
Iso3166: Country code names from ISO 3166. An encapsulation of registry of ISO 3166. This was updated on 24th July 2001 from http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/db_en.html
CollectionAction: This stuff looks somewhat complicated. The original code has a recursive call to do tails of collections. However, this led to a stack overflow. In keeping with the streaming parser goals the current code outputs triples as fast as it can, without any stack.
ExtendedHandler: Extended callbacks from a reader to an RDF application. This reports: when a blank node goes out of scope, allowing its anonymous ID to be freed by external applications. when a rdf:RDF start and end tag is seen
ParseException: An exception during the RDF processing of ARP. Note: it is distinguished from an XML related exception from Xerces because while both are SAXParseException's, the latter are not com.hp.hpl.jena.arp.ParseException's.
StatementHandler: The callback from a reader to an RDF application. Each triple in the input file causes a call on one of the statement methods. The same triple may occur more than once in a file, causing repeat calls to the method.
XMLHandler: This class converts SAX events into a stream of encapsulated events suitable for the RDF parser. In effect, this is the RDF lexer. updates by kers to handle exporting namespace prefix maps.
XMLMemTest: The purpose of this class is to be a minimal example which exercises the memory leak problems reported in "Streaming OWL DL" by Jeremy Carroll. I don't believe it is though ...
MalformedURIException: 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.
SingleThreadedParser: This parser uses the Xerces pull parser configuration, and runs in a single thread. Hence it is preferred over the SAX2RDF parser, which needs two threads.
RelativeURIException: This is thrown in the constructor of URI to indicate that the problem is that the argument is a relative URI, and no base has been given.
TokenManager: An implementation for this interface is generated by JavaCCParser. The user is free to use any implementation of their choice.
CharacterModel: Some support for the Character Model Recommendation from the W3C (currently in second last call working draft).

Home | Contact Us | Privacy Policy | Terms of Service