| java.lang.Object com.hp.hpl.jena.rdf.arp.JenaReader
Method Summary | |
static Triple | convert(AResource s, AResource p, AResource o) | static Triple | convert(AResource s, AResource p, ALiteral o) | public ARPOptions | getOptions() | public void | read(Model m, String url) Reads from url, using url as base, adding triples to model. | public void | read(Model m, Reader reader, String xmlBase) Reads from reader, using base URI xmlbase, adding triples to model. | public void | read(Graph g, Reader reader, String xmlBase) Reads from reader, using base URI xmlbase, adding triples to graph. | public void | read(Model m, InputStream in, String xmlBase) Reads from inputStream, using base URI xmlbase, adding triples to model. | public void | read(Graph g, InputStream in, String xmlBase) Reads from inputStream, using base URI xmlbase, adding triples to graph. | static Object | setArpProperty(ARPOptions options, String str, Object v, RDFErrorHandler eh) | public RDFErrorHandler | setErrorHandler(RDFErrorHandler errHandler) Change the error handler.
Note that errors of class
ParseException can be promoted using
the
ParseException.promote method. | public void | setOptionsWith(ARPOptions opts) | public Object | setProperty(String str, Object value) Change a property of the RDF or XML parser.
I do not believe that many of the XML features or properties are in fact
useful for ARP users. | public static void | useMe(Model m) Sets the reader for the languages RDF/XML and RDF/XML-ABBREV to be
JenaReader. |
arpPropertiesURLLength | final static int arpPropertiesURLLength(Code) | | |
JenaReader | public JenaReader()(Code) | | Creates new JenaReader
|
read | public void read(Model m, String url) throws JenaException(Code) | | Reads from url, using url as base, adding triples to model.
Uses content negotiation to ask for application/rdf+xml, if available.
Parameters: m - A model to add triples to. Parameters: url - The URL of the RDF/XML document. |
read | public void read(Model m, Reader reader, String xmlBase) throws JenaException(Code) | | Reads from reader, using base URI xmlbase, adding triples to model. If
xmlbase is "" then relative URIs may be added to model.
Parameters: m - A model to add triples to. Parameters: reader - The RDF/XML document. Parameters: xmlBase - The base URI of the document or "". |
read | public void read(Graph g, Reader reader, String xmlBase) throws JenaException(Code) | | Reads from reader, using base URI xmlbase, adding triples to graph. If
xmlbase is "" then relative URIs may be added to graph.
Parameters: g - A graph to add triples to. Parameters: reader - The RDF/XML document. Parameters: xmlBase - The base URI of the document or "". |
read | public void read(Model m, InputStream in, String xmlBase) throws JenaException(Code) | | Reads from inputStream, using base URI xmlbase, adding triples to model.
If xmlbase is "" then relative URIs may be added to model.
Parameters: m - A model to add triples to. Parameters: in - The RDF/XML document stream. Parameters: xmlBase - The base URI of the document or "". |
read | public void read(Graph g, InputStream in, String xmlBase)(Code) | | Reads from inputStream, using base URI xmlbase, adding triples to graph.
If xmlbase is "" then relative URIs may be added to graph.
Parameters: g - A graph to add triples to. Parameters: in - The RDF/XML document stream. Parameters: xmlBase - The base URI of the document or "". |
setArpProperty | static Object setArpProperty(ARPOptions options, String str, Object v, RDFErrorHandler eh)(Code) | | Supported proprties: error-mode (String) default, lax, strict,
strict-ignore, strict-warning, strict-error, strict-fatal embedding
(String/Boolean) true, false ERR_* (String/Integer) em_warning, em_fatal,
em_ignore, em_error IGN_* ditto WARN_* ditto
|
setProperty | public Object setProperty(String str, Object value) throws JenaException(Code) | | Change a property of the RDF or XML parser.
I do not believe that many of the XML features or properties are in fact
useful for ARP users. The ARP properties allow fine-grained control over
error reporting.
This interface can be used to set and get:
- SAX2 features
- See Xerces
features . Value should be given as a String "true" or "false" or a
Boolean.
- SAX2 properties
- See Xerces
properties .
- Xerces features
- See Xerces
features . Value should be given as a String "true" or "false" or a
Boolean.
- Xerces properties
- See Xerces
properties .
- ARP properties
- These are referred to either by their property name, (see below) or
by an absolute URL of the form
http://jena.hpl.hp.com/arp/properties/<PropertyName> .
The value should be a String, an Integer or a Boolean depending on the
property.
ARP property names and string values are case insensitive.
Parameters: str - The property to set. Parameters: value - The new value; values of class String will be converted intoappropriate classes. Values of class Boolean or Integer willbe used for appropriate properties. throws: JenaException - For bad values. The old value, or null if none, or old value is inaccesible. |
useMe | public static void useMe(Model m)(Code) | | Sets the reader for the languages RDF/XML and RDF/XML-ABBREV to be
JenaReader.
Parameters: m - The Model on which to set the reader properties. |
|
|