-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code migrated and adapted from ontouml-py
- Loading branch information
1 parent
a8624a9
commit 503971e
Showing
17 changed files
with
1,455 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
"""This module defines various tuples of OntoUML Class Stereotypes used in OntoUML modeling. | ||
Each tuple represents a specific grouping of stereotypes, providing a structured and | ||
semantically relevant means to access and utilize the stereotypes in OntoUML modeling. | ||
All tuples are provided sorted in alphabetical order. | ||
""" | ||
from ..ontouml import OntoUML | ||
|
||
ONTOUML_BASE_SORTAL_CLASS_STEREOTYPES = ( | ||
OntoUML.historicalRole, | ||
OntoUML.phase, | ||
OntoUML.role, | ||
OntoUML.subkind, | ||
) | ||
|
||
|
||
ONTOUML_ULTIMATE_SORTAL_CLASS_STEREOTYPES = ( | ||
OntoUML.collective, | ||
OntoUML.kind, | ||
OntoUML.mode, | ||
OntoUML.quality, | ||
OntoUML.quantity, | ||
OntoUML.relator, | ||
OntoUML.type, | ||
) | ||
|
||
|
||
ONTOUML_SORTAL_CLASS_STEREOTYPES = ( | ||
OntoUML.collective, | ||
OntoUML.historicalRole, | ||
OntoUML.kind, | ||
OntoUML.mode, | ||
OntoUML.phase, | ||
OntoUML.quality, | ||
OntoUML.quantity, | ||
OntoUML.relator, | ||
OntoUML.role, | ||
OntoUML.subkind, | ||
OntoUML.type, | ||
) | ||
|
||
|
||
ONTOUML_NON_SORTAL_CLASS_STEREOTYPES = ( | ||
OntoUML.category, | ||
OntoUML.historicalRoleMixin, | ||
OntoUML.mixin, | ||
OntoUML.phaseMixin, | ||
OntoUML.roleMixin, | ||
) | ||
|
||
|
||
ONTOUML_ABSTRACT_CLASS_STEREOTYPES = ( | ||
OntoUML.abstract, | ||
OntoUML.datatype, | ||
OntoUML.enumeration, | ||
) | ||
|
||
|
||
ONTOUML_RIGID_CLASS_STEREOTYPES = ( | ||
OntoUML.category, | ||
OntoUML.collective, | ||
OntoUML.kind, | ||
OntoUML.mode, | ||
OntoUML.quality, | ||
OntoUML.quantity, | ||
OntoUML.relator, | ||
OntoUML.subkind, | ||
) | ||
|
||
|
||
ONTOUML_ANTI_RIGID_CLASS_STEREOTYPES = ( | ||
OntoUML.historicalRole, | ||
OntoUML.historicalRoleMixin, | ||
OntoUML.phase, | ||
OntoUML.phaseMixin, | ||
OntoUML.role, | ||
OntoUML.roleMixin, | ||
) | ||
|
||
|
||
# The comma ensures that Python will understand the following as a tuple | ||
ONTOUML_SEMI_RIGID_CLASS_STEREOTYPES = (OntoUML.mixin,) | ||
|
||
|
||
ONTOUML_CLASS_STEREOTYPES = ( | ||
OntoUML.abstract, | ||
OntoUML.category, | ||
OntoUML.collective, | ||
OntoUML.datatype, | ||
OntoUML.enumeration, | ||
OntoUML.event, | ||
OntoUML.historicalRole, | ||
OntoUML.historicalRoleMixin, | ||
OntoUML.kind, | ||
OntoUML.mixin, | ||
OntoUML.mode, | ||
OntoUML.phase, | ||
OntoUML.phaseMixin, | ||
OntoUML.quality, | ||
OntoUML.quantity, | ||
OntoUML.relator, | ||
OntoUML.role, | ||
OntoUML.roleMixin, | ||
OntoUML.situation, | ||
OntoUML.subkind, | ||
OntoUML.type, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
"""This module defines various tuples of OntoUML Stereotypes related to relations, properties, | ||
aggregation kinds, ontological natures, and general elements, which are utilized in OntoUML modeling. | ||
Each tuple groups related stereotypes, offering a structured and semantically relevant method | ||
for utilizing OntoUML stereotypes in model construction and verification. | ||
All tuples are provided sorted in alphabetical order. | ||
""" | ||
from ..ontouml import OntoUML | ||
|
||
ONTOUML_RELATION_STEREOTYPES = ( | ||
OntoUML.bringsAbout, | ||
OntoUML.characterization, | ||
OntoUML.comparative, | ||
OntoUML.componentOf, | ||
OntoUML.creation, | ||
OntoUML.derivation, | ||
OntoUML.externalDependence, | ||
OntoUML.historicalDependence, | ||
OntoUML.instantiation, | ||
OntoUML.manifestation, | ||
OntoUML.material, | ||
OntoUML.mediation, | ||
OntoUML.memberOf, | ||
OntoUML.participation, | ||
OntoUML.participational, | ||
OntoUML.subCollectionOf, | ||
OntoUML.subQuantityOf, | ||
OntoUML.termination, | ||
OntoUML.triggers, | ||
) | ||
|
||
|
||
ONTOUML_PROPERTY_STEREOTYPES = ( | ||
OntoUML.begin, | ||
OntoUML.end, | ||
) | ||
|
||
|
||
ONTOUML_AGGREGATION_KINDS = ( | ||
OntoUML.composite, | ||
OntoUML.none, | ||
OntoUML.shared, | ||
) | ||
|
||
|
||
ONTOUML_ONTOLOGICAL_NATURES = ( | ||
OntoUML.abstractNature, | ||
OntoUML.collectiveNature, | ||
OntoUML.eventNature, | ||
OntoUML.extrinsicModeNature, | ||
OntoUML.functionalComplexNature, | ||
OntoUML.intrinsicModeNature, | ||
OntoUML.qualityNature, | ||
OntoUML.quantityNature, | ||
OntoUML.relatorNature, | ||
OntoUML.situationNature, | ||
OntoUML.typeNature, | ||
) | ||
|
||
|
||
ONTOUML_ABSTRACT_ELEMENTS = ( | ||
OntoUML.Cardinality, | ||
OntoUML.Class, | ||
OntoUML.Diagram, | ||
OntoUML.Generalization, | ||
OntoUML.GeneralizationSet, | ||
OntoUML.Literal, | ||
OntoUML.Note, | ||
OntoUML.Package, | ||
OntoUML.Project, | ||
OntoUML.Property, | ||
OntoUML.Relation, | ||
) | ||
|
||
|
||
ONTOUML_CONCRETE_ELEMENTS = ( | ||
OntoUML.ClassView, | ||
OntoUML.GeneralizationSetView, | ||
OntoUML.GeneralizationView, | ||
OntoUML.NoteView, | ||
OntoUML.PackageView, | ||
OntoUML.Path, | ||
OntoUML.Point, | ||
OntoUML.Rectangle, | ||
OntoUML.RelationView, | ||
OntoUML.Text, | ||
) |
Oops, something went wrong.