gr.forth.ics.rssdb.rdfstorageinterface
Interface PersistentResource

All Known Implementing Classes:
DBResource, SpecReprResource, SpecReprVar1Resource

public interface PersistentResource

Defines the methods required for the persistent storage of an resource

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

Method Summary
 void deleteUnClassifiedResource()
          Deletes the instantiation link between this Resource and the class rdfs:Resource.
 boolean isDirectInstanceOf(int clsid)
          Tests if the Resource has been directly classified in the class with db id the method parameter clsid.
 boolean isInstanceOf(int[] clslabel)
          Tests if the Resource has been classifed in the class with db id the method parameter clsid.
 boolean isStoredClass()
          Tests if the Resource has been stored in the database as a class.
 boolean isStoredProperty()
          Tests if the Resource has been stored in the database as a property.
 void store()
          Stores, if it doesn't exist, an instantiation link between the Resource and the class rdfs:Resource.
 

Method Detail

isInstanceOf

public boolean isInstanceOf(int[] clslabel)
                     throws java.sql.SQLException
Tests if the Resource has been classifed in the class with db id the method parameter clsid.

isDirectInstanceOf

public boolean isDirectInstanceOf(int clsid)
                           throws java.sql.SQLException
Tests if the Resource has been directly classified in the class with db id the method parameter clsid.

isStoredClass

public boolean isStoredClass()
                      throws java.sql.SQLException
Tests if the Resource has been stored in the database as a class.

isStoredProperty

public boolean isStoredProperty()
                         throws java.sql.SQLException
Tests if the Resource has been stored in the database as a property.

store

public void store()
           throws java.sql.SQLException
Stores, if it doesn't exist, an instantiation link between the Resource and the class rdfs:Resource.

deleteUnClassifiedResource

public void deleteUnClassifiedResource()
                                throws java.sql.SQLException
Deletes the instantiation link between this Resource and the class rdfs:Resource.