| com.hp.hpl.jena.rdf.arp.SAX2RDF com.hp.hpl.jena.rdf.arp.SAX2Model com.hp.hpl.jena.rdf.arp.DOM2Model
DOM2Model | public class DOM2Model extends SAX2Model (Code) | | Transform DOM nodes of RDF.XML into Jena Models. Known not to work with Java
1.4.1.
author: Jeremy J. Carroll |
Field Summary | |
static Log | logger |
Constructor Summary | |
public | DOM2Model(String base, Model m) Create a new DOM2Model.
Parameters: base - The retrieval URL, or the base URI to be used while parsing. Parameters: m - A Jena Model in which to put the triples, this can be null. | public | DOM2Model(String base, Model m, String lang) Create a new DOM2Model. | | DOM2Model(String base, Model m, String lang, boolean dummy) |
Method Summary | |
public static DOM2Model | createD2M(String base, Model m) Create a new DOM2Model.
Parameters: base - The retrieval URL, or the base URI to be used while parsing. Parameters: m - A Jena Model in which to put the triples, this can be null. | public static DOM2Model | createD2M(String base, Model m, String lang) Create a new DOM2Model. | public void | load(Node document) Parse a DOM Node with the RDF/XML parser, loading the triples into the
associated Model. |
DOM2Model | public DOM2Model(String base, Model m, String lang) throws MalformedURIException(Code) | | Create a new DOM2Model. This is particularly intended for when parsing a
non-root element within an XML document. In which case the application
needs to find this value in the outer context. Optionally, namespace
prefixes can be passed from the outer context using
SAX2RDF.startPrefixMapping .
Parameters: base - The retrieval URL, or the base URI to be used while parsing. Parameters: m - A Jena Model in which to put the triples, this can be null. Ifit is null, then use SAX2RDF.getHandlersorSAX2RDF.setHandlersWithto provide a StatementHandler,and usually an org.xml.sax.ErrorHandler Parameters: lang - The current value of xml:lang when parsingstarts, usually "". throws: MalformedURIException - DOM2Model.createD2M(String,Model,String) |
load | public void load(Node document)(Code) | | Parse a DOM Node with the RDF/XML parser, loading the triples into the
associated Model. Known not to work with Java 1.4.1.
Parameters: document - |
|
|