|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.hp.hpl.jena.rdf.arp.impl.XMLHandler
com.hp.hpl.jena.rdf.arp.impl.SAX2RDFImpl
com.hp.hpl.jena.rdf.arp.SAX2RDF
com.hp.hpl.jena.rdf.arp.SAX2Model
com.hp.hpl.jena.rdf.arp.DOM2Model
public class DOM2Model
Transform DOM nodes of RDF.XML into Jena Models. Known not to work with Java 1.4.1.
| Field Summary |
|---|
| Fields inherited from class com.hp.hpl.jena.rdf.arp.impl.XMLHandler |
|---|
nullScopeHandler, nullStatementHandler |
| Fields inherited from interface com.hp.hpl.jena.rdf.arp.impl.Names |
|---|
A_ABOUT, A_BADATTRS, A_BAGID, A_DATATYPE, A_DEPRECATED, A_ID, A_NODEID, A_PARSETYPE, A_RESOURCE, A_TYPE, A_XML_OTHER, A_XMLBASE, A_XMLLANG, A_XMLNS, CoreAndOldTerms, DAML_FIRST, DAML_LIST, DAML_NIL, DAML_REST, damlns, E_DESCRIPTION, E_LI, E_RDF, RDF_FIRST, RDF_NIL, RDF_OBJECT, RDF_PREDICATE, RDF_REST, RDF_STATEMENT, RDF_SUBJECT, RDF_TYPE, rdfns, xmlns, xmlnsns |
| Method Summary | |
|---|---|
static DOM2Model |
createD2M(String base,
Model m)
Create a new DOM2Model. |
static DOM2Model |
createD2M(String base,
Model m,
String lang)
Create a new DOM2Model. |
void |
load(Node document)
Parse a DOM Node with the RDF/XML parser, loading the triples into the associated Model. |
| Methods inherited from class com.hp.hpl.jena.rdf.arp.SAX2Model |
|---|
close, create, create, setErrorHandler, setProperty, startPrefixMapping |
| Methods inherited from class com.hp.hpl.jena.rdf.arp.SAX2RDF |
|---|
create, create, getHandlers, getOptions, installHandlers, setHandlersWith, setOptionsWith |
| Methods inherited from class com.hp.hpl.jena.rdf.arp.impl.SAX2RDFImpl |
|---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, ignorableWhitespace, processingInstruction, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, warning |
| Methods inherited from class com.hp.hpl.jena.rdf.arp.impl.XMLHandler |
|---|
allowRelativeURIs, endLocalScope, endRDF, getLocator, getSimpleName, initParse, isError, location, sameDocRef, setBadStatementHandler, setDocumentLocator, startRDF, triple, warning |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
notationDecl, resolveEntity, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
setDocumentLocator |
| Method Detail |
|---|
public static DOM2Model createD2M(String base,
Model m)
throws SAXParseException
base - The retrieval URL, or the base URI to be used while parsing.m - A Jena Model in which to put the triples, this can be null. If
it is null, then use SAX2RDF.getHandlers()or
SAX2RDF.setHandlersWith(com.hp.hpl.jena.rdf.arp.ARPHandlers)to provide a StatementHandler,
and usually an ErrorHandler
SAXParseException
public static DOM2Model createD2M(String base,
Model m,
String lang)
throws SAXParseException
SAX2RDF.startPrefixMapping(java.lang.String, java.lang.String).
base - The retrieval URL, or the base URI to be used while parsing.m - A Jena Model in which to put the triples, this can be null. If
it is null, then use SAX2RDF.getHandlers()or
SAX2RDF.setHandlersWith(com.hp.hpl.jena.rdf.arp.ARPHandlers)to provide a StatementHandler,
and usually an ErrorHandlerlang - The current value of xml:lang when parsing
starts, usually "".
SAXParseExceptionpublic void load(Node document)
document -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||