edu::tum::cs::srldb::Database Class Reference

Inheritance diagram for edu::tum::cs::srldb::Database:
Inheritance graph
[legend]

List of all members.

Classes

class  AttributeClustering
class  Counters

Public Member Functions

void addLink (Link l) throws DDException
void addObject (Object obj) throws DDException
void check () throws DDException, Exception
void clear ()
Database clone ()
 Database ()
 Database (DataDictionary dd)
HashMap< DDAttribute,
AttributeClustering
doClustering () throws DDException, Exception
HashMap< DDAttribute,
AttributeClustering
doClustering (HashMap< DDAttribute, AttributeClustering > clusterers) throws DDException, Exception
DataDictionary getDataDictionary ()
Vector< LinkgetLinks (Object o)
Collection< LinkgetLinks ()
Collection< ObjectgetObjects ()
void setDataDictionary (DataDictionary dd)
void writeBasicMLN (PrintStream out)
void writeBLOGDatabase (PrintStream out) throws DDException
void writeMLNDatabase (PrintStream out) throws Exception
void writeProximityDatabase (java.io.PrintStream out) throws Exception
void writeSRLDB (FileOutputStream s) throws IOException

Static Public Member Functions

static void applyClustering (DDAttribute attribute, Collection< Object > objects, AttributeClustering ac) throws NumberFormatException, Exception
static AttributeClustering clusterAttribute (DDAttribute attribute, Collection< Object > objects, BasicClusterer<?extends weka.clusterers.Clusterer > clusterer, ClusterNamer< weka.clusterers.Clusterer > clusterNamer) throws DDException, Exception
static Database fromFile (FileInputStream s) throws IOException, ClassNotFoundException
static String lowerCaseString (String s)
static String stdAttribName (String attribName)
static String stdAttribStringValue (String strValue)
static String stdDomainName (String domainName)
static String stdPredicateName (String name)
static String upperCaseString (String s)

Protected Attributes

DataDictionary datadict
HashSet< Linklinks
HashSet< Objectobjects

Static Private Attributes

static final long serialVersionUID = 1L

Detailed Description

Definition at line 28 of file b/Database.java.


Constructor & Destructor Documentation

edu::tum::cs::srldb::Database::Database ( DataDictionary  dd  )  [inline]

creates a relational database

Parameters:
dd the datadictionary that this database must conform to

Definition at line 42 of file b/Database.java.

edu::tum::cs::srldb::Database::Database (  )  [inline]

creates a relational database with an automatically generated data dictionary

Definition at line 51 of file b/Database.java.


Member Function Documentation

void edu::tum::cs::srldb::Database::addLink ( Link  l  )  throws DDException [inline]

Definition at line 406 of file b/Database.java.

void edu::tum::cs::srldb::Database::addObject ( Object  obj  )  throws DDException [inline]

Definition at line 401 of file b/Database.java.

static void edu::tum::cs::srldb::Database::applyClustering ( DDAttribute  attribute,
Collection< Object objects,
AttributeClustering  ac 
) throws NumberFormatException, Exception [inline, static]

Definition at line 95 of file b/Database.java.

void edu::tum::cs::srldb::Database::check (  )  throws DDException, Exception [inline]

verifies compatibility of the data with the data dictionary

Definition at line 297 of file b/Database.java.

void edu::tum::cs::srldb::Database::clear (  )  [inline]

empties this database

Definition at line 441 of file b/Database.java.

Database edu::tum::cs::srldb::Database::clone (  )  [inline]

Definition at line 371 of file b/Database.java.

static AttributeClustering edu::tum::cs::srldb::Database::clusterAttribute ( DDAttribute  attribute,
Collection< Object objects,
BasicClusterer<?extends weka.clusterers.Clusterer >  clusterer,
ClusterNamer< weka.clusterers.Clusterer >  clusterNamer 
) throws DDException, Exception [inline, static]

performs clustering on an attribute that is defined for objects in the vector objects; The number of clusters is determined by the number of names in clusterNames

Parameters:
attribute the attribute whose values are to be clustered
objects a vector of objects, some of which (but not necessarily all) must have the attribute
clusterer a clusterer used to perform the clustering
clusterNamer a namer for the resulting clusters, which is used to redefine the attribute's domain and to update all the attribute values
Exceptions:
DDException if problems with data dictionary conformity are discovered
Exception if there are no instances of the attribute, i.e. the attribute is undefines for all objects

