ontopoly.conversion
Class SchemaTracker
java.lang.Object
ontopoly.conversion.SchemaTracker
public class SchemaTracker
- extends java.lang.Object
INTERNAL: Utility class that tracks ontological information. This
class is used by the ConvertTopicMap action as part of the ontopoly
schema inferencing code.
Method Summary |
protected ontopoly.conversion.SchemaTracker.CharType |
createCharType(java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.CharType> cmap,
TopicIF ctype)
|
protected ontopoly.conversion.SchemaTracker.PlayerType |
createPlayerType(java.util.Map<TopicIF,java.util.Map<TopicIF,java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.PlayerType>>> amap,
TopicIF atype,
TopicIF rtype,
TopicIF ptype)
|
protected ontopoly.conversion.SchemaTracker.TopicType |
createTopicType(TopicIF ttype)
|
java.util.Collection<TopicIF> |
getAssociationTypes()
|
protected ontopoly.conversion.SchemaTracker.CharType |
getCharType(java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.CharType> cmap,
TopicIF ctype)
|
int |
getExternalOccurrenceTypeMaxCardinality(TopicIF ttype,
TopicIF otype)
|
int |
getExternalOccurrenceTypeMinCardinality(TopicIF ttype,
TopicIF otype)
|
java.util.Collection<TopicIF> |
getExternalOccurrenceTypes(TopicIF ttype)
|
int |
getInternalOccurrenceTypeMaxCardinality(TopicIF ttype,
TopicIF otype)
|
int |
getInternalOccurrenceTypeMinCardinality(TopicIF ttype,
TopicIF otype)
|
java.util.Collection<TopicIF> |
getInternalOccurrenceTypes(TopicIF ttype)
|
java.util.Collection<TopicIF> |
getNameScopeTopicTypes(TopicIF ntheme)
|
int |
getNameTypeMaxCardinality(TopicIF ttype,
TopicIF ntype)
|
int |
getNameTypeMinCardinality(TopicIF ttype,
TopicIF ntype)
|
java.util.Collection<TopicIF> |
getNameTypes(TopicIF ttype)
|
java.util.Collection<TopicIF> |
getOntologyTypes()
|
protected int |
getPlayerCardinality(TopicIF atype,
TopicIF rtype,
TopicIF player)
|
protected ontopoly.conversion.SchemaTracker.PlayerType |
getPlayerType(java.util.Map<TopicIF,java.util.Map<TopicIF,java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.PlayerType>>> amap,
TopicIF atype,
TopicIF rtype,
TopicIF ptype)
|
int |
getPlayerTypeMaxCardinality(TopicIF atype,
TopicIF rtype,
TopicIF ptype)
|
int |
getPlayerTypeMinCardinality(TopicIF atype,
TopicIF rtype,
TopicIF ptype)
|
java.util.Collection<TopicIF> |
getPlayerTypes(TopicIF atype,
TopicIF rtype)
|
java.util.Collection<TopicIF> |
getRoleTypes(TopicIF atype)
|
int |
getSubjectIndicatorMaxCardinality(TopicIF ttype)
|
int |
getSubjectIndicatorMinCardinality(TopicIF ttype)
|
int |
getSubjectLocatorMaxCardinality(TopicIF ttype)
|
int |
getSubjectLocatorMinCardinality(TopicIF ttype)
|
java.util.Collection<TopicIF> |
getSuspectNameScopes()
|
protected ontopoly.conversion.SchemaTracker.TopicType |
getTopicType(TopicIF ttype)
|
int |
getTopicTypeInstances(TopicIF ttype)
|
java.util.Collection<TopicIF> |
getTopicTypes()
|
java.util.Collection<TopicIF> |
getUntypedPlayers()
|
java.util.Collection<TopicIF> |
getUntypedTopics()
|
boolean |
isSymmetricAssociationType(TopicIF atype)
|
void |
trackAssociation(AssociationIF assoc)
|
void |
trackAssociations(java.util.Collection<AssociationIF> assocs)
|
void |
trackTopic(TopicIF topic)
|
void |
trackTopics(java.util.Collection<TopicIF> topics)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_COLLECTION
protected static final java.util.Collection<TopicIF> NULL_COLLECTION
ttypes
protected java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.TopicType> ttypes
atypes
protected java.util.Map<TopicIF,java.util.Map<TopicIF,java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.PlayerType>>> atypes
non_symmetric_atypes
protected java.util.Collection<TopicIF> non_symmetric_atypes
utypedp
protected java.util.Collection<TopicIF> utypedp
utypedt
protected java.util.Collection<TopicIF> utypedt
nscopes
protected java.util.Map<TopicIF,java.util.Collection<TopicIF>> nscopes
SchemaTracker
public SchemaTracker()
trackTopics
public void trackTopics(java.util.Collection<TopicIF> topics)
trackTopic
public void trackTopic(TopicIF topic)
trackAssociations
public void trackAssociations(java.util.Collection<AssociationIF> assocs)
trackAssociation
public void trackAssociation(AssociationIF assoc)
getPlayerCardinality
protected int getPlayerCardinality(TopicIF atype,
TopicIF rtype,
TopicIF player)
getTopicTypes
public java.util.Collection<TopicIF> getTopicTypes()
getTopicTypeInstances
public int getTopicTypeInstances(TopicIF ttype)
getSubjectLocatorMinCardinality
public int getSubjectLocatorMinCardinality(TopicIF ttype)
getSubjectLocatorMaxCardinality
public int getSubjectLocatorMaxCardinality(TopicIF ttype)
getSubjectIndicatorMinCardinality
public int getSubjectIndicatorMinCardinality(TopicIF ttype)
getSubjectIndicatorMaxCardinality
public int getSubjectIndicatorMaxCardinality(TopicIF ttype)
getUntypedTopics
public java.util.Collection<TopicIF> getUntypedTopics()
getUntypedPlayers
public java.util.Collection<TopicIF> getUntypedPlayers()
getNameTypes
public java.util.Collection<TopicIF> getNameTypes(TopicIF ttype)
getNameTypeMinCardinality
public int getNameTypeMinCardinality(TopicIF ttype,
TopicIF ntype)
getNameTypeMaxCardinality
public int getNameTypeMaxCardinality(TopicIF ttype,
TopicIF ntype)
getExternalOccurrenceTypes
public java.util.Collection<TopicIF> getExternalOccurrenceTypes(TopicIF ttype)
getExternalOccurrenceTypeMinCardinality
public int getExternalOccurrenceTypeMinCardinality(TopicIF ttype,
TopicIF otype)
getExternalOccurrenceTypeMaxCardinality
public int getExternalOccurrenceTypeMaxCardinality(TopicIF ttype,
TopicIF otype)
getInternalOccurrenceTypes
public java.util.Collection<TopicIF> getInternalOccurrenceTypes(TopicIF ttype)
getInternalOccurrenceTypeMinCardinality
public int getInternalOccurrenceTypeMinCardinality(TopicIF ttype,
TopicIF otype)
getInternalOccurrenceTypeMaxCardinality
public int getInternalOccurrenceTypeMaxCardinality(TopicIF ttype,
TopicIF otype)
getAssociationTypes
public java.util.Collection<TopicIF> getAssociationTypes()
getRoleTypes
public java.util.Collection<TopicIF> getRoleTypes(TopicIF atype)
getPlayerTypes
public java.util.Collection<TopicIF> getPlayerTypes(TopicIF atype,
TopicIF rtype)
getPlayerTypeMinCardinality
public int getPlayerTypeMinCardinality(TopicIF atype,
TopicIF rtype,
TopicIF ptype)
getPlayerTypeMaxCardinality
public int getPlayerTypeMaxCardinality(TopicIF atype,
TopicIF rtype,
TopicIF ptype)
getOntologyTypes
public java.util.Collection<TopicIF> getOntologyTypes()
getSuspectNameScopes
public java.util.Collection<TopicIF> getSuspectNameScopes()
getNameScopeTopicTypes
public java.util.Collection<TopicIF> getNameScopeTopicTypes(TopicIF ntheme)
isSymmetricAssociationType
public boolean isSymmetricAssociationType(TopicIF atype)
getTopicType
protected ontopoly.conversion.SchemaTracker.TopicType getTopicType(TopicIF ttype)
createTopicType
protected ontopoly.conversion.SchemaTracker.TopicType createTopicType(TopicIF ttype)
getCharType
protected ontopoly.conversion.SchemaTracker.CharType getCharType(java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.CharType> cmap,
TopicIF ctype)
createCharType
protected ontopoly.conversion.SchemaTracker.CharType createCharType(java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.CharType> cmap,
TopicIF ctype)
getPlayerType
protected ontopoly.conversion.SchemaTracker.PlayerType getPlayerType(java.util.Map<TopicIF,java.util.Map<TopicIF,java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.PlayerType>>> amap,
TopicIF atype,
TopicIF rtype,
TopicIF ptype)
createPlayerType
protected ontopoly.conversion.SchemaTracker.PlayerType createPlayerType(java.util.Map<TopicIF,java.util.Map<TopicIF,java.util.Map<TopicIF,ontopoly.conversion.SchemaTracker.PlayerType>>> amap,
TopicIF atype,
TopicIF rtype,
TopicIF ptype)
Copyright © 2000-2012 Ontopia.