From aedbd189cbacd1881e7bf2d777191f9ccc6a3150 Mon Sep 17 00:00:00 2001 From: Dragos0000 Date: Thu, 13 Jul 2023 15:10:14 +0100 Subject: [PATCH 1/2] added Realisation transformation rule and config param for conventions report --- src/common/selectors.xsl | 1 + src/html-conventions-lib/fragments/footer.xsl | 2 +- .../fragments/introduction.xsl | 17 ++++---- src/html-model-glossary/fragments/footer.xsl | 2 +- src/owl-core-lib/connectors-owl-core.xsl | 40 ++++++++++++++++++- .../connectors-reasoning-layer.xsl | 5 +++ .../connectors-shacl-shape.xsl | 5 +++ test/ePO-default-config/config-parameters.xsl | 8 ++++ .../test-connectors-owl-core.xspec | 11 +++++ 9 files changed, 79 insertions(+), 12 deletions(-) diff --git a/src/common/selectors.xsl b/src/common/selectors.xsl index b9908e8b..c4535365 100644 --- a/src/common/selectors.xsl +++ b/src/common/selectors.xsl @@ -50,6 +50,7 @@ + diff --git a/src/html-conventions-lib/fragments/footer.xsl b/src/html-conventions-lib/fragments/footer.xsl index c31b170c..b121e503 100644 --- a/src/html-conventions-lib/fragments/footer.xsl +++ b/src/html-conventions-lib/fragments/footer.xsl @@ -24,7 +24,7 @@ eProcurement Ontology initiative.

The template of this report is based on the PubCSS library.

-

© Publications Office of the European Union, 2020

+

©

diff --git a/src/html-conventions-lib/fragments/introduction.xsl b/src/html-conventions-lib/fragments/introduction.xsl index eb31065c..bd03bd22 100644 --- a/src/html-conventions-lib/fragments/introduction.xsl +++ b/src/html-conventions-lib/fragments/introduction.xsl @@ -23,25 +23,24 @@ '[D01]/[M01]/[Y0001]')"/> ] -
-
Publications Office of the European Union
-
Luxembourg
- +
+
+
- + - The static abstract of teh report. This should act the introduction + The static abstract of the report. This should act the introduction

Abstract

-

eProcurement UML model needs to conform to a set of UML conventions described +

UML model needs to conform to a set of UML conventions described elsewhere. A conformance checking script was developed to execute tests to the UML model and generate errors or warnings when encountered.

@@ -49,9 +48,9 @@ comprises the UML conformance violations.

The organisation of this document is based on major types of UML elements and - connectors that are employed in the eProcurement conceptual model. They are as + connectors that are employed in the conceptual model. They are as follows: - Classes, Enumerations, Datatypes, Packages, Associations, Dependencies and + Classes, Enumerations, Datatypes, Packages, Objects, Associations, Dependencies, Realisations and Generalisations. Each major section lists model items that need correction of errors or consideration of warnings.

diff --git a/src/html-model-glossary/fragments/footer.xsl b/src/html-model-glossary/fragments/footer.xsl index bb6c75dc..542df9eb 100644 --- a/src/html-model-glossary/fragments/footer.xsl +++ b/src/html-model-glossary/fragments/footer.xsl @@ -24,7 +24,7 @@ eProcurement Ontology initiative.

The template of this report is based on the PubCSS library.

-

© Publications Office of the European Union, 2022

+

©

diff --git a/src/owl-core-lib/connectors-owl-core.xsl b/src/owl-core-lib/connectors-owl-core.xsl index 68f2f4f6..fceb970b 100644 --- a/src/owl-core-lib/connectors-owl-core.xsl +++ b/src/owl-core-lib/connectors-owl-core.xsl @@ -38,7 +38,16 @@ - + + This will apply transformation rules to Realisations + + + + + + + + @@ -213,5 +222,34 @@ + + + Rule R.19. - Declare an individual with a specified class as its type, + for a UML Realization connector between a UML Object and a UML Class. + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/reasoning-layer-lib/connectors-reasoning-layer.xsl b/src/reasoning-layer-lib/connectors-reasoning-layer.xsl index 70561fae..c31b30bc 100644 --- a/src/reasoning-layer-lib/connectors-reasoning-layer.xsl +++ b/src/reasoning-layer-lib/connectors-reasoning-layer.xsl @@ -621,6 +621,11 @@ + + + This will override the common selector when applying templates + + diff --git a/src/shacl-shape-lib/connectors-shacl-shape.xsl b/src/shacl-shape-lib/connectors-shacl-shape.xsl index b6d41ca9..2b03a076 100644 --- a/src/shacl-shape-lib/connectors-shacl-shape.xsl +++ b/src/shacl-shape-lib/connectors-shacl-shape.xsl @@ -519,6 +519,11 @@ + + + This will override the common selector when applying templates + + diff --git a/test/ePO-default-config/config-parameters.xsl b/test/ePO-default-config/config-parameters.xsl index c8a2df77..99f943d6 100644 --- a/test/ePO-default-config/config-parameters.xsl +++ b/test/ePO-default-config/config-parameters.xsl @@ -80,6 +80,14 @@ + + + + + + + + diff --git a/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec b/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec index 13d072d8..7d2dc16b 100644 --- a/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec +++ b/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec @@ -121,5 +121,16 @@ + + + + + + + + + + From 47389b3a0410a836f041d181881a28dd08e89daf Mon Sep 17 00:00:00 2001 From: Dragos0000 Date: Thu, 13 Jul 2023 15:20:59 +0100 Subject: [PATCH 2/2] fixed Realisation rule test --- test/testData/ePO_core_with_tags.xml | 2 +- test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testData/ePO_core_with_tags.xml b/test/testData/ePO_core_with_tags.xml index 3ea984b7..bc7498a8 100644 --- a/test/testData/ePO_core_with_tags.xml +++ b/test/testData/ePO_core_with_tags.xml @@ -37210,7 +37210,7 @@ - + diff --git a/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec b/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec index 7d2dc16b..049fb703 100644 --- a/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec +++ b/test/unitTests/test-owl-core-lib/test-connectors-owl-core.xspec @@ -126,7 +126,7 @@ - +