|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.engines.dynamicKnowledgeIntegration.terminologicalKB.IntegrateDefinition
Title: IntegrateDefinition
Description: This class implements definition dynamic integration process
There are three modes of Definition Integration : classification-based integration, generalization-based integration, and information retrieval based integration. Copyright: Copyright (c) 2004-2009 Adil KABBAJ
Nested Class Summary | |
(package private) class |
IntegrateDefinition.TypeEntryPoint
|
Field Summary | |
CGOperations |
cgOperations
|
(package private) boolean |
classify
|
(package private) java.util.HashMap |
compareNodesHshMap
|
(package private) java.util.HashMap |
focusHshMap
|
AmineList |
integratedNodesList
This ArrayList is used for GUI purposes. |
Lexicon |
lexicon
The current lexicon used during the integration. |
(package private) CS |
newOntNode
|
Ontology |
ontology
The current ontology used during the integration |
(package private) boolean |
simulation
|
(package private) boolean |
trace
|
javax.swing.JTextArea |
traceArea
This variable is used to know in which JTextArea the trace will be displayed |
(package private) AmineList |
typeEntryPoints
|
Constructor Summary | |
IntegrateDefinition(Ontology ont)
This is a minimal specification of IntegrateDefinition. |
|
IntegrateDefinition(Ontology ont,
Lexicon lex)
Create a IntegrateDefinition task with the specified ont as the ontology where the integration should be processed and lex as the lexicon to use among the lexicons available in the ontology. |
|
IntegrateDefinition(Ontology ont,
Lexicon lex,
javax.swing.JTextArea txtArea)
Create a IntegrateDefinition task with the specified ont as the ontology where the integration should be processed, lex as the lexicon to use among the lexicons available in the ontology and txtArea as the Area where the trace of the integration is displayed. |
Method Summary | |
IntegrationResult |
ask(CG newDescr)
|
IntegrationResult |
ask(CG newDescr,
AmineList pertinentTypes)
|
IntegrationResult |
ask(CG newDescr,
AmineList pertinentTypes,
AmineList superTypesPertinentTypes)
|
static IntegrationResult |
ask(Ontology ontology,
CG defDescr)
|
static IntegrationResult |
ask(Ontology ontology,
CG defDescr,
AmineList pertinentTypes)
|
(package private) java.util.ArrayList |
children(CS ontologyNode)
returns an ArrayList of all the children of an Ontology Node except those that are Individual |
IntegrationResult |
classify(Identifier idType,
CG newDescr)
|
IntegrationResult |
classify(Identifier idType,
CG newDescr,
AmineList pertinentTypes)
|
IntegrationResult |
classify(Identifier idType,
CG newDescr,
AmineList pertinentTypes,
AmineList superTypesPertinentTypes)
|
static IntegrationResult |
classify(Ontology ontology,
Identifier idType,
CG defDescr)
|
static IntegrationResult |
classify(Ontology ontology,
Identifier idType,
CG defDescr,
AmineList pertinentTypes)
Static Methods That Can be Used by other Components of Amine like *** Prolog+CG, or any Java class |
(package private) boolean |
compareAndProceed(Concept entryPoint,
CS currentOntNode,
CS fatherOntNode,
boolean realComparison,
Type typeIndex,
AmineList typeIndexes)
method for comparing and propagating a new description from a node |
CompareCGResult |
compareCG(CG newCG,
Concept entryPoint,
CG currentCG,
CS fatherOntNode)
|
(package private) void |
compression(Type type,
java.util.ArrayList childrenList)
Perform compression of the description of CSs specified in childrenList as well as compression of their descendants. |
(package private) void |
doContraction(CG cg,
java.util.ArrayList typeEntryPoints)
|
void |
finalize()
|
(package private) Type |
findImdtBestDef(Type type,
CG newCG,
Concept entryConcNewCG)
Find the best definition among direct subtypes of type that subsumes newCG. |
(package private) Type |
findMostSpecSubsumer(Type type,
CG newCG,
Concept entryConcNewCG)
Find the best definition among subtypes of type that subsumes newCG. |
(package private) boolean |
firstCompareAndProceed(Concept entryPoint,
CS currentOntNode,
CS fatherOntNode,
boolean realComparison,
Type typeIndex,
AmineList typeIndexes)
|
IntegrationResult |
generalize(Identifier idType,
CG newDescr)
|
IntegrationResult |
generalize(Identifier idType,
CG newDescr,
AmineList pertinentTypes)
|
IntegrationResult |
generalize(Identifier idType,
CG newDescr,
AmineList pertinentTypes,
AmineList superTypesPertinentTypes)
|
static IntegrationResult |
generalize(Ontology ontology,
Identifier idType,
CG defDescr)
|
static IntegrationResult |
generalize(Ontology ontology,
Identifier idType,
CG defDescr,
AmineList pertinentTypes)
|
static AmineList |
getConceptTypes(java.lang.Object defDescr)
|
AmineList |
getResultOfSimulation()
|
boolean |
getTrace()
Get the value of the boolean attribute trace. |
(package private) boolean |
hasGenusConjDef(Type type)
Check if current type has a definition that corresponds to a conjunction of genus concepts |
IntegrationResult |
integrateDef(Identifier idType,
CG newCG,
AmineList pertinentTypes,
AmineList superTypesPertinentTypes,
boolean classify)
|
static boolean |
integrateSitWthNewType(Ontology ontology,
CG description,
Type newType,
Type action)
Integrate a new situation that contains a new type newType which is a new action. |
static boolean |
integrateUpdateSit4Type(Ontology ontology,
CG description,
Type newType,
Type action)
Integrate a new situation (description) for the new type newType. |
(package private) boolean |
moreGeneral(Type newType,
Type brother)
|
(package private) void |
printFocusHashMap()
|
(package private) boolean |
proceed(Concept entryPoint,
CS currentOntNode,
CS fatherOntNode,
boolean realComparison,
CompareCGResult compareCGResults,
Type typeIndex,
AmineList typeIndexes)
method for proceeding on the real update of the memory |
(package private) void |
propagateFromOneFocus(CS oneFocus,
AmineList oneEntryPointList)
|
(package private) void |
propagateNewNodeViaFocus()
|
void |
setTrace(boolean trace)
Set the specified value to the boolean attribute trace. |
void |
setTraceArea(javax.swing.JTextArea txtArea)
|
java.lang.String |
toStringResultOfSimulation()
|
(package private) void |
trace(java.lang.String message)
It appends a String message to the area where the trace is displayed. |
(package private) void |
trace(java.lang.String message,
CG cg)
|
(package private) void |
trace(java.lang.String message,
CS cs)
|
(package private) void |
updatePertinentTypes(AmineList initialConcTypesSet,
AmineList currConcTypesSet,
AmineList pertinentTypes)
Update pertinent types list by adding any type in currConcTypesSet that is not contained in initialConcTypesSet nor in pertinentTypes. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Ontology ontology
public Lexicon lexicon
public CGOperations cgOperations
AmineList typeEntryPoints
java.util.HashMap compareNodesHshMap
java.util.HashMap focusHshMap
CS newOntNode
boolean classify
boolean simulation
public javax.swing.JTextArea traceArea
public AmineList integratedNodesList
boolean trace
Constructor Detail |
public IntegrateDefinition(Ontology ont) throws DynamicKnowledgeIntegrationException
ont
- The ontology considered for the integration. ont can not be null.
DynamicOntologyException
- if ont is null.
DynamicKnowledgeIntegrationException
public IntegrateDefinition(Ontology ont, Lexicon lex) throws DynamicKnowledgeIntegrationException
ont
- The ontology considered for the integration. ont can not be null.lex
- The lexicon considered for the integration. lex could be null.
DynamicOntologyException
- if ont is null.
DynamicKnowledgeIntegrationException
public IntegrateDefinition(Ontology ont, Lexicon lex, javax.swing.JTextArea txtArea) throws DynamicKnowledgeIntegrationException
ont
- The ontology considered for the integration. ont can not be null.lex
- The lexicon considered for the integration. lex could be null.txtArea
- The Area where the trace is displayed. txtArea could be null.
DynamicOntologyException
- if ont is null.
DynamicKnowledgeIntegrationException
Method Detail |
public void finalize()
public AmineList getResultOfSimulation()
public java.lang.String toStringResultOfSimulation()
public boolean getTrace()
public void setTrace(boolean trace)
trace
- public void setTraceArea(javax.swing.JTextArea txtArea)
void trace(java.lang.String message)
message
- a String that is sent to the trace Area.void trace(java.lang.String message, CG cg) throws java.lang.Exception
java.lang.Exception
void trace(java.lang.String message, CS cs) throws java.lang.Exception
java.lang.Exception
public IntegrationResult classify(Identifier idType, CG newDescr) throws java.lang.Exception
java.lang.Exception
public IntegrationResult classify(Identifier idType, CG newDescr, AmineList pertinentTypes) throws java.lang.Exception
java.lang.Exception
public IntegrationResult classify(Identifier idType, CG newDescr, AmineList pertinentTypes, AmineList superTypesPertinentTypes) throws java.lang.Exception
java.lang.Exception
public IntegrationResult generalize(Identifier idType, CG newDescr) throws java.lang.Exception
java.lang.Exception
public IntegrationResult generalize(Identifier idType, CG newDescr, AmineList pertinentTypes) throws java.lang.Exception
java.lang.Exception
public IntegrationResult generalize(Identifier idType, CG newDescr, AmineList pertinentTypes, AmineList superTypesPertinentTypes) throws java.lang.Exception
java.lang.Exception
public IntegrationResult ask(CG newDescr) throws java.lang.Exception
java.lang.Exception
public IntegrationResult ask(CG newDescr, AmineList pertinentTypes) throws java.lang.Exception
java.lang.Exception
public IntegrationResult ask(CG newDescr, AmineList pertinentTypes, AmineList superTypesPertinentTypes) throws java.lang.Exception
java.lang.Exception
public static IntegrationResult classify(Ontology ontology, Identifier idType, CG defDescr, AmineList pertinentTypes)
public static IntegrationResult classify(Ontology ontology, Identifier idType, CG defDescr)
public static IntegrationResult generalize(Ontology ontology, Identifier idType, CG defDescr, AmineList pertinentTypes)
public static IntegrationResult generalize(Ontology ontology, Identifier idType, CG defDescr)
public static IntegrationResult ask(Ontology ontology, CG defDescr, AmineList pertinentTypes)
public static IntegrationResult ask(Ontology ontology, CG defDescr)
public static AmineList getConceptTypes(java.lang.Object defDescr)
public IntegrationResult integrateDef(Identifier idType, CG newCG, AmineList pertinentTypes, AmineList superTypesPertinentTypes, boolean classify) throws java.lang.Exception
idType
- IdentifiernewCG
- CGpertinentTypes
- AmineListsuperTypesPertinentTypes
- AmineListclassify
- boolean
java.lang.Exception
void propagateNewNodeViaFocus() throws java.lang.Exception
java.lang.Exception
void propagateFromOneFocus(CS oneFocus, AmineList oneEntryPointList) throws java.lang.Exception
java.lang.Exception
boolean compareAndProceed(Concept entryPoint, CS currentOntNode, CS fatherOntNode, boolean realComparison, Type typeIndex, AmineList typeIndexes) throws java.lang.Exception
entryPoint
- a Concept contained in the newCG to integrate. Comparison
will take entryPoint as an entry point for newCG.currentOntNode
- a CS corresponding to the CS that the new description is currently compared withfatherOntNode
- a CS corresponding to the father in the ontology of the currentOntNoderealComparison
- a Boolean that specifies if the integration via currentOntNode is
effective or not. This parameter is important for Individual node especially.
java.lang.Exception
boolean firstCompareAndProceed(Concept entryPoint, CS currentOntNode, CS fatherOntNode, boolean realComparison, Type typeIndex, AmineList typeIndexes) throws java.lang.Exception
java.lang.Exception
boolean proceed(Concept entryPoint, CS currentOntNode, CS fatherOntNode, boolean realComparison, CompareCGResult compareCGResults, Type typeIndex, AmineList typeIndexes) throws java.lang.Exception
entryPoint
- A Concept that represents an Entry Point in the newCG to integrate.currentOntNode
- a CS corresponding to the CS that the new description is currently proccessed withfatherOntNode
- a CS corresponding to the father in the ontology of the currentOntNoderealComparison
- a boolean indicating if we can integrate from the current node or from its fathercompareCGResults
- a CompareCGResults containing the result of the comparison between the
current ontology node and the new description
java.lang.Exception
boolean hasGenusConjDef(Type type)
boolean moreGeneral(Type newType, Type brother)
public CompareCGResult compareCG(CG newCG, Concept entryPoint, CG currentCG, CS fatherOntNode) throws java.lang.Exception
java.lang.Exception
void printFocusHashMap() throws java.lang.Exception
java.lang.Exception
void updatePertinentTypes(AmineList initialConcTypesSet, AmineList currConcTypesSet, AmineList pertinentTypes)
initialConcTypesSet
- AmineListcurrConcTypesSet
- AmineListpertinentTypes
- AmineListvoid compression(Type type, java.util.ArrayList childrenList) throws java.lang.Exception
type
- childrenList
-
java.lang.Exception
java.util.ArrayList children(CS ontologyNode)
ontologyNode
- an CS for which we look for the children that are not of type Individual
void doContraction(CG cg, java.util.ArrayList typeEntryPoints) throws java.lang.Exception
java.lang.Exception
public static boolean integrateSitWthNewType(Ontology ontology, CG description, Type newType, Type action)
ontology
- Ontologydescription
- CG Description that contains a new type newTypenewType
- Typeaction
- Type that refeers to type Action. newType is assumed to be a subtype of actionpublic static boolean integrateUpdateSit4Type(Ontology ontology, CG description, Type newType, Type action)
ontology
- Ontologydescription
- CGnewType
- TypeType findMostSpecSubsumer(Type type, CG newCG, Concept entryConcNewCG)
type
- TypenewCG
- CGentryConcNewCG
- Concept
Type findImdtBestDef(Type type, CG newCG, Concept entryConcNewCG)
type
- TypenewCG
- CGentryConcNewCG
- Concept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |