pt.ua.bioinformatics.coeus.common
Class Builder

java.lang.Object
  extended by pt.ua.bioinformatics.coeus.common.Builder

public class Builder
extends java.lang.Object

Seed builder class.

General class handler for loading new data into COEUS SDB.


Constructor Summary
Builder()
           
 
Method Summary
static boolean build()
          Instance builder.
static boolean build(java.lang.String resource)
          Instance builder for a single Resource.
static java.util.ArrayList<Resource> getResources()
           
static boolean readData(Resource r)
          Initiates data conversion process from Resource to RDF in COEUS Data SDB.
static Resource readResource(java.lang.String whatResource)
          Reads Resource object information from COEUS SDB for further building.
static void readResources()
          Reads resources from COEUS SDB and populates Resource object list for further building.
static boolean save()
          Saves new JS configuration file with updated information.
static void setResources(java.util.ArrayList<Resource> resources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Builder

public Builder()
Method Detail

getResources

public static java.util.ArrayList<Resource> getResources()

setResources

public static void setResources(java.util.ArrayList<Resource> resources)

readResources

public static void readResources()
Reads resources from COEUS SDB and populates Resource object list for further building.


readResource

public static Resource readResource(java.lang.String whatResource)
Reads Resource object information from COEUS SDB for further building.

Method used for single resource imports.

Parameters:
whatResource - the resource label that will be read.
Returns:
a new Resource object.

readData

public static boolean readData(Resource r)
Initiates data conversion process from Resource to RDF in COEUS Data SDB.

Parameters:
r - resource whose data will be read.
Returns:
success of the operation.

build

public static boolean build()
Instance builder.

Workflow

  1. Reads resource information from COEUS Data SDB
  2. Reads information for each resource (Key, Concept and LoadsFrom)
  3. Reads data for each resource

Returns:

build

public static boolean build(java.lang.String resource)
Instance builder for a single Resource.

Workflow

  1. Reads resource information from COEUS Data SDB
  2. Reads data for resource

Parameters:
resource -
Returns:

save

public static boolean save()
Saves new JS configuration file with updated information.

Returns:
success of the operation.