<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Checking for exact text in metadata in ArcGIS Data Reviewer Questions</title>
    <link>https://community.esri.com/t5/arcgis-data-reviewer-questions/checking-for-exact-text-in-metadata/m-p/269883#M420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a great question and highlights one of the challenges (and under-documented aspects) of using the advanced features of the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Why_validate_item_metadata/0102000000mr000000/"&gt;Metadata Check&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To validate metadata content using a custom XPath query it should be constructed as an error condition which will return as "True" when the expression is executed in the Metadata Check.&amp;nbsp; For each metadata element which tests �??True�?� you will be returned a Reviewer result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your scenario, you want to write a result when the FGDC Use Constraints element (/metadata/idinfo/useconst) is NOT equal to "These data are provided by ...xxyyzz...".&amp;nbsp; The XPath expression which tests "True" for this condition would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/metadata/idinfo/useconst[not(. = "These data are provided by ...xxyyzz...")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this expression, Data Reviewer will write an result for every instance of the Use Constraint element (/metadata/idinfo/useconst) which is not equal to "These data are provided by ...xxyyzz...".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since this particular element may be repeated a number of times in the metadata record I'd recommend that you disable &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Configuring_the_Reviewer_methods/01020000007s000000/"&gt;duplicate checking&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; This will ensure that you get a complete list of these element errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Give this a try and let us know how it works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 18:10:10 GMT</pubDate>
    <dc:creator>JayCary</dc:creator>
    <dc:date>2013-05-17T18:10:10Z</dc:date>
    <item>
      <title>Checking for exact text in metadata</title>
      <link>https://community.esri.com/t5/arcgis-data-reviewer-questions/checking-for-exact-text-in-metadata/m-p/269882#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;I&gt; am trying to verify a chunk of text in my metadata. I have a section of text,several sentences long, that should be present in the Use Constraints section of my metadata. At this time I am using ESRI format but I will also need to check FGDC. I have a custom &lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;check set up and it reads as follows (the actual text is several sentences long):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/metadata/idinfo/useconst [(. = "These data are provided by ...xxyyzz...")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I verify, the message says that "The expression was verified correctly." However, when I run the check, it comes back with no errors, even when I have altered the text, so I know there are errors. I want the check to throw an error if anything between " " is &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not exactly as it is shown in the check.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something extra I need to do, to indicate that I am checking for exact text?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 14:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-reviewer-questions/checking-for-exact-text-in-metadata/m-p/269882#M419</guid>
      <dc:creator>KatieMcHugh1</dc:creator>
      <dc:date>2013-05-07T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for exact text in metadata</title>
      <link>https://community.esri.com/t5/arcgis-data-reviewer-questions/checking-for-exact-text-in-metadata/m-p/269883#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a great question and highlights one of the challenges (and under-documented aspects) of using the advanced features of the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Why_validate_item_metadata/0102000000mr000000/"&gt;Metadata Check&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To validate metadata content using a custom XPath query it should be constructed as an error condition which will return as "True" when the expression is executed in the Metadata Check.&amp;nbsp; For each metadata element which tests �??True�?� you will be returned a Reviewer result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your scenario, you want to write a result when the FGDC Use Constraints element (/metadata/idinfo/useconst) is NOT equal to "These data are provided by ...xxyyzz...".&amp;nbsp; The XPath expression which tests "True" for this condition would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/metadata/idinfo/useconst[not(. = "These data are provided by ...xxyyzz...")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this expression, Data Reviewer will write an result for every instance of the Use Constraint element (/metadata/idinfo/useconst) which is not equal to "These data are provided by ...xxyyzz...".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since this particular element may be repeated a number of times in the metadata record I'd recommend that you disable &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Configuring_the_Reviewer_methods/01020000007s000000/"&gt;duplicate checking&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; This will ensure that you get a complete list of these element errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Give this a try and let us know how it works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 18:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-reviewer-questions/checking-for-exact-text-in-metadata/m-p/269883#M420</guid>
      <dc:creator>JayCary</dc:creator>
      <dc:date>2013-05-17T18:10:10Z</dc:date>
    </item>
  </channel>
</rss>

