|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.rssdb.repr.DBRepresentation
gr.forth.ics.rdfsuite.rssdb.repr.SSRepresentation
public class SSRepresentation
| Field Summary | |
|---|---|
java.lang.String |
class1
|
static java.sql.PreparedStatement |
isMC
|
int |
repr
Indicates the representation under which the RDF descriptions will be stored |
| Constructor Summary | |
|---|---|
SSRepresentation(RDFDB_Model input_model)
|
|
| Method Summary | |
|---|---|
int |
clusterClassTables()
Clusters upon request the table where class instances are stored. |
void |
createInitIndexes(java.sql.Statement stmt)
Indexes are created on the core database tables and on the table where data resources are stored (i.e., Instances table). |
protected void |
deleteUpperMembership(IRDF_Resource rdf_resource,
int id,
java.lang.String clsuri)
Deletes the instantiation links between the resource and the superclasses of the class with identifier |
boolean |
existMultipleLevelClassifiedResource()
Checks if there are resources in the db that are stored both at schema and data level. |
java.sql.ResultSet |
getAllproperties_Domain_Range(java.lang.String schema,
java.lang.String attr8)
|
static java.sql.ResultSet |
getClassForFetching(IRDFDB_Model model,
java.sql.Statement stmt,
java.lang.String class_lname,
int namespace_id)
|
static java.lang.String |
getClassInstanceForFetching(IRDFDB_Model model,
java.lang.String uri,
java.sql.Statement stmt)
|
boolean |
getPropertyDomainRange1(java.sql.ResultSet rs,
IRDF_Property rdf_property)
|
boolean |
getPropertyDomainRange2(java.sql.ResultSet rs,
IRDF_Property rdf_property)
|
static java.sql.ResultSet |
getPropertyDomainRangeForFetching(java.sql.Statement stmt,
java.lang.String property_lname,
int namespace_id)
Prepei na epekta8ei to arxiko query gia na epistrefei kai ta ns uris tou domain kai range Added:domainm,rangem,domainn,rangen Prepei na anaktoume kai to type class tou property,class. |
int |
getRepresentation()
Is the method that returns the representation kind of the DB |
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 |
java.sql.ResultSet |
getSubClassesOfClass(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 |
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 |
java.sql.ResultSet |
getSuperPropertiesOf(int post,
boolean includeProperty,
boolean isDAG,
java.sql.Connection con)
Returns an ResultSet containing the post numbers of stored superproperties of the property with post number |
static java.lang.String |
getTypeOfClass(IRDF_Model model,
java.sql.Statement stmt,
java.lang.String class_lname)
|
static java.lang.String |
getTypeOfProperty(IRDF_Model model,
java.sql.Statement stmt,
java.lang.String prop_lname)
|
void |
initPreparedStatements()
|
boolean |
isInstanceOf(IRDF_Resource resource,
IntervalLabel clslabel)
Tests if the Resource(Individual,Class or Property) has been classified in the class with id the method parameter clsid. |
boolean |
isMetaClassNonTreeSubClass(int subpost,
int suppost,
int subindex,
java.sql.Connection con)
|
boolean |
isMetaClassSubClass(int subpost,
int suppost,
int subindex,
int supindex,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
Returns true if the metaclass with post number |
boolean |
isStoredPair(IRDF_Property rdf_property,
java.lang.String field1,
java.lang.String field2,
int ext,
java.lang.String propertyTableName)
|
boolean |
isSubClass(java.lang.String sub,
java.lang.String sup,
int level,
boolean schemaValidation)
Tests if the class with URI is subset of the class with URI . |
boolean |
resourceIsDirectInstanceOfClass(IRDF_Resource rdf_resource,
int clsid)
Tests if the Resource has been directly classified in the class with id the method parameter clsid. |
boolean |
resourceIsInstanceOfClass(IRDF_Resource rdf_resource,
IntervalLabel clslabel)
Tests if the Resource has been classified in the class with id the method parameter clsid. |
int |
store(IRDF_Class rdf_class)
Stores an instantiation link between the RDF class and the class rdfs:Class and stores the rdfs:subClassOf links defined on the RDF class. |
int |
store(IRDF_Individual rdf_class_instance,
java.lang.String graphspace_uri)
Deletes the instantiation link between Resource and the class rdfs:Resource. |
int |
store(IRDF_MetaClass rdf_meta_class)
Stores a MetaClass in the db. |
int |
store(IRDF_Property rdf_property)
Stores an instantiation link between the RDF property and the class rdf:Property. |
int |
store(IRDF_PropertyInstance rdf_property_instance,
java.lang.String graphspace_uri)
|
int |
store(IRDF_Resource rdf_resource,
java.lang.String uri)
|
void |
storeClass(IRDF_Class rdf_class)
Classify the current class under the metaclasses contained in its type list. |
void |
storeGraphspaceAsClassInstance(java.lang.String uri)
|
void |
storeMetaClass(IRDF_MetaClass rdf_meta_class)
Stores the RDF_MetaClass in the table MetaClass |
void |
storeNonLabelChildren(IRDF_Class rdf_class,
boolean direct)
Stores the classes that are descendants of the current class, through non-tree arcs |
void |
storeNonLabelChildren(IRDF_MetaClass rdf_meta_class,
boolean direct)
Stores the metaclasses that are descendants of the current metaclass, through non-tree arcs |
void |
storeNonLabelChildrenProperty(IRDF_Property rdf_property,
boolean direct)
Stores the properties that are descendants of the current property, through non-tree arcs |
void |
storePair(IRDF_Property rdf_property,
IRDF_Resource fromRef,
java.lang.Object to_obj,
int[] dRType,
java.lang.String propertyTableName,
java.lang.String graphspace_uri)
|
void |
storePrimitiveSchema()
Stores primitive schema |
void |
storeProperty(IRDF_Property rdf_property)
Stores an instantiation link between the RDF_Property object and the class rdf:Property. |
void |
storeSubClass(IRDF_Class rdf_class)
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 . |
void |
storeSubMetaClass(IRDF_MetaClass rdf_meta_class)
Stores in the SubMetaClass/Property table the rdfs:subClassOf link that is defined on RDF_MetaClass object and is an arc of the tree constructed during the labeling on the metaclass/property hierarchy . |
void |
storeSubProperty(IRDF_Property rdf_property,
int property_id)
Stores in the SubProperty table the rdfs:subPropertyOf link that is defined on RDF_Property object and is an arc of the tree constructed during the labeling on the properties hierarchy . |
java.lang.String |
ttable1()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int repr
public java.lang.String class1
public static java.sql.PreparedStatement isMC
| Constructor Detail |
|---|
public SSRepresentation(RDFDB_Model input_model)
| Method Detail |
|---|
public java.lang.String ttable1()
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public static java.sql.ResultSet getPropertyDomainRangeForFetching(java.sql.Statement stmt,
java.lang.String property_lname,
int namespace_id)
throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getTypeOfProperty(IRDF_Model model,
java.sql.Statement stmt,
java.lang.String prop_lname)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public static java.lang.String getTypeOfClass(IRDF_Model model,
java.sql.Statement stmt,
java.lang.String class_lname)
throws java.sql.SQLException
model - stmt - class_lname -
java.sql.SQLException - In case a query aborts
public static java.sql.ResultSet getClassForFetching(IRDFDB_Model model,
java.sql.Statement stmt,
java.lang.String class_lname,
int namespace_id)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public static java.lang.String getClassInstanceForFetching(IRDFDB_Model model,
java.lang.String uri,
java.sql.Statement stmt)
model - uri - A class instance uristmt -
java.sql.SQLException - In case a query abortspublic int getRepresentation()
DBRepresentation
getRepresentation in class DBRepresentation
public void createInitIndexes(java.sql.Statement stmt)
throws java.sql.SQLException
createInitIndexes in class DBRepresentationjava.sql.SQLException - In case a query aborts
public void storePrimitiveSchema()
throws java.sql.SQLException
storePrimitiveSchema in class DBRepresentationjava.sql.SQLException - In case a query aborts
public void initPreparedStatements()
throws java.sql.SQLException
initPreparedStatements in class DBRepresentationjava.sql.SQLException - In case a query aborts
public int store(IRDF_Resource rdf_resource,
java.lang.String uri)
throws java.sql.SQLException
store in class DBRepresentationjava.sql.SQLException - In case a query aborts
public int store(IRDF_MetaClass rdf_meta_class)
throws java.sql.SQLException
store in class DBRepresentationjava.sql.SQLException - In case a query aborts
public void storeMetaClass(IRDF_MetaClass rdf_meta_class)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public void storeSubMetaClass(IRDF_MetaClass rdf_meta_class)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public void storeNonLabelChildren(IRDF_MetaClass rdf_meta_class,
boolean direct)
throws java.sql.SQLException
storeNonLabelChildren in class DBRepresentationjava.sql.SQLException - In case a query aborts
public int store(IRDF_Class rdf_class)
throws java.sql.SQLException
store in class DBRepresentationjava.sql.SQLException - In case a query aborts
public void storeClass(IRDF_Class rdf_class)
throws java.sql.SQLException
dbv - The DBStorage object
java.sql.SQLException - In case a query aborts
public void storeSubClass(IRDF_Class rdf_class)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public void storeNonLabelChildren(IRDF_Class rdf_class,
boolean direct)
throws java.sql.SQLException
storeNonLabelChildren in class DBRepresentationjava.sql.SQLException - In case a query aborts
public boolean isSubClass(java.lang.String sub,
java.lang.String sup,
int level,
boolean schemaValidation)
throws java.sql.SQLException
schemaValidation - Indicates if the function is used for validating schema or data
java.sql.SQLException - In case a query aborts
public boolean isMetaClassSubClass(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.
java.sql.SQLException - In case a query aborts
public boolean isMetaClassNonTreeSubClass(int subpost,
int suppost,
int subindex,
java.sql.Connection con)
throws java.sql.SQLException
subpost - suppost - subindex - con -
java.sql.SQLException - In case a query aborts
public int store(IRDF_Property rdf_property)
throws java.sql.SQLException
store in class DBRepresentationjava.sql.SQLException - In case a query aborts
public void storeProperty(IRDF_Property rdf_property)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public void storeSubProperty(IRDF_Property rdf_property,
int property_id)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public void storeNonLabelChildrenProperty(IRDF_Property rdf_property,
boolean direct)
throws java.sql.SQLException
storeNonLabelChildrenProperty in class DBRepresentationjava.sql.SQLException - In case a query aborts
public int store(IRDF_Individual rdf_class_instance,
java.lang.String graphspace_uri)
throws java.sql.SQLException
store in class DBRepresentationjava.sql.SQLException - In case a query aborts
public boolean resourceIsDirectInstanceOfClass(IRDF_Resource rdf_resource,
int clsid)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public boolean resourceIsInstanceOfClass(IRDF_Resource rdf_resource,
IntervalLabel clslabel)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public 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.
java.sql.SQLException - In case a query aborts
protected void deleteUpperMembership(IRDF_Resource rdf_resource,
int id,
java.lang.String clsuri)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public 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.
java.sql.SQLException - In case a query aborts
public int store(IRDF_PropertyInstance rdf_property_instance,
java.lang.String graphspace_uri)
throws java.sql.SQLException
store in class DBRepresentationjava.sql.SQLException - In case a query aborts
public void storePair(IRDF_Property rdf_property,
IRDF_Resource fromRef,
java.lang.Object to_obj,
int[] dRType,
java.lang.String propertyTableName,
java.lang.String graphspace_uri)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public boolean isStoredPair(IRDF_Property rdf_property,
java.lang.String field1,
java.lang.String field2,
int ext,
java.lang.String propertyTableName)
throws java.sql.SQLException
rdf_property - field1 - field2 - ext - if 1 it is pair is stored directly, if 0 pair is stored under subpropertypropertyTableName -
java.sql.SQLException - In case a query aborts
public java.sql.ResultSet getSuperPropertiesOf(int post,
boolean includeProperty,
boolean isDAG,
java.sql.Connection con)
throws java.sql.SQLException
includeProperty - Indicates if the post number of the property will
be included in the resultset.
java.sql.SQLException - In case a query aborts
public int clusterClassTables()
throws java.sql.SQLException
clusterClassTables in class DBRepresentationjava.sql.SQLException - In case a query aborts
public boolean existMultipleLevelClassifiedResource()
throws java.sql.SQLException
existMultipleLevelClassifiedResource in class DBRepresentationjava.sql.SQLException - In case a query aborts
public boolean getPropertyDomainRange1(java.sql.ResultSet rs,
IRDF_Property rdf_property)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public boolean getPropertyDomainRange2(java.sql.ResultSet rs,
IRDF_Property rdf_property)
throws java.sql.SQLException
rs - rdf_property -
java.sql.SQLException - In case a query aborts
public boolean isInstanceOf(IRDF_Resource resource,
IntervalLabel clslabel)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public java.sql.ResultSet getSubClassesOfClass(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.
java.sql.SQLException - In case a query aborts
public java.sql.ResultSet getAllproperties_Domain_Range(java.lang.String schema,
java.lang.String attr8)
throws java.sql.SQLException
java.sql.SQLException - In case a query aborts
public void storeGraphspaceAsClassInstance(java.lang.String uri)
throws java.sql.SQLException
storeGraphspaceAsClassInstance in class DBRepresentationjava.sql.SQLException - In case a query aborts
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||