com.mkdoc.sax
Class XhtmlStoreWriter
java.lang.Object
|
+--com.mkdoc.sax.AbstractContentHandler
|
+--com.mkdoc.sax.AbstractRdfContentHandler
|
+--com.mkdoc.sax.AbstractStoreWriter
|
+--com.mkdoc.sax.XhtmlStoreWriter
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, RdfContentHandler
- public class XhtmlStoreWriter
- extends AbstractStoreWriter
- implements org.xml.sax.ContentHandler
A Sesame repository writer for XHTML meta
and
link
element content.
Generates RDF Graph
objects and adds
them to a Sesame repository. Supports Dublin Core
element and qualified terms schemata.
- Version:
- 0.3 2005-11-01
- Author:
- Philip Shaw
Method Summary |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Extract meta and link element content. |
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, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
XhtmlStoreWriter
public XhtmlStoreWriter(StoreManager manager,
java.net.URL url)
- Construct from a Sesame repository and initial URI.
- Parameters:
manager
- A subject manager interface to store the RDF triples.url
- An initial URI subject.- Since:
- Version 0.1 2005-02-16
startElement
public final void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Extract
meta
and link
element content.
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class AbstractContentHandler
- Parameters:
uri
- The namespace URI for the element.localName
- The local element name.qName
- The qualified element name.attributes
- A set of attributes.
- Throws:
org.xml.sax.SAXException
- If the element is not a meta
or link
element.- Since:
- Version 0.1 2005-02-16