Skip to content

Commit

Permalink
updates for documentation format in transformation scripts and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos0000 committed Oct 31, 2023
1 parent 208a19c commit 7f26a14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/shacl-shape-lib/connectors-shacl-shape.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@
<rdf:Description
rdf:about="{f:buildPropertyShapeURI($sourceClassName,$targetRole)}">
<sh:sparql rdf:parseType="Resource">
<sh:select> SELECT ?this ?that WHERE { ?this &lt;<xsl:value-of
<sh:select>SELECT ?this ?that WHERE { ?this &lt;<xsl:value-of
select="$targetRoleURI"/>&gt; ?that . ?that &lt;<xsl:value-of
select="$targetRoleURI"/>&gt; ?this .} </sh:select>
select="$targetRoleURI"/>&gt; ?this .}</sh:select>
</sh:sparql>
</rdf:Description>

Expand All @@ -501,19 +501,19 @@
<rdf:Description
rdf:about="{f:buildPropertyShapeURI($sourceClassName,$targetRole)}">
<sh:sparql rdf:parseType="Resource">
<sh:select> SELECT ?this ?that WHERE { ?this &lt;<xsl:value-of
<sh:select>SELECT ?this ?that WHERE { ?this &lt;<xsl:value-of
select="$targetRoleURI"/>&gt; ?that . ?that &lt;<xsl:value-of
select="$targetRoleURI"/>&gt; ?this .} </sh:select>
select="$targetRoleURI"/>&gt; ?this .}</sh:select>
</sh:sparql>
</rdf:Description>


<rdf:Description
rdf:about="{f:buildPropertyShapeURI($targetClassName,$sourceRole)}">
<sh:sparql rdf:parseType="Resource">
<sh:select> SELECT ?this ?that WHERE { ?this &lt;<xsl:value-of
<sh:select>SELECT ?this ?that WHERE { ?this &lt;<xsl:value-of
select="$sourceRoleURI"/>&gt; ?that . ?that &lt;<xsl:value-of
select="$sourceRoleURI"/>&gt; ?this .} </sh:select>
select="$sourceRoleURI"/>&gt; ?this .}</sh:select>
</sh:sparql>
</rdf:Description>

Expand Down
4 changes: 2 additions & 2 deletions src/shacl-shape-lib/descriptors-shacl-shape.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
<rdf:Description rdf:about="{$uri}">
<xsl:choose>
<xsl:when test="$rdfsComment=fn:true()">
<rdfs:comment><xsl:value-of select="$comment"/></rdfs:comment>
<rdfs:comment><xsl:value-of select="fn:normalize-space($comment)"/></rdfs:comment>
</xsl:when>
<xsl:otherwise>
<sh:description><xsl:value-of select="$comment"/></sh:description>
<sh:description><xsl:value-of select="fn:normalize-space($comment)"/></sh:description>
</xsl:otherwise>
</xsl:choose>
</rdf:Description>
Expand Down
3 changes: 1 addition & 2 deletions src/shacl-shape-lib/elements-shacl-shape.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@
<xsl:template name="abstractClassDeclaration">
<xsl:param name="classURI"/>
<sh:sparql rdf:parseType="Resource">
<sh:select>SELECT ?this WHERE { ?this a &lt;<xsl:value-of select="$classURI"/>&gt; . }
</sh:select>
<sh:select>SELECT ?this WHERE { ?this a &lt;<xsl:value-of select="$classURI"/>&gt; . }</sh:select>
</sh:sparql>
</xsl:template>

Expand Down

0 comments on commit 7f26a14

Please sign in to comment.