gr.forth.ics.rdfsuite.rssdb.storage
Class StorageParameters

java.lang.Object
  extended by gr.forth.ics.rdfsuite.rssdb.storage.StorageParameters

public class StorageParameters
extends java.lang.Object


Field Summary
 java.lang.String DATA_PROPERTY
          The name of the table in which are stored all data properties
protected static org.apache.log4j.Logger log
           
 int NO_TRIPLE
           
 
Constructor Summary
StorageParameters(RDFDB_Model model)
           
 
Method Summary
 void addStoredGS(java.lang.String gs)
           
 void addStoredNS(java.lang.String ns)
           
 java.util.Properties getAuthentication()
          Validation and Storage of data descriptions is performed.
 boolean getCluster()
           
 java.sql.Connection getConnection()
           
 boolean getCreateIndex()
           
 java.lang.String getCurrentGS()
          Returns the current graphspace URI
 java.lang.String getCurrentNS()
          Returns the current namespace URI
 java.lang.String getDbFunctionsPath()
           
 java.lang.String getDbURL()
           
 int getMax_literal_length()
           
 int getMax_lpart_length()
           
 int getMax_prefix_length()
           
 int getMax_uri_length()
           
 int getModification_counter()
           
 java.lang.String getModifiedGS()
           
 java.lang.String getModifiedNS()
           
 boolean getNewData()
           
 boolean getNewSchema()
           
 boolean getPermitSchemaRendundancies()
          Returns true if we permit Rendundant information in the schema to be stored, otherwise false.
 java.lang.String getRDFSUITE_NS()
           
 int getRepresentation()
           
 java.sql.Statement getStatement()
           
 java.util.ArrayList getStoredGS()
          Contains the URIS of the graphspaces that have been stored during this model storing
 java.util.ArrayList getStoredNS()
          Contains the URIS of the namespaces that have been stored during this model storing
 boolean getStoredSchema()
           
 java.lang.StringBuffer getTimeStatisticsText()
           
 boolean getTransaction()
           
 boolean getVerbose()
           
 boolean isHierarchyDAG()
          Returns true if the stored class/metaclass/property hierarchies are dags.
 void isJDBCDriverAccessible()
           
 boolean isTimeStatistics()
           
 void setAuthentication(java.lang.String logi, java.lang.String pass)
          Sets your login and password.
 void setCluster(boolean b)
           
 void setConnection(java.sql.Connection con)
           
 void setCreateIndex(boolean b)
           
 void setCurrentGS(java.lang.String graphspace_uri)
           
 void setCurrentNS(java.lang.String namespace_uri)
           
 void setDbFunctionsPath(java.lang.String dbFunctionsPath)
           
 void setDbURL(java.lang.String dbPath)
           
 void setMax_literal_length(int max_literal_length)
           
 void setMax_lpart_length(int max_lpart_length)
           
 void setMax_prefix_length(int max_prefix_length)
           
 void setMax_uri_length(int max_uri_length)
           
 void setModification_counter(int m)
           
 void setModifiedGraphspace(java.lang.String modifiedGS)
          Set the namespace you wish to be stored in the db for the input local file/thesaurus
 void setModifiedGS(java.lang.String modifiedGS)
           
 void setModifiedNamespace(java.lang.String modifiedNS)
          Set the namespace you wish to be stored in the db for the input local file/thesaurus
 void setModifiedNS(java.lang.String modifiedNS)
           
 void setNewData(boolean b)
          Validation and Storage of data descriptions is performed.
 void setNewSchema(boolean b)
          Validation and storage of schema descriptions of a new RDF schema.
 void setRDFSUITE_NS(java.lang.String rdfsuite_ns)
           
 void setRepresentation(int representation)
           
 void setStatement(java.sql.Statement s)
           
 void setStoredGS(java.util.ArrayList gs)
           
 void setStoredNS(java.util.ArrayList ns)
           
 void setStoredSchema(boolean b)
          Validation and storage of schema descriptions of a new RDF schema.
 void setTimeStatistics(boolean timeStatistics)
           
 void setTimeStatisticsText(java.lang.StringBuffer timeStatisticsText)
           
 void setTransaction(boolean transaction)
           
 void setVerbose(boolean b)
          Prints messages about the actions that are being performed by the RSSDB and the descriptions are being stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_PROPERTY

public final java.lang.String DATA_PROPERTY
The name of the table in which are stored all data properties

See Also:
Constant Field Values

log

protected static final org.apache.log4j.Logger log

NO_TRIPLE

public int NO_TRIPLE
Constructor Detail

StorageParameters

public StorageParameters(RDFDB_Model model)
Method Detail

getModification_counter

public int getModification_counter()

setModification_counter

public void setModification_counter(int m)

getMax_prefix_length

public int getMax_prefix_length()

setMax_prefix_length

public void setMax_prefix_length(int max_prefix_length)

getRDFSUITE_NS

public java.lang.String getRDFSUITE_NS()

setRDFSUITE_NS

public void setRDFSUITE_NS(java.lang.String rdfsuite_ns)

getMax_lpart_length

public int getMax_lpart_length()

setMax_lpart_length

public void setMax_lpart_length(int max_lpart_length)

getMax_literal_length

public int getMax_literal_length()

setMax_literal_length

public void setMax_literal_length(int max_literal_length)

getMax_uri_length

public int getMax_uri_length()

setMax_uri_length

