|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gr.forth.ics.rssdb.storage.DBRDFProperty
|
+--gr.forth.ics.rssdb.storage.specrepr.SpecReprRDFProperty
Stores an RDF property
| Field Summary | |
protected static java.sql.PreparedStatement |
addDataProperty
|
protected static java.sql.PreparedStatement |
addProperty
|
protected static java.sql.PreparedStatement |
addPropertyChild
|
protected static java.sql.PreparedStatement |
addSubProperty
|
| Constructor Summary | |
SpecReprRDFProperty(gr.forth.ics.vrp.corevrp.model.RDF_Property rdf_property,
DBStorage storage)
|
|
| Method Summary | |
boolean |
checkStoredSubProperty()
Tests if the superproperties of the RDF property are identical to those stored in DBMS for this RDF property. |
boolean |
compareDomainRange(int domainID,
int rangeID,
int rng_kind)
Check if the domain and range of the property declared in the RDF file is identical to the respective of the property that is stored in the db. |
java.util.ArrayList |
getDomainRange()
Returns the URIs of the domain & the range classes of the stored RDF property and sets their ids in the hashmap. |
java.util.ArrayList |
getMetaClassesbelongs()
Returns the identifiers of the metaclasses under which the property has been classified |
static java.sql.ResultSet |
getSubPropertiesOf(int post,
int index,
boolean includeProperty,
boolean isDAG,
java.sql.Connection con)
Returns an ResultSet containing the post numbers of the stored subproperties of the property with post number |
static 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 |
getURI(java.sql.Connection con,
int id)
|
static void |
initPreparedStatements(java.sql.Connection con,
DBStorage storage)
Initializes prepared statements required for storing an RDF Property in the database |
boolean |
isStoredLink(java.lang.String field1,
java.lang.String field2,
int ext,
java.lang.String propertyTableName)
Tests if the property link has been stored in the DB. |
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_obj,
int[] dRType,
java.lang.String propertyTableName)
Stores a property link. |
protected void |
storeNonLabelChildren(boolean direct)
Stores the properties that are descendants of the current property, through non-tree arcs |
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 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 . |
| Methods inherited from class gr.forth.ics.rssdb.storage.DBRDFProperty |
getRDFProperty, getStorage, setRDFProperty, setStorage |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static java.sql.PreparedStatement addProperty
protected static java.sql.PreparedStatement addDataProperty
protected static java.sql.PreparedStatement addSubProperty
protected static java.sql.PreparedStatement addPropertyChild
| Constructor Detail |
public SpecReprRDFProperty(gr.forth.ics.vrp.corevrp.model.RDF_Property rdf_property,
DBStorage storage)
| Method Detail |
public static void initPreparedStatements(java.sql.Connection con,
DBStorage storage)
throws java.sql.SQLException
public int store(DBValidator dbv)
throws java.sql.SQLException
store in interface PersistentRDFPropertystore in class DBRDFProperty
public boolean compareDomainRange(int domainID,
int rangeID,
int rng_kind)
throws java.sql.SQLException
domainID - The id of domain class of the stored propertyrangeID - The id of range class of the stored property
public static java.lang.String getURI(java.sql.Connection con,
int id)
throws java.sql.SQLException
public java.util.ArrayList getDomainRange()
throws java.sql.SQLException
getDomainRange in interface PersistentRDFPropertygetDomainRange in class DBRDFProperty
public void storeProperty(DBValidator dbv)
throws java.sql.SQLException
storeProperty in interface PersistentRDFPropertystoreProperty in class DBRDFProperty
public void storeSubProperty(int property_id)
throws java.sql.SQLException
storeSubProperty in interface PersistentRDFPropertystoreSubProperty in class DBRDFProperty
public boolean checkStoredSubProperty()
throws java.sql.SQLException
checkStoredSubProperty in interface PersistentRDFPropertycheckStoredSubProperty in class DBRDFProperty
public boolean isStoredLink(java.lang.String field1,
java.lang.String field2,
int ext,
java.lang.String propertyTableName)
throws java.sql.SQLException
public static 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.
public void storeLink(gr.forth.ics.vrp.corevrp.model.Resource fromRef,
java.lang.Object to_obj,
int[] dRType,
java.lang.String propertyTableName)
throws java.sql.SQLException
storeLink in interface PersistentRDFPropertystoreLink in class DBRDFProperty
public void storePropertyLinks()
throws java.sql.SQLException
PersistentRDFPropertystorePropertyLinks in interface PersistentRDFPropertystorePropertyLinks in class DBRDFProperty
public java.util.ArrayList getMetaClassesbelongs()
throws java.sql.SQLException
protected void storeNonLabelChildren(boolean direct)
throws java.sql.SQLException
java.sql.SQLException -
public static java.sql.ResultSet getSubPropertiesOf(int post,
int index,
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||