nesstar.api
Class NetDB

java.lang.Object
  extended by nesstar.rdf.RDFDB
      extended by nesstar.api.NetDB

public class NetDB
extends RDFDB

A repository and cache for nesstar_rdf objects information from the internet.

Created:
26 April 2002

Field Summary
 
Fields inherited from class nesstar.rdf.RDFDB
FASTER_NS, NESSTAR_NS, NS_BOOLEAN, NS_COMPLETE, NS_DOMAIN, NS_DOUBLE, NS_FILE, NS_FLOAT, NS_IN, NS_INTEGER, NS_LABEL, NS_METHOD, NS_METHOD_OBJ, NS_OBJECT, NS_OPTIONAL, NS_OUT, NS_PARAMETER, NS_PATH, NS_READONLY, NS_STRING, NS_VOID, NS_ZIPPED_STRING, RDF_BAG, RDF_NS, RDFS_CLASS, RDFS_DOMAIN, RDFS_NS, RDFS_PROPERTY, RDFS_RANGE, RDFS_RESOURCE, RDFS_SUBCLASS, TRUE
 
Constructor Summary
NetDB()
          Constructor for the NetDB object
 
Method Summary
static void createDefaultDB()
          Create and initialise the default DB
static NetDB getDB()
          Gets the dB attribute of the NetDB class
static void init()
          Use this method to create the default DB and load basics in one step if you don't want to add your own settings
static void initDB(NetDB db)
          Create and initialise the default DB
 void loadBasics()
          Load in the DB some basic objects (basic classes, properties, etc.)
 void loadResourceContent(String resourceName)
          Load in the DB the content of a local resource file.
 
Methods inherited from class nesstar.rdf.RDFDB
addClassMapping, addDefaultMapping, addMapping, addRDFSClassMapping, collectObjects, defaultWrap, getContext, getLocalObjURL, getUniqueID, iterator, load, load, load, load, load, load, lookup, lookup, makeSureTypeIsSet, markAllAsComplete, markAllAsStale, markAsStale, nestedToRDF, nToRDF, nToRDF, nToRDF, nToRDF, objsToStringIds, printMappings, printObjs, recreate, reload, reload, remove, remove, retrieve, retrieve, retrieveWithClassChain, search, search, search, search, search, searchAllOfType, searchOne, searchUniqueOfType, setContext, setLocalObjURL, stringIdsToObjs, stringIdsToObjs, toRDF, toRDF, toRDF, toRDF, toRDFCasted, toRDFNoWrap, toRDFObj, toRDFObj, toRDFWrapped, unique, wrap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetDB

public NetDB()
      throws Exception
Constructor for the NetDB object

Throws:
Exception
Method Detail

getDB

public static NetDB getDB()
Gets the dB attribute of the NetDB class

Returns:
The dB value

loadResourceContent

public void loadResourceContent(String resourceName)
                         throws Exception
Load in the DB the content of a local resource file.

Parameters:
resourceName -
Throws:
Exception

loadBasics

public void loadBasics()
                throws Exception
Load in the DB some basic objects (basic classes, properties, etc.)

Throws:
Exception

createDefaultDB

public static void createDefaultDB()
                            throws Exception
Create and initialise the default DB

Throws:
Exception

initDB

public static void initDB(NetDB db)
                   throws Exception
Create and initialise the default DB

Throws:
Exception

init

public static void init()
                 throws Exception
Use this method to create the default DB and load basics in one step if you don't want to add your own settings

Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved