Skip to content

Commit

Permalink
code migrated and adapted from ontouml-py
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropaulofb committed Oct 14, 2023
1 parent a8624a9 commit 503971e
Show file tree
Hide file tree
Showing 17 changed files with 1,455 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/
Empty file.
Empty file.
108 changes: 108 additions & 0 deletions ontouml_vocabulary_lib/constants/constants_classes.py
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,
)
88 changes: 88 additions & 0 deletions ontouml_vocabulary_lib/constants/constants_misc.py
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,
)
Loading

0 comments on commit 503971e

Please sign in to comment.