|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.net.ConceptNet
public abstract class ConceptNet
ConceptNet abstracts and manages the Type
and Instance
in the concept-nets.
It provides methods to add, update, and remove the types and instances in the concept-nets.
It also provides a high level retrieval support through Query object.
Type
,
Instance
,
Entity
,
Relation
Constructor Summary | |
---|---|
ConceptNet()
|
Method Summary | ||
---|---|---|
abstract int |
add(Instance instance)
Adds the Instance to the concept-nets. |
|
abstract boolean |
close()
Closes the concept-net. |
|
abstract Result |
commit()
Commits the changes to the concept-net. |
|
abstract
|
createIndex(java.lang.String typeName,
java.lang.String attributeName,
K dataType)
Creates the index for the specified type attribute. |
|
abstract Result |
dropIndex(Type type,
java.lang.String attributeName)
Drops the index for the specified type attribute. |
|
static java.lang.String |
getConceptNetDir()
Returns the concept-net directory |
|
static java.lang.String |
getConceptNetName()
Returns the concept-net name along with path |
|
abstract Type |
getType(java.lang.String name)
Returns the existing Type from
the concept-nets.Returns NULL , if Type does not exists. |
|
abstract boolean |
hasType(java.lang.String name)
Returns true if the type with the same name exists
in the concept-net |
|
abstract Result |
induct(Type type)
Inducts the Type to the concept-nets. |
|
abstract Query |
query()
Returns the Query object. |
|
abstract Result |
remove(Instance instance)
Removes the existing Instance from
the concept-nets. |
|
abstract Result |
remove(int instanceId)
Removes the existing Instance from
the concept-nets. |
|
abstract void |
showStaistics()
Display the statistical information about the concept-net. |
|
abstract Result |
update(Instance instance)
Updates the Instance to the concept-nets. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConceptNet()
Method Detail |
---|
public abstract int add(Instance instance)
Instance
to the concept-nets.
instance
- Instance
item.
public abstract boolean close()
true
on successpublic abstract Result commit()
The operations like induct, add, update, remove, etc., does not affect the concept-net unless it is committed.
Result
public abstract <K extends java.lang.Comparable<K>> Result createIndex(java.lang.String typeName, java.lang.String attributeName, K dataType)
K
- data type objecttypeName
- type nameattributeName
- attribute namedataType
- data type
Result
public abstract Result dropIndex(Type type, java.lang.String attributeName)
type
- Type objectattributeName
- attribute name
Result
public static java.lang.String getConceptNetDir()
public static java.lang.String getConceptNetName()
public abstract Type getType(java.lang.String name)
Type
from
the concept-nets.NULL
, if Type
does not exists.
name
- type name
Type
public abstract boolean hasType(java.lang.String name)
true
if the type with the same name exists
in the concept-net
name
- type name
true
if type existspublic abstract Result induct(Type type)
Type
to the concept-nets.
type
- Type
item.
Result
public abstract Query query()
Query
public abstract Result remove(Instance instance)
Instance
from
the concept-nets.
instance
- Instance
Result
public abstract Result remove(int instanceId)
Instance
from
the concept-nets.
instanceId
- instance's id
Result
public abstract void showStaistics()
public abstract Result update(Instance instance)
Instance
to the concept-nets.
Returns status as false
if Instance
does not exists.
instance
- Instance
item.
Result
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |