gr.forth.ics.rssdb.storage
Class DBRDFProperty

java.lang.Object
  |
  +--gr.forth.ics.rssdb.storage.DBRDFProperty
All Implemented Interfaces:
PersistentRDFProperty
Direct Known Subclasses:
SpecReprRDFProperty

public abstract class DBRDFProperty
extends java.lang.Object
implements PersistentRDFProperty

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

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

Constructor Summary
DBRDFProperty(gr.forth.ics.vrp.corevrp.model.RDF_Property rdf_property, DBStorage storage)
           
 
Method Summary
abstract  boolean checkStoredSubProperty()
          Tests if the superproperties of the RDF property are identical to those stored in DBMS for this RDF property.
abstract  java.util.ArrayList getDomainRange()
          Returns the URIs and the db ids of the domain & the range classes and the domain and range kind of the stored RDF property.
 gr.forth.ics.vrp.corevrp.model.RDF_Property getRDFProperty()
          Returns the reference of the VRP RDF_Property that is going to be stored in the DBMS.
 DBStorage getStorage()
          Returns the storage reference.
 void setRDFProperty(gr.forth.ics.vrp.corevrp.model.RDF_Property rdf_property)
          Sets the reference of the VRP RDF_Property object that is going to be stored in the DBMS.
 void setStorage(DBStorage storage)
          Sets the storage reference.
abstract  int store(DBValidator dbv)
          Stores an instantiation link between the RDF property and the class rdf:Property.
abstract  void storeLink(gr.forth.ics.vrp.corevrp.model.Resource fromRef, java.lang.Object to, int[] rngType, java.lang.String propertyTableName)
          Stores a property link.
abstract  void storeProperty(DBValidator dbv)
          Stores an instantiation link between the RDF_Property object and the class and the metaclasses contained in its type list.
abstract  void storePropertyLinks()
          Stores all property's links.
abstract  void storeSubProperty(int property_id)
          Stores the rdfs:subPropertyOf links that are defined on RDF_Property object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRDFProperty

public DBRDFProperty(gr.forth.ics.vrp.corevrp.model.RDF_Property rdf_property,
                     DBStorage storage)
Method Detail

getRDFProperty

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

setRDFProperty

public void setRDFProperty(gr.forth.ics.vrp.corevrp.model.RDF_Property rdf_property)
Sets the reference of the VRP RDF_Property 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.

checkStoredSubProperty

public abstract boolean checkStoredSubProperty()
                                        throws java.sql.SQLException
Tests if the superproperties of the RDF property are identical to those stored in DBMS for this RDF property.
Specified by:
checkStoredSubProperty in interface PersistentRDFProperty

store

public abstract int store(DBValidator dbv)
                   throws java.sql.SQLException
Stores an instantiation link between the RDF property and the class rdf:Property. It also stores the domain and the range and the rdfs:subPropertyOf links defined on the RDF property
Specified by:
store in interface PersistentRDFProperty

storeProperty

public abstract void storeProperty(DBValidator dbv)
                            throws java.sql.SQLException
Stores an instantiation link between the RDF_Property object and the class and the metaclasses contained in its type list. It also stores the domain and range of the property.
Specified by:
storeProperty in interface PersistentRDFProperty

storeLink

public abstract void storeLink(gr.forth.ics.vrp.corevrp.model.Resource fromRef,
                               java.lang.Object to,
                               int[] rngType,
                               java.lang.String propertyTableName)
                        throws java.sql.SQLException
Stores a property link.
Specified by:
storeLink in interface PersistentRDFProperty

storePropertyLinks

public abstract void storePropertyLinks()
                                 throws java.sql.SQLException
Stores all property's links.
Specified by:
storePropertyLinks in interface PersistentRDFProperty

storeSubProperty

public abstract void storeSubProperty(int property_id)
                               throws java.sql.SQLException
Stores the rdfs:subPropertyOf links that are defined on RDF_Property object.
Specified by:
storeSubProperty in interface PersistentRDFProperty

getDomainRange

public abstract java.util.ArrayList getDomainRange()
                                            throws java.sql.SQLException
Returns the URIs and the db ids of the domain & the range classes and the domain and range kind of the stored RDF property.
Specified by:
getDomainRange in interface PersistentRDFProperty