com.hp.hpl.mesa.rdf.jena.rdb
Class DriverGenericAttribute

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
        |
        +--com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericAttribute
All Implemented Interfaces:
IRDBDriver

public class DriverGenericAttribute
extends DriverGenericGeneric

Adaption of the base generic layout driver to use separate tables for specific predicates (called attributes). This version just duplicates the generic store do a replacement version if this looks useful.

Version:
$Revision: 1.2 $ on $Date: 2001/11/26 18:20:08 $
Author:
Dave Reynolds

Field Summary
 
Fields inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
ANON_NAMESPACE
 
Constructor Summary
DriverGenericAttribute()
          Create a bare instance of the driver.
 
Method Summary
 void addStatement(Statement s, ModelRDB m)
          Register a statement in the database.
 void cleanDB()
          Remove all RDF information from a database.
 void hintPropertyTable(Property p)
          Hint to the store that the given property could be stored as an attribute table.
 ResultSetIterator listStatements(Resource subject, Property predicate, RDFNode object, ModelRDB m)
          List all the statements in the model which match the given subject, predicate object - each of which can be null (meaning wildcard).
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.rdb.DriverGenericGeneric
allocateModelID, attachStore, clear, close, createConstraints, deleteModel, deleteStatement, deleteStatement, detachStore, formatDB, getBareStatementResource, getConnection, getLiteral, getLiteralFromCache, getLiteralID, getModelID, getNamespace, getProperty, getProperty, getPropertyFromCache, getResource, getResource, getResourceFromCache, getResourceID, getSQLCache, isDBFormatOK, isStatementPresent, listModels, listNamespaces, listReifiedStatements, listStatements, listSubjects, loadDatabaseDriver, loadProperties, makeProperty, makeResource, makeResource, preloadCaches, saveProperties, setCacheLimits, setConnection, splitNamespace, supportsJenaReification, supportsMultipleModels, toString, wrapDBID, wrapFlag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriverGenericAttribute

public DriverGenericAttribute()
Create a bare instance of the driver. It is not functional until a database connection has been supplied via setConnection.

Method Detail

hintPropertyTable

public void hintPropertyTable(Property p)
                       throws RDFException
Hint to the store that the given property could be stored as an attribute table.

Specified by:
hintPropertyTable in interface IRDBDriver
Overrides:
hintPropertyTable in class DriverGenericGeneric
RDFException

addStatement

public void addStatement(Statement s,
                         ModelRDB m)
                  throws RDFException
Register a statement in the database.

Specified by:
addStatement in interface IRDBDriver
Overrides:
addStatement in class DriverGenericGeneric
RDFException

listStatements

public ResultSetIterator listStatements(Resource subject,
                                        Property predicate,
                                        RDFNode object,
                                        ModelRDB m)
                                 throws RDFException
List all the statements in the model which match the given subject, predicate object - each of which can be null (meaning wildcard).

Specified by:
listStatements in interface IRDBDriver
Overrides:
listStatements in class DriverGenericGeneric
RDFException

cleanDB

public void cleanDB()
Remove all RDF information from a database. This will only work if there are no other clients us the DB so is mostly to simplify testing that a practical tool. Partial DB config or cleaning can leave the DB in a strange state hence it will continue with each cleanup phase even if earlier phases have generated errors and erros are only logged, not propagated as exceptions.

Specified by:
cleanDB in interface IRDBDriver
Overrides:
cleanDB in class DriverGenericGeneric


Copyright © 2001 Hewlett-Packard. All Rights Reserved.