Skip to content

Commit

Permalink
Update existing tests that depend on the results of the updated funct…
Browse files Browse the repository at this point in the history
…ion and restore extraction of a local name
  • Loading branch information
gkostkowski committed Oct 7, 2024
1 parent 097d392 commit 624d26b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/common/utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@
</xd:doc>
<xsl:function name="f:lexicalQNameToWords" as="xs:string">
<xsl:param name="lexicalqName" as="xs:string"/>
<xsl:variable name="localName"
select="fn:local-name-from-QName(f:buildQNameFromLexicalQName($lexicalqName))"/>
<xsl:sequence
select="fn:string-join(f:getSegmentsFromCamelCaseText($lexicalqName), ' ')" />
select="fn:string-join(f:getSegmentsFromCamelCaseText($localName), ' ')" />
</xsl:function>

<xd:doc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@

<x:expect label="has only one owl:ObjectProperty defined" test="count(/owl:ObjectProperty) = 1"/>
<x:expect label="is owl:ObjectProperty defined" test="/owl:ObjectProperty/@rdf:about=$testedPropUri"/>
<x:expect label="correct skos:prefLabel" test="/rdf:Description[@rdf:about = $testedPropUri]/skos:prefLabel[@xml:lang='en']/text() = 'Comprises lot award outcome'"/>
<x:expect label="correct skos:prefLabel" test="/rdf:Description[@rdf:about = $testedPropUri]/skos:prefLabel[@xml:lang='en']/text() = 'comprises Lot Award Outcome'"/>
<x:expect label="has skos:definition" test="boolean(/rdf:Description[@rdf:about=$testedPropUri]/skos:definition[@xml:lang='en'])"/>
<x:expect label="is linked to the ontology" test="/rdf:Description[@rdf:about = $testedPropUri]/rdfs:isDefinedBy/@rdf:resource = 'http://data.europa.eu/a4g/ontology#core'"/>
</x:scenario>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<x:expect label="there is rdf:Description"
test="boolean(/rdf:Description[@rdf:about='http:/fake.uri#something'])"
/>
<x:expect label="correct label" test="rdf:Description/skos:prefLabel/text() = 'Dynamic procedure'"/>
<x:expect label="correct label" test="rdf:Description/skos:prefLabel/text() = 'Dynamic Procedure'"/>


</x:scenario>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<x:variable name="testedEnum" as="xs:string" select="'http://www.w3.org/2006/time#TemporalUnit'"/>

<x:expect label="there is a skos:ConceptScheme" test="/skos:ConceptScheme/@rdf:about = $testedEnum"/>
<x:expect label="there is a skos:prefLabel" test="/rdf:Description[@rdf:about = $testedEnum]/skos:prefLabel[@xml:lang='en']/text() = 'Temporal unit'"/>
<x:expect label="there is a skos:prefLabel" test="/rdf:Description[@rdf:about = $testedEnum]/skos:prefLabel[@xml:lang='en']/text() = 'Temporal Unit'"/>
</x:scenario>

</x:description>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<x:expect label="there is rdf:Description"
test="boolean(/rdf:Description[@rdf:about='http:/fake.uri#something'])"
/>
<x:expect label="correct label" test="rdf:Description/rdfs:label/text() = 'Dynamic procedure'"/>
<x:expect label="correct label" test="rdf:Description/rdfs:label/text() = 'Dynamic Procedure'"/>


</x:scenario>
Expand All @@ -40,7 +40,7 @@
<x:expect label="there is rdf:Description"
test="boolean(/rdf:Description[@rdf:about='http:/fake.uri#something'])"
/>
<x:expect label="correct label" test="rdf:Description/sh:name/text() = 'Dynamic procedure'"/>
<x:expect label="correct label" test="rdf:Description/sh:name/text() = 'Dynamic Procedure'"/>


</x:scenario>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
as="xs:string"
select="'http://data.europa.eu/a4g/data-shape#epo-FrameworkAgreementTerm-epo-hasMaximumParticipantsNumber'"/>
<x:expect label="correct node-property shapes link" test="boolean(/rdf:Description[@rdf:about='http://data.europa.eu/a4g/data-shape#epo-FrameworkAgreementTerm']/sh:property[@rdf:resource=$testedPropShapeUri])"/>
<x:expect label="property shape: correct name" test="/rdf:Description[@rdf:about=$testedPropShapeUri]/sh:name/text() = 'Has maximum participants number'"/>
<x:expect label="property shape: correct name" test="/rdf:Description[@rdf:about=$testedPropShapeUri]/sh:name/text() = 'has Maximum Participants Number'"/>
<x:expect label="property shape: correct datatype" test="boolean(/rdf:Description[@rdf:about=$testedPropShapeUri]/sh:datatype[@rdf:resource='http://www.w3.org/2001/XMLSchema#integer'])"/>
<x:expect label="property shape: correct maxCount" test="/rdf:Description[@rdf:about=$testedPropShapeUri]/sh:maxCount = 1"/>
<x:expect label="property shape: correct description" test="boolean(/rdf:Description[@rdf:about=$testedPropShapeUri]/sh:description)"/>
Expand Down

0 comments on commit 624d26b

Please sign in to comment.