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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final LocatorIFprotected static final LocatorIFprotected static final LocatorIFprotected static final LocatorIFprotected DeclarationContextIFprotected static final LocatorIFprotected QueryProcessorIFprotected static final LocatorIFprotected TopicMapIFprotected TopicMapprotected static final LocatorIFprotected static final LocatorIF -
Method Summary
Modifier and TypeMethodDescriptionprotected static OccurrenceIFaddOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, String otype, String datatype, String value) protected static voidassignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String mode) protected static voidassignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String cview) protected static voidassignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, String ptypeId) protected static voidassignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, TopicIF ptype) protected static voidassignFieldsView(TopicMapIF topicmap, LocatorIF base_on, TopicIF fieldDefinition, String view) protected static voidassignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String pview, String cview) protected static voidassignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String view, String mode) protected static TopicIFdefineIdentityField(TopicMapIF topicmap, LocatorIF base_on, String itypeId, String cardinality) protected static TopicIFdefineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality) protected static TopicIFdefineOccurrenceField(TopicMap topicMap, LocatorIF base_on, String otypeId, String datatype, String cardinality) protected static TopicIFdefineOccurrenceField(TopicMap topicMap, LocatorIF base_on, TopicIF otype, TopicIF datatype, TopicIF cardinality) protected static UpgradeBase.RoleFieldDefinitiondefineRoleFields(TopicMapIF topicmap, LocatorIF base_on, String atypeId, String afieldName, String[] rtypeIds, String[] rfieldNames, String[][] ptypeIds) protected static UpgradeBase.RoleFieldDefinitiondefineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, String afieldName, TopicIF[] rtypes, String[] rfieldNames, TopicIF[][] pptypes) protected intRuns a tolog update statement to modify the topic map.protected static StringgetSymbolicId(TopicIF rf) protected static TopicIFgetTopic(TopicMapIF topicmap, LocatorIF base_on, String ref) protected abstract voidprotected static voidmakePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, String topic) protected static voidremoveAssociations(String atype, String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc) protected static voidremoveObjects(TopicMapIF topicMap, DeclarationContextIF dc, String removalQuery) protected static voidremoveTopic(TopicMapIF topicmap, LocatorIF base_on, String ref) protected static voidremoveTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, String ref) protected static voidrenameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, String oldId, String newId) protected static voidrenameTopics(TopicMapIF topicmap, String oldName, String newName) protected abstract voidprotected static voidtranslateAssociations(String atype1, String[] rtypes1, String atype2, String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc) voidupgrade()
-
Field Details
-
psibase
-
xsdbase
-
xtmbase
-
teqbase
-
base_on
-
base_tech
-
base_xtm
-
base_xsd
-
topicMap
-
topicmap
-
dc
-
qp
-
-
Method Details
-
upgrade
public void upgrade() -
importLTM
-
transform
- Throws:
InvalidQueryException
-
doUpdate
Runs a tolog update statement to modify the topic map.- Throws:
InvalidQueryException
-
getTopic
-
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
-
removeTopic
-
getSymbolicId
-
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
-
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
-
defineOccurrenceField
-
addOccurrence
-
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)
-