com.mkdoc.sax
Class AbstractStoreWriter
java.lang.Object
|
+--com.mkdoc.sax.AbstractContentHandler
|
+--com.mkdoc.sax.AbstractRdfContentHandler
|
+--com.mkdoc.sax.AbstractStoreWriter
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, RdfContentHandler
- Direct Known Subclasses:
- LinkStoreWriter, MetaStoreWriter, XhtmlStoreWriter
- public abstract class AbstractStoreWriter
- extends AbstractRdfContentHandler
Base class for content handlers that write to Sesame RDF repositories.
- Version:
- 0.5 2005-11-01
- Author:
- Philip Shaw
Field Summary |
protected org.openrdf.model.Graph |
graph
The resource graph. |
protected StoreManager |
manager
A store manager reference. |
protected org.openrdf.model.URI |
subjectUri
The subject of the RDF statement. |
Method Summary |
void |
endDocument()
Add the graph to the repository. |
org.openrdf.model.URI |
getSubjectUri()
Get the current subject of the RDF statement. |
void |
setSubjectUri(org.openrdf.model.URI uri)
Set the subject of the RDF statement. |
Methods inherited from class com.mkdoc.sax.AbstractContentHandler |
characters, endElement, endPrefixMapping, getAttributeValue, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
manager
protected StoreManager manager
- A store manager reference.
- Since:
- Version 0.4 2005-05-31
graph
protected org.openrdf.model.Graph graph
- The resource graph.
- Since:
- Version 0.1 2005-02-15
subjectUri
protected org.openrdf.model.URI subjectUri
- The subject of the RDF statement.
- Since:
- Version 0.1 2005-02-15
AbstractStoreWriter
public AbstractStoreWriter()
setSubjectUri
public final void setSubjectUri(org.openrdf.model.URI uri)
- Set the subject of the RDF statement.
- Parameters:
uri
- The URI of the subject, such as the URL
of an (X)HTML document.- Since:
- Version 0.1 2005-02-15
getSubjectUri
public final org.openrdf.model.URI getSubjectUri()
- Get the current subject of the RDF statement.
- Returns:
- The URI subject of the RDF statement, which
may be the URL of an (X)HTML document.
- Since:
- Version 0.1 2005-02-15
endDocument
public final void endDocument()
throws org.xml.sax.SAXException
- Add the graph to the repository.
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Overrides:
endDocument
in class AbstractContentHandler
- Throws:
org.xml.sax.SAXException
- If there is an error
adding the Graph
to the
repository.- Since:
- Version 0.1 2005-02-15