gr.forth.ics.rdfsuite.swkm.model.db
Interface IRDFDB_Model

All Superinterfaces:
IRDF_Model
All Known Implementing Classes:
RDFDB_Model

public interface IRDFDB_Model
extends IRDF_Model


Method Summary
 void fetchSubsumptionClassHierarchyInMainMemory(java.util.Collection<IntervalLabel> parentTreeLabels)
          This methods fetches from database and creates the whole subsumption hierarchy starting from this label
 void fetchSubsumptionMetaClassHierarchyInMainMemory(java.util.Collection<IntervalLabel> parentTreeLabels)
          This methods fetches from database and creates the whole subsumption hierarchy starting from this label
 void fetchSubsumptionPropertyHierarchyInMainMemory(java.util.Collection<IntervalLabel> parentTreeLabels)
          This methods fetches from database and creates the whole subsumption hierarchy starting from this label
 void initDbSchema()
          Creates the primitive tables in the database
 void store(boolean validation)
          It is highly recommended that you use this method with validation.
 
Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Model
addClassInstance, addComment, addContainer, addDomain, addGraphspace, addIsDefinedBy, addLabel, addMember, addNamespace, addObject, addPredicate, addPropertyInstance, addRange, addSeeAlso, addStatement, addSubClass, addSubject, addSubProperty, addType, createClassDag, createDags, createLabels, createMetaClassDag, createMetaPropertyDag, createPropertyDag, eliminateRedundancies, getAvailableStreams, getClasses, getClassInstance, getClassInstances, getComment, getComments, getContainer, getContainers, getDomain, getDomains, getGraphspace, getGraphspaces, getInstances, getIsDefinedBy, getIsDefinedBys, getLabel, getLabels, getLabelsCreated, getMember, getMembers, getNamespace, getNamespaces, getObject, getObjects, getOrCreateGraphspace, getOrCreateNamespace, getPredicate, getPredicates, getProperties, getPropertyInstance, getPropertyInstances, getPropertyInstanceWithSubjectAndObject, getPropertyInstanceWithSubjectPredicateAndObject, getRange, getRanges, getSeeAlso, getSeeAlsos, getSubClasses, getSubClassOf, getSubject, getSubjects, getSubProperties, getSubProperty, getSuperClassOf, getSuperProperty, getType, getTypes, import_default_namespaces, import_graphspaces, import_namespaces, import_rdfsuite_namespace, import_xmlschema_namespace, read, read, readAll, retrieveResource, retrieveTriples, retrieveTriples, setAvailableStreams, setClassInstances, setComments, setComments, setContainers, setDomains, setDomains, setGraphspaces, setIsDefinedBys, setIsDefinedBys, setLabels, setLabels, setLabelsCreated, setMembers, setNamespaces, setObjects, setPredicates, setPropertyInstances, setRanges, setRanges, setSeeAlsos, setSeeAlsos, setSubClasses, setSubjects, setSubProperties, setSubProperties, setSuperClassesOf, setTypes, setTypes, toTriples, toTriples, validate, write_file, write_original_and_inferred_in_file, write_original_and_inferred_in_string, write_string
 

Method Detail

store

void store(boolean validation)
           throws java.sql.SQLException,
                  java.io.IOException,
                  java.lang.ClassNotFoundException,
                  gr.forth.ics.rdfsuite.services.exceptions.NamespaceStoringException,
                  gr.forth.ics.rdfsuite.services.exceptions.InvalidDatabaseRepresentationException,
                  java.lang.Exception
It is highly recommended that you use this method with validation. Use it without validation only if you have used it before with validation and you have made sure that the schemas/data you are trying to store are valid(And comply to the rdfsuite assumptions)

Parameters:
validation - true if schema validation is to be performed before schema storing.
Throws:
java.sql.SQLException
java.io.IOException
java.lang.ClassNotFoundException
gr.forth.ics.rdfsuite.services.exceptions.InvalidDatabaseRepresentationException
java.lang.Exception
gr.forth.ics.rdfsuite.services.exceptions.NamespaceStoringException

fetchSubsumptionClassHierarchyInMainMemory

void fetchSubsumptionClassHierarchyInMainMemory(java.util.Collection<IntervalLabel> parentTreeLabels)
                                                throws java.sql.SQLException
This methods fetches from database and creates the whole subsumption hierarchy starting from this label

Parameters:
label - Aan IntervalLabel object
Throws:
java.sql.SQLException

fetchSubsumptionPropertyHierarchyInMainMemory

void fetchSubsumptionPropertyHierarchyInMainMemory(java.util.Collection<IntervalLabel> parentTreeLabels)
                                                   throws java.sql.SQLException
This methods fetches from database and creates the whole subsumption hierarchy starting from this label

Parameters:
label - An IntervalLabel object
Throws:
java.sql.SQLException

fetchSubsumptionMetaClassHierarchyInMainMemory

void fetchSubsumptionMetaClassHierarchyInMainMemory(java.util.Collection<IntervalLabel> parentTreeLabels)
                                                    throws java.sql.SQLException
This methods fetches from database and creates the whole subsumption hierarchy starting from this label

Parameters:
label - An IntervalLabel object
Throws:
java.sql.SQLException

initDbSchema

void initDbSchema()
                  throws java.lang.ClassNotFoundException,
                         java.sql.SQLException
Creates the primitive tables in the database

Throws:
java.sql.SQLException - if some sql query aborts
java.lang.ClassNotFoundException - if postgres driver is not found