OntoUML / ontouml-js

Javascript library for manipulating OntoUML models.
Apache License 2.0
11 stars 8 forks source link

Ease schema requirements and constraints #65

Closed claudenirmf closed 3 years ago

claudenirmf commented 3 years ago

Updated required fields

ClassView

From To
type type
id id
name -
description -
modelElement modelElement
shape -

Class

From To
type type
id id
name -
description -
propertyAssignments -
stereotype -
isAbstract -
isDerived -
properties -
literals -
restrictedTo -
isExtensional -
isPowertype -
order -

Reference

From To
type type
id id

Diagram

From To
type type
id id
name -
description -
contents -
owner -

GeneralizationSetView

From To
type type
id id
name -
description -
modelElement modelElement
shape -

GeneralizationSet

From To
type type
id id
name -
description -
propertyAssignments -
isDisjoint -
isComplete -
categorizer -
generalizations -

GeneralizationView

From To
type type
id id
name -
description -
modelElement modelElement
source source
target target
shape -

Generalization

From To
type type
id id
name -
description -
propertyAssignments -
general general
specific specific

Literal

From To
type type
id id
name -
description -
propertyAssignments -

PackageView

From To
type type
id id
name -
description -
modelElement modelElement
shape -

Package

From To
type type
id id
name -
description -
propertyAssignments -
contents -

"Point"

From To
x x
y y

Path

From To
type type
id id
name -
description -
points -

Project

From To
type type
id id
name -
description -
model -
diagrams -

Property

From To
type type
id id
name -
description -
cardinality -
stereotype -
propertyAssignments -
propertyType -
subsettedProperties -
redefinedProperties -
aggregationKind -
isDerived -
isOrdered -
isReadOnly -

Rectangle

From To
type type
id id
name -
description -
x -
y -
width -
height -

RelationView

From To
type type
id id
name -
description -
modelElement modelElement
source source
target target
shape -

Relation

From To
type type
id id
name -
description -
stereotype -
propertyAssignments -
isAbstract -
isDerived -
properties -

Text

From To
type type
id id
name -
description -
x -
y -
width -
height -
value -

There is a couple of choices that feel a bit inconsistent for me:

claudenirmf commented 3 years ago

As agreed offline, all schemas now have additionalProperties: true in order to allow easier incremental evolution of the project and enable some compatibility between releases. Additionally, all references can be set to null and checking the presence of references will be part of the syntactical verification.

claudenirmf commented 3 years ago

Resolves #64