gr.forth.ics.rssdb.storage
Class DBRDFClass

java.lang.Object
  |
  +--gr.forth.ics.rssdb.storage.DBRDFClass
All Implemented Interfaces:
PersistentRDFClass
Direct Known Subclasses:
SpecReprRDFClass

public abstract class DBRDFClass
extends java.lang.Object
implements PersistentRDFClass

Defines the methods required for the persistent storage of an RDF Class

Version:
2.0 (23 July 2003)
Author:
Sofia Alexaki

Constructor Summary
DBRDFClass(gr.forth.ics.vrp.corevrp.model.RDF_Class rdf_class, DBStorage storage)
           
 
Method Summary
abstract  boolean checkStoredSubClass()
          Tests if the superclasses of the RDF class are identical to those stored in DBMS for this RDF class.
 gr.forth.ics.vrp.corevrp.model.RDF_Class getRDFClass()
          Returns the reference of the VRP RDF_Class object that is going to be stored in the DBMS.
 DBStorage getStorage()
          Returns the storage reference.
 void setRDFClass(gr.forth.ics.vrp.corevrp.model.RDF_Class rdf_class)
          Sets the reference of the VRP RDF_Class object that is going to be stored in the DBMS.
 void setStorage(DBStorage storage)
          Sets the storage reference.
abstract  int store(DBValidator dbv)
          Stores the instantiation links between the RDF class and the metaclasses contained in its type list and stores the rdfs:subClassOf links defined on the RDF class.
abstract  void storeClass(DBValidator dbv)
          Stores the instantiation links between the RDF class and the metaclasses contained in its type list.
abstract  void storeRDFSInstantiationDescriptions()
          Stores the instantiation links and the links of predefined RDFS properties that are defined on the RDF Class.
abstract  void storeSubClass()
          Stores the rdfs:subClassOf links that are defined on RDF class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRDFClass

public DBRDFClass(gr.forth.ics.vrp.corevrp.model.RDF_Class rdf_class,
                  DBStorage storage)
Method Detail

getRDFClass

public gr.forth.ics.vrp.corevrp.model.RDF_Class getRDFClass()
Returns the reference of the VRP RDF_Class object that is going to be stored in the DBMS.

setRDFClass

public void setRDFClass(gr.forth.ics.vrp.corevrp.model.RDF_Class rdf_class)
Sets the reference of the VRP RDF_Class object that is going to be stored in the DBMS.

getStorage

public DBStorage getStorage()
Returns the storage reference.

setStorage

public void setStorage(DBStorage storage)
Sets the storage reference.

storeClass

public abstract void storeClass(DBValidator dbv)
                         throws java.sql.SQLException
Stores the instantiation links between the RDF class and the metaclasses contained in its type list.
Specified by:
storeClass in interface PersistentRDFClass

storeRDFSInstantiationDescriptions

public abstract void storeRDFSInstantiationDescriptions()
                                                 throws java.sql.SQLException
Stores the instantiation links and the links of predefined RDFS properties that are defined on the RDF Class.
Specified by:
storeRDFSInstantiationDescriptions in interface PersistentRDFClass

storeSubClass

public abstract void storeSubClass()
                            throws java.sql.SQLException
Stores the rdfs:subClassOf links that are defined on RDF class.
Specified by:
storeSubClass in interface PersistentRDFClass

checkStoredSubClass

public abstract boolean checkStoredSubClass()
                                     throws java.sql.SQLException
Tests if the superclasses of the RDF class are identical to those stored in DBMS for this RDF class.
Specified by:
checkStoredSubClass in interface PersistentRDFClass

store

public abstract int store(DBValidator dbv)
                   throws java.sql.SQLException
Stores the instantiation links between the RDF class and the metaclasses contained in its type list and stores the rdfs:subClassOf links defined on the RDF class.
Specified by:
store in interface PersistentRDFClass