|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gr.forth.ics.rssdb.storage.DBRDFClass
|
+--gr.forth.ics.rssdb.storage.specrepr.SpecReprRDFClass
Stores an RDF Class
| Field Summary | |
protected static java.sql.PreparedStatement |
addClassChild
|
protected static java.sql.PreparedStatement |
addCls
|
protected static java.sql.PreparedStatement |
addSubClass
|
| Constructor Summary | |
SpecReprRDFClass(gr.forth.ics.vrp.corevrp.model.RDF_Class rdf_class,
DBStorage storage)
|
|
| Method Summary | |
boolean |
checkStoredSubClass()
Tests if the superclasses of the RDF class are identical to those stored in DBMS for this RDF class. |
(package private) static java.util.ArrayList |
getClasses(java.sql.Connection con,
DBStorage storage)
Returns the classes that have been stored in the DBMS. |
java.util.ArrayList |
getMetaClassesbelongs()
Returns the identifiers of the metaclasses under which the class has been classified |
static java.sql.ResultSet |
getSubClassesOf(int post,
int index,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
Returns an ResultSet containing the post numbers of the stored subclasses of the class with post number |
static java.sql.ResultSet |
getSuperClassesOf(int post,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
Returns a ResultSet containing the post numbers of the stored superclasses of the class with post number |
static java.lang.String |
getURI(java.sql.Connection con,
int id,
boolean ext)
|
static void |
initPreparedStatements(java.sql.Connection con,
DBStorage storage)
Initializes the Prepared Statements required for storing an RDF class object in the database. |
protected static boolean |
isAdded(int to,
java.sql.ResultSet rs)
|
static boolean |
isSubClass(int subpost,
int suppost,
int subindex,
int supindex,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
Returns true if the class with post number |
int |
store(DBValidator dbv)
Stores an instantiation link between the RDF class and the class rdfs:Class and stores the rdfs:subClassOf links defined on the RDF class. |
void |
storeClass(DBValidator dbv)
Classify the current class under the metaclasses contained in its type list. |
protected void |
storeNonLabelChildren(boolean direct)
Stores the classes that are descendants of the current class, through non-tree arcs |
void |
storeRDFSInstantiationDescriptions()
Stores the instantiation links and the links of predefined RDFS properties that are defined on the RDF_Class object. |
void |
storeSubClass()
Stores in the SubClass table the rdfs:subClassOf link that is defined on RDF_Class object and is an arc of the tree constructed during the labeling on the class hierarchy . |
| Methods inherited from class gr.forth.ics.rssdb.storage.DBRDFClass |
getRDFClass, getStorage, setRDFClass, setStorage |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static java.sql.PreparedStatement addSubClass
protected static java.sql.PreparedStatement addClassChild
protected static java.sql.PreparedStatement addCls
| Constructor Detail |
public SpecReprRDFClass(gr.forth.ics.vrp.corevrp.model.RDF_Class rdf_class,
DBStorage storage)
| Method Detail |
public static void initPreparedStatements(java.sql.Connection con,
DBStorage storage)
throws java.sql.SQLException
static java.util.ArrayList getClasses(java.sql.Connection con,
DBStorage storage)
throws java.sql.SQLException
public void storeClass(DBValidator dbv)
throws java.sql.SQLException
storeClass in interface PersistentRDFClassstoreClass in class DBRDFClassdbv - The DBStorage objectjava.sql.SQLException -
protected void storeNonLabelChildren(boolean direct)
throws java.sql.SQLException
java.sql.SQLException -
protected static boolean isAdded(int to,
java.sql.ResultSet rs)
throws java.sql.SQLException
public boolean checkStoredSubClass()
throws java.sql.SQLException
checkStoredSubClass in interface PersistentRDFClasscheckStoredSubClass in class DBRDFClass
public void storeRDFSInstantiationDescriptions()
throws java.sql.SQLException
storeRDFSInstantiationDescriptions in interface PersistentRDFClassstoreRDFSInstantiationDescriptions in class DBRDFClass
public void storeSubClass()
throws java.sql.SQLException
storeSubClass in interface PersistentRDFClassstoreSubClass in class DBRDFClass
public static java.lang.String getURI(java.sql.Connection con,
int id,
boolean ext)
throws java.sql.SQLException
con - JBDC connection objectid - Database integer identifier of a class (or Literal or Thesaurus)ext - if false the function returns the URI of a class if the id
corresponds to a class. If true the function returns the URI of a class
or Literal type or Thesaurus if the id corresponds to a class or Literal
type or Thesaurus respectively
public int store(DBValidator dbv)
throws java.sql.SQLException
store in interface PersistentRDFClassstore in class DBRDFClass
public java.util.ArrayList getMetaClassesbelongs()
throws java.sql.SQLException
public static java.sql.ResultSet getSubClassesOf(int post,
int index,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
throws java.sql.SQLException
includeClass - Indicates if the post number of the class will
be included in the resultset.
public static java.sql.ResultSet getSuperClassesOf(int post,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
throws java.sql.SQLException
includeClass - Indicates if the post number of the class will
be included in the resultset.
public static boolean isSubClass(int subpost,
int suppost,
int subindex,
int supindex,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
throws java.sql.SQLException
subpost - The post number of the subclasssuppost - The post number of the superclasssubindex - The index number of the subclasssupindex - The index number of the superclassincludeClass - If this parameter is true, the method will return true
if the numbers subpost and suppost are equal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||