From 8e0b18259494932a54367716a8c71d87214636fb Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@nps.edu>
Date: Sun, 12 Jun 2022 22:31:24 -0700
Subject: [PATCH] modified naming checks to handle rdfs:label more descriptive
 than class name

---
 stylesheets/MeoDadmNamingVerification.xslt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/stylesheets/MeoDadmNamingVerification.xslt b/stylesheets/MeoDadmNamingVerification.xslt
index 1915133..c5cf23c 100644
--- a/stylesheets/MeoDadmNamingVerification.xslt
+++ b/stylesheets/MeoDadmNamingVerification.xslt
@@ -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>
-- 
GitLab