|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.conceptualIndex.documentModel.SemanticIndex
public class SemanticIndex
Represents an index of semantic information, connected to a SymbolicGraph
. Each symbol
of the SymbolicGraph can be assigned a semantics. Connected symbols in the SymbolicGraph,
are considered to indicate inheritance of semantics. Therefore, the SemanticIndex takes into
account such inheritance and can be used to retrieve the semantics of every symbol in the
graph.
Field Summary | |
---|---|
NotificationListener |
Listener
|
IMeaningExtractor |
MeaningExtractor
A meaning extractor, that is null by default, leading meaning lookups to the InternetWordNetMeaningExtractor . |
Constructor Summary | |
---|---|
SemanticIndex(SymbolicGraph sgGraph)
Creates a new instance of SemanticIndex, given a SymbolicGraph . |
Method Summary | |
---|---|
GraphSimilarity |
compareMeaningsOf(salvo.jesus.graph.Vertex vNode1,
salvo.jesus.graph.Vertex vNode2)
TODO: Implement Determines the similarity between two nodes of this graph. |
static double |
compareWordDefinitions(WordDefinition wd1,
WordDefinition wd2)
Computes the similarity between two word definitions, represented as WordDefinition objects. |
WordDefinition |
getMeaning(java.lang.String sString)
Locates and returns the meaning of a string within this graph. |
WordDefinition |
getMeaning(salvo.jesus.graph.Vertex vNode)
Locates and returns the meaning of vertex' label within this graph. |
NotificationListener |
getNotificationListener()
|
static void |
main(java.lang.String[] args)
Test function. |
static java.lang.String |
meaningToString(java.lang.Object oWd)
Converts a word definition to its string representation. |
void |
removeNotificationListener()
|
void |
setNotificationListener(NotificationListener nlListener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IMeaningExtractor MeaningExtractor
InternetWordNetMeaningExtractor
. If not null, then the assigned meaning extractor
is used to get meanings.
InternetWordNetMeaningExtractor
,
LocalWordNetMeaningExtractor
,
IMeaningExtractor
public NotificationListener Listener
Constructor Detail |
---|
public SemanticIndex(SymbolicGraph sgGraph)
sgGraph
- The graph of symbols to use, in order to initialize the semantic index.SymbolicGraph
Method Detail |
---|
public WordDefinition getMeaning(java.lang.String sString)
sString
- The string to look up.
WordDefinition
object.public WordDefinition getMeaning(salvo.jesus.graph.Vertex vNode)
vNode
- The vertex, the label of which is looked up.
WordDefinition
object.public GraphSimilarity compareMeaningsOf(salvo.jesus.graph.Vertex vNode1, salvo.jesus.graph.Vertex vNode2)
vNode1
- The first node used to perform the comparison.vNode2
- The second node used to perform the comparison.
GraphSimilarity
public static double compareWordDefinitions(WordDefinition wd1, WordDefinition wd2)
WordDefinition
objects.
wd1
- The first word definition.wd2
- The second word definition.
wd1
,wd2
as a double.
A value of 1.0 indicates complete match (that is to say the definitions are equivalent,
while a value of 0.0 indicates no match.public static java.lang.String meaningToString(java.lang.Object oWd)
oWd
- The word definition object to represent as string.
WordDefinition
public static void main(java.lang.String[] args)
args
- The command line parameters. They are not used.public void setNotificationListener(NotificationListener nlListener)
setNotificationListener
in interface Notifier
public void removeNotificationListener()
removeNotificationListener
in interface Notifier
public NotificationListener getNotificationListener()
getNotificationListener
in interface Notifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |