|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gr.forth.ics.rssdb.storage.DBStorage
|
+--gr.forth.ics.rssdb.storage.specrepr.SpecReprDBStorage
Validates and Stores RDF descriptions in SPECIFIC/SPECIFIC_NOSUBTABLE representation
| Fields inherited from class gr.forth.ics.rssdb.storage.DBStorage |
con, DATA_PROPERTY, EMPTY, ENUMERATION_ELEMENT_PROPERTY, hlabel, RDFSUITE_NS, repr, resourcesIDs, SPECIFIC, SPECIFIC_NOSUBTABLE, SPECIFIC_UNIQUETABLE, stmt, subclass_dag, subproperty_dag, VRPModel |
| Constructor Summary | |
SpecReprDBStorage(int repr)
|
|
| Method Summary | |
protected void |
createInitIndexes(java.sql.Statement stmt)
Indexes are created on the core database tables and on the table where data resources are stored. |
protected void |
createPrimitiveTableIndexes(java.sql.Statement stmt)
Indexes are defined on the primitive tables. |
protected void |
createPrimitiveTables(java.sql.Statement stmt)
The core/primitive tables of the database representation are created and they are populated with data. |
protected boolean |
existMultipleLevelClassifiedResource()
Checks if there are resources in the db that are stored both at schema and data level. |
protected void |
initPreparedStatements()
Initialize prepared statements used for the storage |
boolean |
store(java.lang.String input,
java.lang.String dbPath)
Validates and store RDF descriptions |
protected int |
storeClass(DBValidator dbv)
Stores classes |
protected void |
storeClassDescriptions()
Stores classes data descriptions |
protected int |
storeMetaClass()
Stores metaclasses |
protected void |
storePrimitiveSchema()
Stores primitive schema |
protected int |
storeProperty(DBValidator dbv)
Stores properties |
protected void |
storePropertyLinks()
Stores property data descriptions |
protected void |
storeResource()
Stores data resources |
boolean |
storeThesaurus(java.lang.String input,
java.lang.String dbPath)
Stores thesauri that conform to the CWTH DTD. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public SpecReprDBStorage(int repr)
| Method Detail |
protected void createPrimitiveTables(java.sql.Statement stmt)
throws java.sql.SQLException
protected void storePrimitiveSchema()
throws java.sql.SQLException
DBStoragestorePrimitiveSchema in class DBStorage
protected void createPrimitiveTableIndexes(java.sql.Statement stmt)
throws java.sql.SQLException
protected void createInitIndexes(java.sql.Statement stmt)
throws java.sql.SQLException
protected void initPreparedStatements()
throws java.sql.SQLException
DBStorageinitPreparedStatements in class DBStorage
protected int storeMetaClass()
throws java.sql.SQLException
DBStoragestoreMetaClass in class DBStorage
protected int storeClass(DBValidator dbv)
throws java.sql.SQLException
DBStoragestoreClass in class DBStorage
protected void storeClassDescriptions()
throws java.sql.SQLException
DBStoragestoreClassDescriptions in class DBStorage
protected int storeProperty(DBValidator dbv)
throws java.sql.SQLException
DBStoragestoreProperty in class DBStorage
protected void storePropertyLinks()
throws java.sql.SQLException
DBStoragestorePropertyLinks in class DBStorage
protected boolean existMultipleLevelClassifiedResource()
throws java.sql.SQLException
existMultipleLevelClassifiedResource in class DBStorage
protected void storeResource()
throws java.sql.SQLException
DBStoragestoreResource in class DBStorage
public boolean store(java.lang.String input,
java.lang.String dbPath)
store in class DBStorageinput - The file or the URL you want to store
(e.g., http://www.ics.forth.gr/isl/RDF/VRP/Examples/cweb.rdf).dbPath - The database URL. The format is:
<postgreSQL server>:<port>/<dbname>
postgreSQL server: The machine where postgreSQL server is running.
port: The port where postgreSQL server is running. dbname: database name,
e.g., athena.ics.forth.gr:8080/testdb
public boolean storeThesaurus(java.lang.String input,
java.lang.String dbPath)
storeThesaurus in class DBStorageinput - the thesaurus file. Note: Make sure that the thesaurus file
has read permissions for PostgreSQL account (i.e. the person that
has run the postgreSQL commands initdb and postmaster) and that the path
to the file is accessible by the machine where postgreSQL server is running.dbPath - The database URL. The format is:
<postgreSQL server>:<port>/<dbname>
postgreSQL server: The machine where postgreSQL server is running.
port: The port where postgreSQL server is running. dbname: database name,
e.g., athena.ics.forth.gr:8080/testdb
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||