com.mkdoc.sax
Interface RdfContentHandler

All Superinterfaces:
org.xml.sax.ContentHandler
All Known Implementing Classes:
AbstractRdfContentHandler

public interface RdfContentHandler
extends org.xml.sax.ContentHandler

Handler type for extracting RDF content.

Version:
0.3 2005-05-26
Author:
Philip Shaw

Method Summary
 java.lang.String expandPredicate(java.lang.String predicate)
          Expand a schema encoded value to a URI.
 java.lang.String[] expandPredicates(java.lang.String list)
          Expand a space separated list of schema encoded values.
 java.lang.String expandScheme(java.lang.String scheme)
          Expand an encoding scheme to a URI.
 java.lang.String getBNode()
          Get a blank node.
 java.lang.String getBNodeId()
          Get a blank node identifier.
 java.lang.String getSubject()
          Get the current subject URI for the RDF handler.
 void setApplicationProfile(ApplicationProfile profile)
          Set the application profile for the handler.
 void setSubject(java.lang.String uri)
          Set the subject of the RDF content handler.
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Method Detail

setApplicationProfile

public void setApplicationProfile(ApplicationProfile profile)
Set the application profile for the handler.

Parameters:
profile - The application profile to be used.
Since:
Version 1.5 2005-05-26

setSubject

public void setSubject(java.lang.String uri)
Set the subject of the RDF content handler.

Parameters:
uri - The URI of the subject, such as the URL of an (X)HTML document.
Since:
Version 0.1 2005-02-28

getSubject

public java.lang.String getSubject()
Get the current subject URI for the RDF handler.

Returns:
The URI of the RDF statement, which may be the URL of an (X)HTML document.
Since:
Version 0.1 2005-02-28

expandPredicate

public java.lang.String expandPredicate(java.lang.String predicate)
Expand a schema encoded value to a URI.

Parameters:
predicate - The encoded triple predicate to expand in the form "DC.Title" for instance.
Returns:
The expanded URI reference for the triple predicate or the original string if it is not matched.
Since:
Version 0.1 2005-02-28

expandPredicates

public java.lang.String[] expandPredicates(java.lang.String list)
Expand a space separated list of schema encoded values.

Intended to extract Dublin Core encoded values from HTML link elements' rel or rev attributes, which may be mixed with generic link types. Distinguishes properties that are not encoded metadata predicates and silently drops them.

Parameters:
list - The encoded, space separated link list.
Returns:
An array of expanded URI references only.
Since:
Version 0.1 2005-02-28

expandScheme

public java.lang.String expandScheme(java.lang.String scheme)
Expand an encoding scheme to a URI.

Parameters:
scheme - The encoded triple component to expand in the form "DCTERMS.W3CDTF" for instance.
Returns:
The expanded URI reference for the triple component or the original string if it is not matched.
Since:
Version 0.1 2005-02-28

getBNode

public java.lang.String getBNode()
Get a blank node.

Returns:
A unique blank node reference.
Since:
Version 0.1 2005-02-28

getBNodeId

public java.lang.String getBNodeId()
Get a blank node identifier.

Returns:
A unique blank node identifier.
Since:
Version 0.1 2005-02-28