Skip to content
Snippets Groups Projects
Commit 8e0b1825 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

modified naming checks to handle rdfs:label more descriptive than class name

parent 9e3d9e94
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@
<xsl:when test="not($annotationRdfsLabel = $missing) and ($IRI = concat('#',$annotationRdfsLabel))">
<xsl:text> *** error, IRI </xsl:text>
<xsl:value-of select="$IRI"/>
<xsl:text> matches rdfs:label </xsl:text>
<xsl:text> identical to rdfs:label </xsl:text>
<xsl:value-of select="$annotationRdfsLabel"/>
<xsl:text>, expected more-descriptive label</xsl:text>
<xsl:text> ***</xsl:text>
......@@ -112,10 +112,10 @@
<xsl:value-of select="$IRI"/>
<xsl:text> is longer than rdfs:label </xsl:text>
<xsl:value-of select="$annotationRdfsLabel"/>
<xsl:text>, expected more-descriptive label</xsl:text>
<xsl:text>, instead expected more-descriptive label</xsl:text>
<xsl:text> ***</xsl:text>
</xsl:when>
<xsl:when test="not($annotationRdfsLabel = $missing) and not(starts-with($IRI,concat('#',$annotationRdfsLabel)))">
<xsl:when test="not($annotationRdfsLabel = $missing) and not(starts-with(concat('#',$annotationRdfsLabel),$IRI))">
<xsl:text> *** error, mismatch with IRI</xsl:text>
<xsl:if test="starts-with($IRI,'#') and contains($IRI,'_')">
<xsl:text>, expected </xsl:text>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment