com.hp.hpl.jena.grddl
Class GRDDLReader
java.lang.Object
com.hp.hpl.jena.grddl.impl.GRDDLReaderBase
com.hp.hpl.jena.grddl.GRDDLReader
- All Implemented Interfaces:
- com.hp.hpl.jena.rdf.model.RDFReader
public class GRDDLReader
- extends com.hp.hpl.jena.grddl.impl.GRDDLReaderBase
- implements com.hp.hpl.jena.rdf.model.RDFReader
An implementation of GRDDL for Jena,
as an RDFReader.
- Author:
- Jeremy J. Carroll
|
Method Summary |
void |
read(com.hp.hpl.jena.rdf.model.Model model,
java.io.InputStream r,
java.lang.String base)
|
void |
read(com.hp.hpl.jena.rdf.model.Model model,
java.io.Reader r,
java.lang.String base)
|
void |
read(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String url)
|
java.lang.Object |
setProperty(java.lang.String propName,
java.lang.Object propValue)
Set properties of the GRDDL reader and its
subsystems. |
| Methods inherited from class com.hp.hpl.jena.grddl.impl.GRDDLReaderBase |
eHandler, setErrorHandler, w |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFReader |
setErrorHandler |
GRDDLReader
public GRDDLReader()
read
public void read(com.hp.hpl.jena.rdf.model.Model model,
java.io.Reader r,
java.lang.String base)
- Specified by:
read in interface com.hp.hpl.jena.rdf.model.RDFReader
read
public void read(com.hp.hpl.jena.rdf.model.Model model,
java.io.InputStream r,
java.lang.String base)
- Specified by:
read in interface com.hp.hpl.jena.rdf.model.RDFReader
read
public void read(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String url)
- Specified by:
read in interface com.hp.hpl.jena.rdf.model.RDFReader
setProperty
public java.lang.Object setProperty(java.lang.String propName,
java.lang.Object propValue)
- Set properties of the GRDDL reader and its
subsystems.
GRDDL specific properties include the following:
| header.* | Sets an HTTP request header. |
| header.negotiate | See section 8.4 of
RFC 2295.
Also enables client side support for transparent content negotiation,
including getting all results. |
| grddl.rdfa | set to true for RDFA processing only |
| grddl.disabled | if true then only transforms specified
with properties are applied |
| grddl.xml-xforms | Add propvalue to list of xforms
to apply to all (non-XHTML) XML documents. (null clears list) |
| grddl.html-xforms | Add propvalue to list of xforms
to apply to all (X)HTML documents. (null clears list) |
Properties starting
"http://cyberneko.org/"
modify the behaviour of the HTML parser,
as
documented; and
other properties
modify the behaviour of the RDF/XML parser.
- Specified by:
setProperty in interface com.hp.hpl.jena.rdf.model.RDFReader- Overrides:
setProperty in class com.hp.hpl.jena.grddl.impl.GRDDLReaderBase
- Parameters:
propName - A property name.propValue - The new value of the property.
- Returns:
- The old value of the property.