com.hp.hpl.jena.grddl
Class GRDDLReader

java.lang.Object
  extended by com.hp.hpl.jena.grddl.impl.GRDDLReaderBase
      extended by 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

Constructor Summary
GRDDLReader()
           
 
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
 

Constructor Detail

GRDDLReader

public GRDDLReader()
Method Detail

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.negotiateSee section 8.4 of RFC 2295.
Also enables client side support for transparent content negotiation, including getting all results.
grddl.rdfaset to true for RDFA processing only
grddl.disabledif true then only transforms specified with properties are applied
grddl.xml-xformsAdd propvalue to list of xforms to apply to all (non-XHTML) XML documents. (null clears list)
grddl.html-xformsAdd 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.