Skip to content

Commit

Permalink
rule R_CL_YOK working
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropaulofb committed Sep 27, 2023
1 parent 7363b33 commit 90e119c
Show file tree
Hide file tree
Showing 25 changed files with 1,491 additions and 956 deletions.
1,900 changes: 950 additions & 950 deletions poetry.lock

Large diffs are not rendered by default.

Binary file modified resources/OntoUML Rules.xlsx
Binary file not shown.
19 changes: 19 additions & 0 deletions validator/tests/test_files/R_CL_YOK_A.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@prefix : <https://example.org#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ontouml: <https://w3id.org/ontouml#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.org> a owl:Ontology ;
dct:conformsTo <https://w3id.org/ontouml>,
<https://w3id.org/ontouml/vocabulary/v1.1.0> ;
dct:created "2023-09-27"^^xsd:date ;
rdfs:comment "Generated by ontouml-json2graph v1.3.2" ;
rdfs:seeAlso "https://w3id.org/ontouml/json2graph"^^xsd:anyURI .

:P_ga61GEEWUWQQWy a ontouml:Class ;
ontouml:isAbstract false ;
ontouml:isDerived false ;
ontouml:isPowertype false ;
ontouml:name "TestClass" .
19 changes: 19 additions & 0 deletions validator/tests/test_files/R_CL_YOK_B.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@prefix : <https://example.org#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ontouml: <https://w3id.org/ontouml#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.org> a owl:Ontology ;
dct:conformsTo <https://w3id.org/ontouml>,
<https://w3id.org/ontouml/vocabulary/v1.1.0> ;
dct:created "2023-09-27"^^xsd:date ;
rdfs:comment "Generated by ontouml-json2graph v1.3.2" ;
rdfs:seeAlso "https://w3id.org/ontouml/json2graph"^^xsd:anyURI .

:P_ga61GEEWUWQQWy a ontouml:Class ;
ontouml:isAbstract true ;
ontouml:isDerived false ;
ontouml:isPowertype false ;
ontouml:name "TestClass" .
22 changes: 22 additions & 0 deletions validator/tests/test_files/R_CL_YOK_C.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@prefix : <https://example.org#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ontouml: <https://w3id.org/ontouml#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.org> a owl:Ontology ;
dct:conformsTo <https://w3id.org/ontouml>,
<https://w3id.org/ontouml/vocabulary/v1.1.0> ;
dct:created "2023-09-27"^^xsd:date ;
rdfs:comment "Generated by ontouml-json2graph v1.3.2" ;
rdfs:seeAlso "https://w3id.org/ontouml/json2graph"^^xsd:anyURI .

:P_ga61GEEWUWQQWy a ontouml:Class ;
ontouml:isAbstract false ;
ontouml:isDerived false ;
ontouml:isPowertype false ;
ontouml:name "TestClass" ;
ontouml:order "1"^^xsd:nonNegativeInteger ;
ontouml:restrictedTo ontouml:functionalComplexNature ;
ontouml:stereotype ontouml:kind .
22 changes: 22 additions & 0 deletions validator/tests/test_files/R_CL_YOK_D.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@prefix : <https://example.org#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ontouml: <https://w3id.org/ontouml#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.org> a owl:Ontology ;
dct:conformsTo <https://w3id.org/ontouml>,
<https://w3id.org/ontouml/vocabulary/v1.1.0> ;
dct:created "2023-09-27"^^xsd:date ;
rdfs:comment "Generated by ontouml-json2graph v1.3.2" ;
rdfs:seeAlso "https://w3id.org/ontouml/json2graph"^^xsd:anyURI .

