From b98f9a5e7e4ad54591ffcbc203effb9548fe9143 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@nps.edu>
Date: Mon, 20 Jun 2022 21:07:19 -0700
Subject: [PATCH] diagnostic tweak

---
 ontologies/MissionExecutionOntology3.1-DADM.tests.txt | 2 +-
 stylesheets/MeoDadmNamingVerification.xslt            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ontologies/MissionExecutionOntology3.1-DADM.tests.txt b/ontologies/MissionExecutionOntology3.1-DADM.tests.txt
index 98ca9e6..d8c26ef 100644
--- a/ontologies/MissionExecutionOntology3.1-DADM.tests.txt
+++ b/ontologies/MissionExecutionOntology3.1-DADM.tests.txt
@@ -18,7 +18,7 @@ This study identifies the dimensions of autonomous decision-making (DADMs), name
 
 Class IRI='#DADM'
    owl:subClassOf   #Abbreviations
-   rdfs:label       Dimension of Autonomous Decision-Making (DADM) *** error, mismatch with IRI ***
+   rdfs:label       Dimension of Autonomous Decision-Making (DADM)
    owl:versionInfo  page 100
    rdfs:comment    "(missing)"
  *** error, missing rdfs:comment description ***
diff --git a/stylesheets/MeoDadmNamingVerification.xslt b/stylesheets/MeoDadmNamingVerification.xslt
index c5cf23c..4ef1712 100644
--- a/stylesheets/MeoDadmNamingVerification.xslt
+++ b/stylesheets/MeoDadmNamingVerification.xslt
@@ -115,7 +115,7 @@
                     <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(concat('#',$annotationRdfsLabel),$IRI))">
+                <xsl:when test="not($annotationRdfsLabel = $missing) and not($IRI = '#DADM') 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