Package ontopoly.conversion
Class UpgradeBase
- java.lang.Object
-
- ontopoly.conversion.UpgradeBase
-
- Direct Known Subclasses:
Upgrade_1_1
,Upgrade_1_2
,Upgrade_1_3
,Upgrade_1_4
,Upgrade_1_9
,Upgrade_2_0
,Upgrade_2_1
public abstract class UpgradeBase extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
UpgradeBase.RoleFieldDefinition
-
Field Summary
Fields Modifier and Type Field Description protected static LocatorIF
base_on
protected static LocatorIF
base_tech
protected static LocatorIF
base_xsd
protected static LocatorIF
base_xtm
protected DeclarationContextIF
dc
protected static LocatorIF
psibase
protected QueryProcessorIF
qp
protected static LocatorIF
teqbase
protected TopicMapIF
topicmap
protected TopicMap
topicMap
protected static LocatorIF
xsdbase
protected static LocatorIF
xtmbase
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static OccurrenceIF
addOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, String otype, String datatype, String value)
protected static void
assignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String mode)
protected static void
assignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String cview)
protected static void
assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, String ptypeId)
protected static void
assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, TopicIF ptype)
protected static void
assignFieldsView(TopicMapIF topicmap, LocatorIF base_on, TopicIF fieldDefinition, String view)
protected static void
assignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String pview, String cview)
protected static void
assignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String view, String mode)
protected static TopicIF
defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, String itypeId, String cardinality)
protected static TopicIF
defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality)
protected static TopicIF
defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, String otypeId, String datatype, String cardinality)
protected static TopicIF
defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, TopicIF otype, TopicIF datatype, TopicIF cardinality)
protected static UpgradeBase.RoleFieldDefinition
defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, String atypeId, String afieldName, String[] rtypeIds, String[] rfieldNames, String[][] ptypeIds)
protected static UpgradeBase.RoleFieldDefinition
defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, String afieldName, TopicIF[] rtypes, String[] rfieldNames, TopicIF[][] pptypes)
protected int
doUpdate(String update)
Runs a tolog update statement to modify the topic map.protected static String
getSymbolicId(TopicIF rf)
protected static TopicIF
getTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
protected abstract void
importLTM(StringBuilder sb)
protected static void
makePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, String topic)
protected static void
removeAssociations(String atype, String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc)
protected static void
removeObjects(TopicMapIF topicMap, DeclarationContextIF dc, String removalQuery)
protected static void
removeTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
protected static void
removeTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, String ref)
protected static void
renameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, String oldId, String newId)
protected static void
renameTopics(TopicMapIF topicmap, String oldName, String newName)
protected abstract void
transform()
protected static void
translateAssociations(String atype1, String[] rtypes1, String atype2, String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc)
void
upgrade()
-
-
-
Field Detail
-
psibase
protected static final LocatorIF psibase
-
xsdbase
protected static final LocatorIF xsdbase
-
xtmbase
protected static final LocatorIF xtmbase
-
teqbase
protected static final LocatorIF teqbase
-
base_on
protected static final LocatorIF base_on
-
base_tech
protected static final LocatorIF base_tech
-
base_xtm
protected static final LocatorIF base_xtm
-
base_xsd
protected static final LocatorIF base_xsd
-
topicMap
protected TopicMap topicMap
-
topicmap
protected TopicMapIF topicmap
-
dc
protected DeclarationContextIF dc
-
qp
protected QueryProcessorIF qp
-
-
Method Detail
-
upgrade
public void upgrade()
-
importLTM
protected abstract void importLTM(StringBuilder sb)
-
transform
protected abstract void transform() throws InvalidQueryException
- Throws:
InvalidQueryException
-
doUpdate
protected int doUpdate(String update) throws InvalidQueryException
Runs a tolog update statement to modify the topic map.- Throws:
InvalidQueryException
-
getTopic
protected static TopicIF getTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
-
translateAssociations
protected static void translateAssociations(String atype1, String[] rtypes1, String atype2, String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc) throws InvalidQueryException
- Throws:
InvalidQueryException
-
removeAssociations
protected static void removeAssociations(String atype, String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc) throws InvalidQueryException
- Throws:
InvalidQueryException
-
removeObjects
protected static void removeObjects(TopicMapIF topicMap, DeclarationContextIF dc, String removalQuery) throws InvalidQueryException
- Throws:
InvalidQueryException
-
assignField
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, String ptypeId)
-
assignField
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, TopicIF ptype)
-
defineRoleFields
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, String atypeId, String afieldName, String[] rtypeIds, String[] rfieldNames, String[][] ptypeIds)
-
defineRoleFields
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, String afieldName, TopicIF[] rtypes, String[] rfieldNames, TopicIF[][] pptypes)
-
removeTopicIfExist
protected static void removeTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, String ref)
-
removeTopic
protected static void removeTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
-
makePublicSystemTopic
protected static void makePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, String topic)
-
renameSubjectIdentifier
protected static void renameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, String oldId, String newId)
-
renameTopics
protected static void renameTopics(TopicMapIF topicmap, String oldName, String newName)
-
assignViewMode
protected static void assignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String view, String mode)
-
assignEmbedded
protected static void assignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String cview)
-
assignValueView
protected static void assignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String pview, String cview)
-
assignEditMode
protected static void assignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String mode)
-
assignFieldsView
protected static void assignFieldsView(TopicMapIF topicmap, LocatorIF base_on, TopicIF fieldDefinition, String view)
-
defineOccurrenceField
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, String otypeId, String datatype, String cardinality)
-
defineOccurrenceField
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, TopicIF otype, TopicIF datatype, TopicIF cardinality)
-
addOccurrence
protected static OccurrenceIF addOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, String otype, String datatype, String value)
-
defineIdentityField
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, String itypeId, String cardinality)
-
defineIdentityField
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality)
-
-