:P_ga61GEEWUWQQWy a ontouml:Class ;
ontouml:isAbstract true ;
ontouml:isDerived false ;
ontouml:isPowertype false ;
ontouml:name "TestClass" ;
ontouml:order "1"^^xsd:nonNegativeInteger ;
ontouml:restrictedTo ontouml:functionalComplexNature ;
ontouml:stereotype ontouml:kind .
23 changes: 23 additions & 0 deletions validator/tests/test_files/R_CL_YOK_E.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@prefix : <https://example.org#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ontouml: <https://w3id.org/ontouml#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.org> a owl:Ontology ;
dct:conformsTo <https://w3id.org/ontouml>,
<https://w3id.org/ontouml/vocabulary/v1.1.0> ;
dct:created "2023-09-27"^^xsd:date ;
rdfs:comment "Generated by ontouml-json2graph v1.3.2" ;
rdfs:seeAlso "https://w3id.org/ontouml/json2graph"^^xsd:anyURI .

:P_ga61GEEWUWQQWy a ontouml:Class ;
ontouml:isAbstract false ;
ontouml:isDerived false ;
ontouml:isExtensional false ;
ontouml:isPowertype false ;
ontouml:name "TestClass" ;
ontouml:order "1"^^xsd:nonNegativeInteger ;
ontouml:restrictedTo ontouml:functionalComplexNature ;
ontouml:stereotype ontouml:category .
23 changes: 23 additions & 0 deletions validator/tests/test_files/R_CL_YOK_F.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@prefix : <https://example.org#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ontouml: <https://w3id.org/ontouml#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.org> a owl:Ontology ;
dct:conformsTo <https://w3id.org/ontouml>,
<https://w3id.org/ontouml/vocabulary/v1.1.0> ;
dct:created "2023-09-27"^^xsd:date ;
rdfs:comment "Generated by ontouml-json2graph v1.3.2" ;
rdfs:seeAlso "https://w3id.org/ontouml/json2graph"^^xsd:anyURI .

