pt.ua.bioinformatics.coeus.data
Class Storage

java.lang.Object
  extended by pt.ua.bioinformatics.coeus.data.Storage

public class Storage
extends java.lang.Object

COEUS Data Storage key class. Handles all SDB-related stuff.

Storage relies on Jena internal methods and structure.
For further information please check Jena's documentation


Constructor Summary
Storage()
           
 
Method Summary
static boolean clear()
          Clears configuration information from COEUS SDB.
static boolean connect()
          Connects Seed to COEUS SDB.
static boolean connectX()
          Connects Seed to COEUS SDB without inference support.
static com.hp.hpl.jena.rdf.model.InfModel getInfmodel()
           
static com.hp.hpl.jena.rdf.model.Model getModel()
           
static com.hp.hpl.jena.reasoner.Reasoner getReasoner()
           
static com.hp.hpl.jena.sdb.Store getStore()
           
static boolean isConnected()
           
static boolean isLoaded()
           
static boolean load()
          Storage load handler for new instance builds.
static boolean loadPredicates()
          Loads available predicates in COEUS to universal list (Predicate class).
static boolean loadPredicatess()
          Loads COEUS Data Predicate information to Predicate singleton for further usage.
static void setConnected(boolean connected)
           
static void setInfmodel(com.hp.hpl.jena.rdf.model.InfModel infmodel)
           
static void setLoaded(boolean loaded)
           
static void setModel(com.hp.hpl.jena.rdf.model.Model model)
           
static void setReasoner(com.hp.hpl.jena.reasoner.Reasoner reasoner)
           
static void setStore(com.hp.hpl.jena.sdb.Store store)
           
static boolean validate()
          Validates inferred model validity according to chosen reasoner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Storage

public Storage()
Method Detail

isConnected

public static boolean isConnected()

setConnected

public static void setConnected(boolean connected)

getInfmodel

public static com.hp.hpl.jena.rdf.model.InfModel getInfmodel()

setInfmodel

public static void setInfmodel(com.hp.hpl.jena.rdf.model.InfModel infmodel)

isLoaded

public static boolean isLoaded()

setLoaded

public static void setLoaded(boolean loaded)

getModel

public static com.hp.hpl.jena.rdf.model.Model getModel()

setModel

public static void setModel(com.hp.hpl.jena.rdf.model.Model model)

getReasoner

public static com.hp.hpl.jena.reasoner.Reasoner getReasoner()

setReasoner

public static void setReasoner(com.hp.hpl.jena.reasoner.Reasoner reasoner)

getStore

public static com.hp.hpl.jena.sdb.Store getStore()

setStore

public static void setStore(com.hp.hpl.jena.sdb.Store store)

connect

public static boolean connect()
Connects Seed to COEUS SDB.

Connection information must be available in JS configuration file, sdb property.

Returns:
success of the operation.

connectX

public static boolean connectX()
Connects Seed to COEUS SDB without inference support.

Connection information must be available in JS configuration file, sdb property.

Returns:
success of the operation.

clear

public static boolean clear()
Clears configuration information from COEUS SDB.

Returns:
success of the operation.

load

public static boolean load()
Storage load handler for new instance builds.

Workflow

  1. Connect to COEUS SDB instance
  2. Cleanup all COEUS Data in SDB
  3. Load COEUS ontology into SDB
  4. Load instance setup into SDB
  5. Load predicates for building

Returns:

loadPredicatess

public static boolean loadPredicatess()
Loads COEUS Data Predicate information to Predicate singleton for further usage.

Workflow

  1. Load default Semantic Web properties
  2. Load COEUS-specific properties

Returns:
success of the operation.

loadPredicates

public static boolean loadPredicates()
Loads available predicates in COEUS to universal list (Predicate class).

Returns:
success of the operation

validate

public static boolean validate()
Validates inferred model validity according to chosen reasoner.

Returns:
validity.