Skip to content

Commit

Permalink
added extra configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos0000 committed Sep 6, 2024
1 parent 362f916 commit d48b1be
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 99 deletions.
102 changes: 69 additions & 33 deletions implementation/demo_ontology/model2owl-config/config-parameters.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<xsl:variable name="base-restriction-uri" select="$base-ontology-uri"/>
<!-- Shapes Module URI-->
<xsl:variable name="shapeArtefactURI"
select="fn:concat($base-shape-uri, $defaultDelimiter, $moduleReference, '-shape')"/>
select="fn:concat($base-shape-uri,$defaultDelimiter, $moduleReference, '-shape')"/>
<!-- Restrictions Module URI-->
<xsl:variable name="restrictionsArtefactURI"
select="fn:concat($base-restriction-uri, $defaultDelimiter, $moduleReference, '-restriction')"/>
Expand All @@ -64,7 +64,6 @@
<xsl:variable name="stereotypeValidOnDatatypes" select="()"/>
<xsl:variable name="stereotypeValidOnEnumerations" select="()"/>
<xsl:variable name="stereotypeValidOnPackages" select="()"/>

<xsl:variable name="abstractClassesStereotypes" select="('Abstract', 'abstract class', 'abstract')"/>

<!-- This variable controls whether the enumeration items are transformed into skos concepts or ignored-->
Expand All @@ -75,66 +74,103 @@

<!--Allowed characters for a normalized string-->
<xsl:variable name="allowedStrings" select="'^[\w\d-_:]+$'"/>

<!-- Generate reused classes, attributes and connectors-->
<xsl:variable name="generateReusedConcepts" select="fn:true()"/>


<xsl:variable name="reference-to-external-classes-in-glossary" select="fn:true()"/>

<xsl:variable name="internalModelPrefixesList" select="('epo', 'epo-not', 'epo-ord', 'epo-cat', 'epo-con', 'epo-ful')"/>
<!-- This set of variables controls the generation of reused concepts within artifacts. -->
<xsl:variable name="generateReusedConceptsSHACL" select="fn:true()"/>
<xsl:variable name="generateReusedConceptsOWLcore" select="fn:true()"/>
<xsl:variable name="generateReusedConceptsOWLrestrictions" select="fn:true()"/>
<xsl:variable name="generateReusedConceptsGlossary" select="fn:true()"/>

<!-- This variable control if Object and Realisation are generated -->
<xsl:variable name="generateObjectsAndRealisations" select="fn:false()"/>

<!-- Set of variables for convention report-->
<xsl:variable name="conventionReportCopyrightText" select="'Publications Office of the European Union, 2023'"/>
<xsl:variable name="conventionReportAuthor" select="'Publications Office of the European Union'"/>
<xsl:variable name="conventionReportAuthorLocation" select="'Luxembourg'"/>
<xsl:variable name="conventionReportAuthorWebsite" select="'https://op.europa.eu'"/>
<xsl:variable name="conventionReportUMLModelName" select="'eProcurement'"/>

<!-- _______________________________________________________________________ -->
<!-- METADATA SECTION -->
<!-- _______________________________________________________________________ -->
<!-- This section contains the variables used to build the ontology metadata-->
<xsl:variable name="moduleReference" select="'core'"/>
<!-- rdfs:label -->
<xsl:variable name="ontologyLabelCore" select="'eProcurement Ontology Ordering - core'"/>
<xsl:variable name="ontologyLabelRestrictions" select="'eProcurement Ontology Ordering - core restrictions'"/>
<xsl:variable name="ontologyLabelShapes" select="'eProcurement Ontology Ordering - core shapes'"/>
<!-- dct:title -->
<xsl:variable name="ontologyTitleCore" select="'eProcurement Ontology - core'"/>
<xsl:variable name="ontologyTitleRestrictions" select="'eProcurement Ontology - core restrictions'"/>
<xsl:variable name="ontologyTitleShapes" select="'eProcurement Ontology - core shapes'"/>
<!-- dct:title-->
<xsl:variable name="ontologyTitleCore" select="'ePO Core core'"/>
<xsl:variable name="ontologyTitleRestrictions" select="'ePO Core restrictions'"/>
<xsl:variable name="ontologyTitleShapes" select="'ePO Core shapes'"/>
<!-- dct:description-->
<xsl:variable name="ontologyDescriptionCore"
select="'The eProcurement Ontology core describes the concepts and properties representing the European Public Procurement domain. The provision of these semantics offers the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency. The ontology restrictions are published in a separate artefact.'"/>
select="
'This artefact provides the definitions for the eProcurement Ontology Core.
This artefact excludes the restrictions.
The eProcurement Ontology describes objects and concepts, with definitions, attributes and relationships which are present within the European public procurement domain.
The provision of these concepts provides the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency.'"/>
<xsl:variable name="ontologyLabelCore"
select="
'This artefact provides the definitions for the eProcurement Ontology Core.
This artefact excludes the restrictions.
The eProcurement Ontology describes objects and concepts, with definitions, attributes and relationships which are present within the European public procurement domain.
The provision of these concepts provides the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency.'"/>

