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

Field Summary
 
Fields inherited from class com.mkdoc.sax.AbstractStoreWriter
graph, manager, subjectUri
 
Fields inherited from class com.mkdoc.sax.AbstractRdfContentHandler
DC_PREFIX, DCTERMS_URI, NODE_PREFIX, NODE_SUFFIX, NS_XHTML1, profile, RDF_TYPE, RDF_VALUE, subject, URI_SCHEMES
 
Fields inherited from class com.mkdoc.sax.AbstractContentHandler
locator
 
Constructor Summary
XhtmlStoreWriter(StoreManager manager, java.net.URL url)
          Construct from a Sesame repository and initial URI.
 
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 com.mkdoc.sax.AbstractStoreWriter
endDocument, getSubjectUri, setSubjectUri
 
Methods inherited from class com.mkdoc.sax.AbstractRdfContentHandler
escape, expandPredicate, expandPredicates, expandScheme, getBNode, getBNodeId, getSubject, isUri, setApplicationProfile, setSubject
 
Methods inherited from class com.mkdoc.sax.AbstractContentHandler
characters, endElement, endPrefixMapping, getAttributeValue, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, 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, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 

Constructor Detail

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
Method Detail

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