public void setMax_uri_length(int max_uri_length)

getDbFunctionsPath

public java.lang.String getDbFunctionsPath()

setDbFunctionsPath

public void setDbFunctionsPath(java.lang.String dbFunctionsPath)

getVerbose

public boolean getVerbose()

setVerbose

public void setVerbose(boolean b)
Prints messages about the actions that are being performed by the RSSDB and the descriptions are being stored.


getCreateIndex

public boolean getCreateIndex()

setCreateIndex

public void setCreateIndex(boolean b)

getConnection

public java.sql.Connection getConnection()

getStatement

public java.sql.Statement getStatement()

setStatement

public void setStatement(java.sql.Statement s)

getPermitSchemaRendundancies

public boolean getPermitSchemaRendundancies()
Returns true if we permit Rendundant information in the schema to be stored, otherwise false. For the time being we doesn't permit Rendundant information

Returns:

isHierarchyDAG

public boolean isHierarchyDAG()
Returns true if the stored class/metaclass/property hierarchies are dags. If they are trees, returns false.


getCurrentNS

public java.lang.String getCurrentNS()
Returns the current namespace URI


getCurrentGS

public java.lang.String getCurrentGS()
Returns the current graphspace URI


setCurrentNS

public void setCurrentNS(java.lang.String namespace_uri)

setCurrentGS

public void setCurrentGS(java.lang.String graphspace_uri)

getAuthentication

public java.util.Properties getAuthentication()
Validation and Storage of data descriptions is performed. Data validation should be based also on data descriptions stored in the DB. Checks for redundant information are enabled.


setAuthentication

public void setAuthentication(java.lang.String logi,
                              java.lang.String pass)
Sets your login and password.

Parameters:
login - as a postgreSQL user
pass - password as a postgreSQL user

getNewSchema

public boolean getNewSchema()

setNewSchema

public void setNewSchema(boolean b)
Validation and storage of schema descriptions of a new RDF schema.


getNewData

public boolean getNewData()

setNewData

public void setNewData(boolean b)
Validation and Storage of data descriptions is performed. Data validation should be based only on data descriptions found in current namespace. Checks for redundant information are disabled.


setCluster

public void setCluster(boolean b)

setConnection

public void setConnection(java.sql.Connection con)

isJDBCDriverAccessible

public void isJDBCDriverAccessible()
                            throws gr.forth.ics.rdfsuite.services.exceptions.PostgresConnectionException
Throws:
gr.forth.ics.rdfsuite.services.exceptions.PostgresConnectionException - In case Postgres drivers are not found

getDbURL

public java.lang.String getDbURL()

setDbURL

public void setDbURL(java.lang.String dbPath)

getStoredSchema

public boolean getStoredSchema()

setStoredSchema

public void setStoredSchema(boolean b)
Validation and storage of schema descriptions of a new RDF schema. Set this option in case the input namespace has already been stored. Updates made on the schema will be reported and if all of them are consistent (e.g., refinements to stored classes/properties) they will be stored. In case the input namespace has not already been stored this option is equivalent to the 'newSchema' one.


getModifiedNS

public java.lang.String getModifiedNS()

getModifiedGS

public java.lang.String getModifiedGS()

setModifiedNS

public void setModifiedNS(java.lang.String modifiedNS)

setModifiedGS

public void setModifiedGS(java.lang.String modifiedGS)

getStoredNS

public java.util.ArrayList getStoredNS()
Contains the URIS of the namespaces that have been stored during this model storing


setStoredNS

public void setStoredNS(java.util.ArrayList ns)

addStoredNS

public void addStoredNS(java.lang.String ns)

getStoredGS

public java.util.ArrayList getStoredGS()
Contains the URIS of the graphspaces that have been stored during this model storing


setStoredGS

public void setStoredGS(java.util.ArrayList gs)

addStoredGS

public void addStoredGS(java.lang.String gs)

setModifiedNamespace

public void setModifiedNamespace(java.lang.String modifiedNS)
Set the namespace you wish to be stored in the db for the input local file/thesaurus

Parameters:
modifiedNS - The namespace that will be stored in the db for the input local file/thesaurus

setModifiedGraphspace

public void setModifiedGraphspace(java.lang.String modifiedGS)
Set the namespace you wish to be stored in the db for the input local file/thesaurus

Parameters:
modifiedNS - The namespace that will be stored in the db for the input local file/thesaurus

getTransaction

public boolean getTransaction()

setTransaction

public void setTransaction(boolean transaction)

isTimeStatistics

public boolean isTimeStatistics()

setTimeStatistics

public void setTimeStatistics(boolean timeStatistics)

getTimeStatisticsText

public java.lang.StringBuffer getTimeStatisticsText()

setTimeStatisticsText

public void setTimeStatisticsText(java.lang.StringBuffer timeStatisticsText)

getCluster

public boolean getCluster()

setRepresentation

public void setRepresentation(int representation)
                       throws gr.forth.ics.rdfsuite.services.exceptions.InvalidDatabaseRepresentationException
Parameters:
representation -
Throws:
gr.forth.ics.rdfsuite.services.exceptions.InvalidDatabaseRepresentationException - if the given representation is not one of the RDFDB_Model.SPECIFIC,RDFDB_Model.SPECIFIC_NOSUBTABLE,RDFDB_Model.SPECIFIC_UNIQUETABLE or RDFDB_Model.EMPTY

getRepresentation

public int getRepresentation()