Skip to content

Commit

Permalink
fix #EP-112
Browse files Browse the repository at this point in the history
  • Loading branch information
lps committed Jun 8, 2020
1 parent 9b34445 commit 97f9768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
</x:call>
<x:expect label="there is a owl:Class" test="boolean(owl:Class) "/>
<x:expect label="there is a rdfs:subClassOf" test="boolean(owl:Class/rdfs:subClassOf)"/>
<x:expect label="there is 2 owl:Restriction" test="count(owl:Class/rdfs:subClassOf/owl:Restriction) = 2"/>
<x:expect label="there is a owl:onProperty" test="boolean(owl:Class/rdfs:subClassOf/owl:Restriction/owl:onProperty)"/>
<x:expect label="there is a owl:minCardinality" test="boolean(owl:Class/rdfs:subClassOf/owl:Restriction/owl:minCardinality)"/>
<x:expect label="there is a owl:minCardinality" test="boolean(owl:Class/rdfs:subClassOf/owl:Restriction/owl:maxCardinality)"/>
<x:expect label="there is a correct value for owl:maxCardinality" test="owl:Class/rdfs:subClassOf/owl:Restriction/owl:maxCardinality/text() = '3'"/>
<x:expect label="there is a correct value for owl:minCardinality" test="owl:Class/rdfs:subClassOf/owl:Restriction/owl:minCardinality/text() = '1'"/>
<x:expect label="there is 2 owl:Restriction" test="count(owl:Class/rdfs:subClassOf/owl:Class/owl:intersectionOf/owl:Restriction) = 2"/>
<x:expect label="there is a owl:onProperty" test="boolean(//owl:Restriction/owl:onProperty)"/>
<x:expect label="there is a owl:minCardinality" test="boolean(//owl:Restriction/owl:minCardinality)"/>
<x:expect label="there is a owl:minCardinality" test="boolean(//owl:Restriction/owl:maxCardinality)"/>
<x:expect label="there is a correct value for owl:maxCardinality" test="//owl:Restriction/owl:maxCardinality/text() = '3'"/>
<x:expect label="there is a correct value for owl:minCardinality" test="//owl:Restriction/owl:minCardinality/text() = '1'"/>
</x:scenario>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
<x:expect label="there is sh:select" test="boolean(sh:NodeShape/sh:sparql/sh:select)"/>
</x:scenario>

<x:scenario label="Scenario for attribute range shape for valid datatype">
<x:scenario label="Scenario for attribute range shape for a class type">
<x:call template="attributeRangeShape">
<x:param name="attribute" href="../../testData/ePO-CM-v2.0.1-2020-03-27_test.eap.xmi" select="/xmi:XMI/xmi:Extension[1]/elements[1]/element[290]/attributes[1]/attribute[6]"/>
</x:call>
<x:expect label="there is a sh:property" test="boolean(sh:property) "/>
<x:expect label="there is a sh:PropertyShape" test="boolean(sh:property/sh:PropertyShape)"/>
<x:expect label="there is a sh:name" test="boolean(sh:property/sh:PropertyShape/sh:name)"/>
<x:expect label="there is a sh:path" test="boolean(sh:property/sh:PropertyShape/sh:path)"/>
<x:expect label="there is a sh:datatype" test="boolean(sh:property/sh:PropertyShape/sh:datatype)"/>
<x:expect label="there is a sh:class" test="boolean(sh:property/sh:PropertyShape/sh:class)"/>
</x:scenario>

<x:scenario label="Scenario for attribute range shape for invalid datatype">
Expand Down

0 comments on commit 97f9768

Please sign in to comment.