Skip to content

Commit

Permalink
shacl testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos0000 committed Jul 2, 2024
1 parent f728296 commit ab716ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shacl-shape-lib/connectors-shacl-shape.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
</xd:doc>

<xsl:template match="connector[./properties/@ea_type = 'Association']">
<!--and f:checkIfConnectorTargetAndSourceElementsExists(.)-->
<xsl:if
test="not(./source/model/@type = 'ProxyConnector' or ./target/model/@type = 'ProxyConnector') and f:checkIfConnectorTargetAndSourceElementsExists(.)">
test="not(./source/model/@type = 'ProxyConnector' or ./target/model/@type = 'ProxyConnector')">
<xsl:call-template name="connectorRange">
<xsl:with-param name="connector" select="."/>
</xsl:call-template>
Expand All @@ -55,8 +56,9 @@

<xsl:template match="connector[./properties/@ea_type = 'Dependency']">
<!-- <xsl:if test="./source/model/@type = 'Class' and ./target/model/@type = 'Class'">-->
<!--and f:checkIfConnectorTargetAndSourceElementsExists(.)-->
<xsl:if
test="not(./source/model/@type = 'ProxyConnector' or ./target/model/@type = ('ProxyConnector', 'Object')) and f:checkIfConnectorTargetAndSourceElementsExists(.)">
test="not(./source/model/@type = 'ProxyConnector' or ./target/model/@type = ('ProxyConnector', 'Object'))">
<xsl:choose>
<xsl:when
test="not(./source/model/@type = 'Class' and ./target/model/@type = 'Enumeration')">
Expand Down
2 changes: 2 additions & 0 deletions test/ePO-default-config/namespaces.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<prefix name="epo-ord" value="http://data.europa.eu/a4g/ontology#"/>
<prefix name="epo-not" value="http://data.europa.eu/a4g/ontology#"/>
<prefix name="epo-ful" value="http://data.europa.eu/a4g/ontology#"/>
<prefix name="epo-acc" value="http://data.europa.eu/a4g/ontology#"/>
<prefix name="epo-sub" value="http://data.europa.eu/a4g/ontology#"/>

<prefix name="nuts" value="http://data.europa.eu/nuts/"/>
<prefix name="reg2015" value="http://data.europa.eu/a4g/extension/ontology#"/>
Expand Down

0 comments on commit ab716ad

Please sign in to comment.