gr.forth.ics.rssdb.rdfstorageinterface
Interface PersistentRDFProperty

All Known Implementing Classes:
DBRDFProperty, SpecReprRDFProperty, SpecReprVar1RDFProperty

public interface PersistentRDFProperty

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

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

Method Summary
 boolean checkStoredSubProperty()
          Tests if the superproperties of the RDF property are identical to those stored in DBMS for this RDF property.
 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.
 int store(DBValidator dbv)
          Stores an instantiation link between the RDF property and the class rdf:Property.
 void storeLink(gr.forth.ics.vrp.corevrp.model.Resource fromRef, java.lang.Object to, int[] rngType, java.lang.String propertyTableName)
          Stores a property link.
 void storeProperty(DBValidator dbv)
          Stores an instantiation link between the RDF_Property object and the class rdf:Property.
 void storePropertyLinks()
          Stores all property's links.
 void storeSubProperty(int property_id)
          Stores the rdfs:subPropertyOf links that are defined on the RDF property.
 

Method Detail

getDomainRange

public 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.

checkStoredSubProperty

public 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.

store

public 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

storeProperty

public void storeProperty(DBValidator dbv)
                   throws java.sql.SQLException
Stores an instantiation link between the RDF_Property object and the class rdf:Property. It also stores the domain and range of the property.

storeLink

public 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.

storePropertyLinks

public void storePropertyLinks()
                        throws java.sql.SQLException
Stores all property's links.

storeSubProperty

public void storeSubProperty(int property_id)
                      throws java.sql.SQLException
Stores the rdfs:subPropertyOf links that are defined on the RDF property.