Definition at line 64 of file b/Database.java.

HashMap<DDAttribute, AttributeClustering> edu::tum::cs::srldb::Database::doClustering (  )  throws DDException, Exception [inline]

Definition at line 367 of file b/Database.java.

HashMap<DDAttribute, AttributeClustering> edu::tum::cs::srldb::Database::doClustering ( HashMap< DDAttribute, AttributeClustering clusterers  )  throws DDException, Exception [inline]

performs clustering on the attributes for which it was specified in the data dictionary

Exceptions:
DDException 
Exception 

Definition at line 320 of file b/Database.java.

static Database edu::tum::cs::srldb::Database::fromFile ( FileInputStream  s  )  throws IOException, ClassNotFoundException [inline, static]

reads a previously stored database object from a file

Parameters:
s 
Returns:
Exceptions:
IOException 
ClassNotFoundException 

Definition at line 172 of file b/Database.java.

DataDictionary edu::tum::cs::srldb::Database::getDataDictionary (  )  [inline]

Definition at line 411 of file b/Database.java.

Vector<Link> edu::tum::cs::srldb::Database::getLinks ( Object  o  )  [inline]

returns all links in which the given object appears

Parameters:
o 
Returns:

Definition at line 387 of file b/Database.java.

Collection<Link> edu::tum::cs::srldb::Database::getLinks (  )  [inline]

Definition at line 378 of file b/Database.java.

Collection<Object> edu::tum::cs::srldb::Database::getObjects (  )  [inline]

Definition at line 397 of file b/Database.java.

static String edu::tum::cs::srldb::Database::lowerCaseString ( String  s  )  [inline, static]

returns a string where the first letter is lower case

Parameters:
s the string to convert
Returns:
the string s with the first letter converted to lower case

Definition at line 247 of file b/Database.java.

void edu::tum::cs::srldb::Database::setDataDictionary ( DataDictionary  dd  )  [inline]

Definition at line 416 of file b/Database.java.

static String edu::tum::cs::srldb::Database::stdAttribName ( String  attribName  )  [inline, static]

Definition at line 264 of file b/Database.java.

static String edu::tum::cs::srldb::Database::stdAttribStringValue ( String  strValue  )  [inline, static]

Definition at line 276 of file b/Database.java.

static String edu::tum::cs::srldb::Database::stdDomainName ( String  domainName  )  [inline, static]

Definition at line 272 of file b/Database.java.

static String edu::tum::cs::srldb::Database::stdPredicateName ( String  name  )  [inline, static]

Definition at line 268 of file b/Database.java.

static String edu::tum::cs::srldb::Database::upperCaseString ( String  s  )  [inline, static]

returns a string where the first letter is upper case

Parameters:
s the string to convert
Returns:
the string s with the first letter converted to upper case

Definition at line 258 of file b/Database.java.

void edu::tum::cs::srldb::Database::writeBasicMLN ( PrintStream  out  )  [inline]

outputs the basic MLN for this database, which contains domain definitions and predicate declarations

Parameters:
out the stream to write to

Definition at line 141 of file b/Database.java.

void edu::tum::cs::srldb::Database::writeBLOGDatabase ( PrintStream  out  )  throws DDException [inline]

Definition at line 128 of file b/Database.java.

void edu::tum::cs::srldb::Database::writeMLNDatabase ( PrintStream  out  )  throws Exception [inline]

Definition at line 114 of file b/Database.java.

void edu::tum::cs::srldb::Database::writeProximityDatabase ( java.io.PrintStream  out  )  throws Exception [inline]

outputs the data contained in this database to an XML database file for use with Proximity

Parameters:
out the stream to write to
Exceptions:
Exception 

Definition at line 184 of file b/Database.java.

void edu::tum::cs::srldb::Database::writeSRLDB ( FileOutputStream  s  )  throws IOException [inline]

writes this database object to a file (and, as a side-effect, changes all items' database references to this object in order to avoid saving data on other databases)

Parameters:
s 
Exceptions:
IOException 

Definition at line 150 of file b/Database.java.


Member Data Documentation

Definition at line 36 of file b/Database.java.

Definition at line 34 of file b/Database.java.

Definition at line 35 of file b/Database.java.

final long edu::tum::cs::srldb::Database::serialVersionUID = 1L [static, private]

Definition at line 33 of file b/Database.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:46 2013