:P_ga61GEEWUWQQWy a ontouml:Class ;
ontouml:isAbstract true ;
ontouml:isDerived false ;
ontouml:isExtensional false ;
ontouml:isPowertype false ;
ontouml:name "TestClass" ;
ontouml:order "1"^^xsd:nonNegativeInteger ;
ontouml:restrictedTo ontouml:functionalComplexNature ;
ontouml:stereotype ontouml:category .
55 changes: 55 additions & 0 deletions validator/tests/test_files/base files/R_CL_YOK_A.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"id" : "eMvq61GEEWUWQQBO",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Project",
"model" : {
"id" : "eMvq61GEEWUWQQBO_root",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Package",
"propertyAssignments" : null,
"contents" : [ {
"id" : "P_ga61GEEWUWQQWy",
"name" : "TestClass",
"description" : null,
"type" : "Class",
"propertyAssignments" : null,
"stereotype" : null,
"isAbstract" : false,
"isDerived" : false,
"properties" : null,
"isExtensional" : null,
"isPowertype" : null,
"order" : null,
"literals" : null,
"restrictedTo" : null
} ]
},
"diagrams" : [ {
"id" : "ywga61GEEWUWQQWd",
"name" : "Class Diagram1",
"description" : null,
"type" : "Diagram",
"owner" : {
"id" : "eMvq61GEEWUWQQBO_root",
"type" : "Package"
},
"contents" : [ {
"id" : "P_ga61GEEWUWQQWx",
"type" : "ClassView",
"modelElement" : {
"id" : "P_ga61GEEWUWQQWy",
"type" : "Class"
},
"shape" : {
"id" : "P_ga61GEEWUWQQWx_shape",
"type" : "Rectangle",
"x" : 515,
"y" : 438,
"width" : 80,
"height" : 40
}
} ]
} ]
}
Binary file not shown.
55 changes: 55 additions & 0 deletions validator/tests/test_files/base files/R_CL_YOK_B.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"id" : "eMvq61GEEWUWQQBO",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Project",
"model" : {
"id" : "eMvq61GEEWUWQQBO_root",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Package",
"propertyAssignments" : null,
"contents" : [ {
"id" : "P_ga61GEEWUWQQWy",
"name" : "TestClass",
"description" : null,
"type" : "Class",
"propertyAssignments" : null,
"stereotype" : null,
"isAbstract" : true,
"isDerived" : false,
"properties" : null,
"isExtensional" : null,
"isPowertype" : null,
"order" : null,
"literals" : null,
"restrictedTo" : null
} ]
},
"diagrams" : [ {
"id" : "ywga61GEEWUWQQWd",
"name" : "Class Diagram1",
"description" : null,
"type" : "Diagram",
"owner" : {
"id" : "eMvq61GEEWUWQQBO_root",
"type" : "Package"
},
"contents" : [ {
"id" : "P_ga61GEEWUWQQWx",
"type" : "ClassView",
"modelElement" : {
"id" : "P_ga61GEEWUWQQWy",
"type" : "Class"
},
"shape" : {
"id" : "P_ga61GEEWUWQQWx_shape",
"type" : "Rectangle",
"x" : 515,
"y" : 438,
"width" : 80,
"height" : 40
}
} ]
} ]
}
Binary file not shown.
55 changes: 55 additions & 0 deletions validator/tests/test_files/base files/R_CL_YOK_C.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"id" : "eMvq61GEEWUWQQBO",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Project",
"model" : {
"id" : "eMvq61GEEWUWQQBO_root",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Package",
"propertyAssignments" : null,
"contents" : [ {
"id" : "P_ga61GEEWUWQQWy",
"name" : "TestClass",
"description" : null,
"type" : "Class",
"propertyAssignments" : null,
"stereotype" : "kind",
"isAbstract" : false,
"isDerived" : false,
"properties" : null,
"isExtensional" : null,
"isPowertype" : null,
"order" : null,
"literals" : null,
"restrictedTo" : [ "functional-complex" ]
} ]
},
"diagrams" : [ {
"id" : "ywga61GEEWUWQQWd",
"name" : "Class Diagram1",
"description" : null,
"type" : "Diagram",
"owner" : {
"id" : "eMvq61GEEWUWQQBO_root",
"type" : "Package"
},
"contents" : [ {
"id" : "P_ga61GEEWUWQQWx",
"type" : "ClassView",
"modelElement" : {
"id" : "P_ga61GEEWUWQQWy",
"type" : "Class"
},
"shape" : {
"id" : "P_ga61GEEWUWQQWx_shape",
"type" : "Rectangle",
"x" : 515,
"y" : 438,
"width" : 80,
"height" : 40
}
} ]
} ]
}
Binary file not shown.
55 changes: 55 additions & 0 deletions validator/tests/test_files/base files/R_CL_YOK_D.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"id" : "eMvq61GEEWUWQQBO",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Project",
"model" : {
"id" : "eMvq61GEEWUWQQBO_root",
"name" : "R_CL_YOK_A",
"description" : null,
"type" : "Package",
"propertyAssignments" : null,
"contents" : [ {
"id" : "P_ga61GEEWUWQQWy",
"name" : "TestClass",
"description" : null,
"type" : "Class",
"propertyAssignments" : null,
"stereotype" : "kind",
"isAbstract" : true,
"isDerived" : false,
"properties" : null,
"isExtensional" : null,
"isPowertype" : null,
"order" : null,
"literals" : null,
"restrictedTo" : [ "functional-complex" ]
} ]
},
"diagrams" : [ {
"id" : "ywga61GEEWUWQQWd",
"name" : "Class Diagram1",
"description" : null,
"type" : "Diagram",
"owner" : {
"id" : "eMvq61GEEWUWQQBO_root",
"type" : "Package"
},
"contents" : [ {
"id" : "P_ga61GEEWUWQQWx",
"type" : "ClassView",
"modelElement" : {
"id" : "P_ga61GEEWUWQQWy",
"type" : "Class"
},
"shape" : {
"id" : "P_ga61GEEWUWQQWx_shape",
"type" : "Rectangle",
"x" : 515,
"y" : 438,
"width" : 80,
"height" : 40
}
} ]
} ]
}
Binary file not shown.
Loading

0 comments on commit 90e119c

Please sign in to comment.