<xsl:variable name="ontologyDescriptionRestrictions"
select="'The eProcurement Ontology core restrictions provides the restrictions and the inference-related specifications on the concepts and properties in the eProcurement Ontology core.'"/>
select="
'This artefact provides the restrictions and inference-related specifications for the eProcurement Ontology Core.
This artefact excludes the definitions of concepts.
The eProcurement Ontology describes objects and concepts, with definitions, attributes and relationships which are present within the European public procurement domain.
The provision of these concepts provides the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency.'"/>
<xsl:variable name="ontologyLabelRestrictions"
select="
'This artefact provides the restrictions and inference-related specifications for the eProcurement Ontology Core.
This artefact excludes the definitions of concepts.
The eProcurement Ontology describes objects and concepts, with definitions, attributes and relationships which are present within the European public procurement domain.
The provision of these concepts provides the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency.'"/>

<xsl:variable name="ontologyDescriptionShapes"
select="'The eProcurement Ontology core shapes provides the generic datashape specifications for the eProcurement Ontology core.'"/>
select="
'This artefact provides the generic datashape specifications for the eProcurement Ontology Core.
The eProcurement Ontology describes objects and concepts, with definitions, attributes and relationships which are present within the European public procurement domain.
The provision of these concepts provides the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency.'"/>

<xsl:variable name="ontologyLabelShapes"
select="
'This artefact provides the generic datashape specifications for the eProcurement Ontology Core.
The eProcurement Ontology describes objects and concepts, with definitions, attributes and relationships which are present within the European public procurement domain.
The provision of these concepts provides the basis for a common understanding of the domain for all stakeholders ensuring the quality of data exchange and transparency.'"/>

<!-- rdfs:seeAlso -->
<xsl:variable name="seeAlsoResources"
select="
('https://github.com/OP-TED/ePO/releases',
'https://joinup.ec.europa.eu/collection/eprocurement/solution/eprocurement-ontology/about',
'https://op.europa.eu/en/web/eu-vocabularies/e-procurement',
'https://docs.ted.europa.eu/home/index.html')"/>
('https://github.com/eprocurementontology/eprocurementontology',
'https://joinup.ec.europa.eu/collection/eprocurement/solution/eprocurement-ontology/about', 'https://op.europa.eu/en/web/eu-vocabularies/e-procurement',
'https://docs.ted.europa.eu/EPO/latest/index.html')"/>
<!-- dct:issued-->
<xsl:variable name="issuedDate" select="format-date(current-date(), '[Y0001]-[M01]-[D01]')"/>
<!-- dct:created-->
<xsl:variable name="createdDate" select="format-date(current-date(), '[Y0001]-[M01]-[D01]')"/>
<!-- owl:incompatibleWith -->
<xsl:variable name="incompatibleWith" select="'3.1.0'"/>
<xsl:variable name="incompatibleWith" select="'2.1.0'"/>
<!-- owl:versionInfo -->
<xsl:variable name="versionInfo" select="'4.0.0'"/>
<xsl:variable name="versionInfo" select="'3.1.0'"/>
<!-- bibo:status-->
<xsl:variable name="ontologyStatus" select="'Semantic Specification Release'"/>
<xsl:variable name="ontologyStatus" select="'Semantic Specification Realease'"/>
<!-- owl:priorVersion -->
<xsl:variable name="priorVersion" select="'3.1.0'"/>
<xsl:variable name="priorVersion" select="'3.0.1'"/>
<!-- vann:preferredNamespaceUri -->
<xsl:variable name="preferredNamespaceUri" select="'http://data.europa.eu/a4g/ontology#'"/>
<!-- vann:preferredNamespacePrefix -->
<xsl:variable name="preferredNamespacePrefix" select="'epo'"/>
<!-- dct:license-->
<xsl:variable name="licenseLiteral" select="'© European Union, 2014. Unless otherwise noted, the reuse of the Ontology is authorised under the European Union Public Licence v1.2 (https://eupl.eu/).'"/>
<!-- dct:created-->
<xsl:variable name="createdDate" select="'2021-06-01'"/>


<xsl:variable name="licenseLiteral" select="'The Commission’s reuse policy is implemented by Commission Decision2011/833/EU of 12 December 2011 on the reuse of Commission documents
(OJ L 330,14.12.2011, p. 39 – https://eur-lex.europa.eu/eli/dec/2011/833/oj). Unlessotherwise noted, the reuse of this document is authorised under the
CreativeCommons Attribution 4.0 International (CC BY 4.0) licence (https://creativecommons.org/licenses/by/4.0/).This means that reuse is allowed, provided
that appropriate credit is given and any changes are indicated.'"/>

<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>



</xsl:stylesheet>
Loading

0 comments on commit d48b1be

Please sign in to comment.