NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 27 forks source link

"associatedParty element is not complete" error #427

Closed laurenwalker closed 6 years ago

laurenwalker commented 6 years ago

I got the following error for this EML document in the editor:

Error inserting or updating document: urn:uuid:c52ee869-d904-48c4-9a91-f94bceca4856 since <?xml version="1.0"?>
<error>cvc-complex-type.2.4.b: The content of element 'associatedParty' is not complete. One of '{individualName, organizationName, positionName, address, phone, electronicMailAddress, onlineUrl, userId, role}' is expected.</error>
<?xml version="1.0" encoding="UTF-8"?><eml:eml xmlns:eml="eml://ecoinformatics.org/eml-2.1.1" xmlns:stmml="http://www.xml-cml.org/schema/stmml-1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packageId="datateam.8.1" system="knb" xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 eml.xsd">
  <access order="allowFirst" authSystem="knb">
    <allow>
      <principal>public</principal>
      <permission>read</permission>
    </allow>
  </access>
  <dataset><title>Aggregated and original land cover from GLC2000 data sets</title><creator id="7081263516629189">
      <individualName><givenName>Michael</givenName><surName>Loranty</surName></individualName>
      <phone phonetype="voice">315-228-6057</phone>
      <electronicMailAddress>mloranty@colgate.edu</electronicMailAddress>
    </creator><creator id="2905388789006213">
      <individualName><givenName>Scott</givenName><surName>Goetz</surName></individualName>
    </creator><creator id="7689047538226677">
      <individualName><givenName>Wil</givenName><surName>Lieberman-Cribbin</surName></individualName>
    </creator><creator id="2760838721634288">
      <individualName><givenName>Logan</givenName><surName>Berner</surName></individualName>
    </creator><creator id="6171215608640033">
      <individualName><givenName>Susan</givenName><surName>Natali</surName></individualName>
      <phone phonetype="voice">508-444-1560</phone>
      <electronicMailAddress>snatali@whrc.org</electronicMailAddress>
    </creator><creator id="5784542802280847">
      <individualName><givenName>Heather</givenName><surName>Alexander</surName></individualName>
    </creator><creator id="3865054817249076">
      <individualName><givenName>Alexander</givenName><surName>Kholodov</surName></individualName>
    </creator><associatedParty id="9723365975342688">
      <individualName><givenName>Daniel</givenName><surName>Kammen</surName></individualName><organizationName>Environmental Research Letters</organizationName>

    </associatedParty><associatedParty id="5217347026452390">
      <individualName><givenName>Alexander</givenName><surName>Kholodov</surName></individualName>

    </associatedParty><associatedParty id="2742873903924491">
      <individualName><givenName>Heather</givenName><surName>Alexander</surName></individualName>

    </associatedParty><associatedParty id="6355034416713039">
      <individualName><givenName>Logan</givenName><surName>Berner</surName></individualName>

    </associatedParty><associatedParty id="1263069349977321">
      <individualName><givenName>Michael</givenName><surName>Loranty</surName></individualName><phone phonetype="voice">315-228-6057</phone><electronicMailAddress>mloranty@colgate.edu</electronicMailAddress>

    </associatedParty>

    <abstract><para>In arctic tundra and boreal forest ecosystems vegetation structural and functional influences on the surface energy balance can strongly influence permafrost soil temperatures. As such, vegetation changes will likely play an important role in permafrost soil carbon dynamics and associated climate feedbacks. Processes that lead to changes in vegetation, such as wildfire or ecosystem responses to rising temperatures, are of critical importance to understanding the impacts of arctic and boreal ecosystems on future climate. Yet these processes vary within and between ecosystems and this variability has not been systematically characterized across the arctic-boreal region. Here we quantify the distribution of vegetation productivity trends, wildfire, and near-surface soil carbon, by vegetation type, across the zones of continuous and discontinuous permafrost. Siberian larch forests contain more than one quarter of permafrost soil carbon in areas of continuous permafrost. We observe pervasive positive trends in vegetation productivity in areas of continuous permafrost, whereas areas underlain by discontinuous permafrost have proportionally less positive productivity trends and an increase in areas exhibiting negative productivity trends. Fire affects a much smaller proportion of the total area and thus a smaller amount of permafrost soil carbon, with the vast majority occurring in deciduous needleleaf forests. Our results indicate that vegetation productivity trends may be linked to permafrost distribution, fire affects a relatively small proportion of permafrost soil carbon, and Siberian larch forests will play a crucial role in the strength of the permafrost carbon climate feedback.</para></abstract><keywordSet><keyword>Vegetation productivity</keyword><keyword>arctic</keyword><keyword>boreal</keyword><keyword>tundra</keyword><keyword>global carbon cycling</keyword><keyword>Needleleaf evergreen</keyword><keyword>needleleaf deciduous</keyword><keyword>Mosaic forest</keyword><keyword>global land cover 2000</keyword><keyword>permafrost ecosystems</keyword><keyword>soil carbon</keyword></keywordSet>

    <intellectualRights><para>This research letter has been published in Enviromental Research Letters which is a journal that covers all of the enviromental science, providing a coherent and integrated approach. All content is published on an open access basis under a CC BY licence and is free to readers.</para></intellectualRights>
    <coverage>
      <geographicCoverage>
        <geographicDescription>The arctic tundra and boreal forest ecosystem in Siberia</geographicDescription>
        <boundingCoordinates><westBoundingCoordinate>71.75</westBoundingCoordinate><eastBoundingCoordinate>161.5</eastBoundingCoordinate><northBoundingCoordinate>82.0</northBoundingCoordinate><southBoundingCoordinate>31.375</southBoundingCoordinate></boundingCoordinates>
      </geographicCoverage>
      <temporalCoverage><rangeOfDates><beginDate><calendarDate>2000</calendarDate></beginDate><endDate><calendarDate>2014</calendarDate></endDate></rangeOfDates></temporalCoverage>
    </coverage><contact id="3220202997559262">

    <organizationName>Environmental Research Letters</organizationName></contact>

    <methods>
      <methodStep>
        <description>
          <section>

            <para>Restricted analysis to continuous and discontinuous permafrost zones to avoid including large areas unaffected by permafrost. Additionally, further restricted our study area using the Northern Circumpolar Soil Carbon DAtabase v2 in order to effectively remove altitudinal permafrost at lower altitudes.</para>
          </section>
        </description>
      </methodStep>
      <methodStep>
        <description>
          <section>

            <para>Variables in ecosystem types within the continuous and discontinuous permafrost zones were quantified using the Global Land Cover 2000 dataset. Percent tree canopy cover was mapped using the MODIS Vegetation Continuous Fields Collection 5.1 data product. Aggregatino of the land cover classes was informed by preliminary assessment of the spatial extent, percent canopy cover, other regional land cover products, and overall relevance to the study. Vegetation productivity changes were quantified using a normalized difference vegetation index (NDVI) trend map produced by Guay et al that depicts linear changes in average annual June-August landscape greenness from 1982 to 2012. Fire extent and distribution acros the study region for the 2000-2014 period was maped using the Collection 5.1 MODIS Burned Area product. October through april was excluded becasue the study is typically snow covered during this period and fires are highly unlikely.</para>
          </section>
        </description>
      </methodStep>
      <sampling>
        <studyExtent>
          <description>
            <para>Spatial domain for this study was defined using the Circum-Artic Map of Permafrost and Ground Ice Conditions. It is poleward of 20 degrees N latitude. The temporal domain for this study is defined as 2000-2014. The taxonomic extent of this study is artic-tundra trees.</para>
          </description>
        </studyExtent>
        <samplingDescription>
          <para>The CAMP, NCSCDv2, GLC2000, VCF, and GIMMS datasets were then reprojected and resampled to match the spatial extent and resolution of the burned area data set. The CAMP and GLC2000 include categorical variables and so were transformed using nearest neighbor resampling. The remaining maps included continuous variables and so were resampled using bilinear interpolation. All transformations were performed using the Raster package in R.</para>
        </samplingDescription>
      </sampling>
    </methods><project><title>Aggregated and original land cover from GLC2000 data sets</title><personnel id="7459357433740605"><individualName><givenName>Alexander</givenName><surName>Kholodov</surName></individualName><role>principalInvestigator</role></personnel><funding><para>funding num</para></funding></project>
    <dataTable id="urn-uuid-a72949d2-31f4-4d5a-b94e-28998a366791">
      <entityName>table01.csv</entityName>
      <entityDescription>Aggregated and original land cover classes derived from the GLC2000 data set.</entityDescription>
      <physical scope="document">
        <objectName>table01.csv</objectName>
        <size unit="bytes">1150</size>
        <authentication method="SHA256">000a22ed29fff6e72c91d251338f2b5b7fca18eea8f7e82bbc74640cc8fdf941</authentication>
        <dataFormat>
          <externallyDefinedFormat>
            <formatName>text/csv</formatName>
          </externallyDefinedFormat>
        </dataFormat>
        <distribution scope="document">
          <online>
            <url function="download">https://cn.dataone.org/cn/v2/resolve/urn:uuid:ad25ba93-e5d1-457b-a016-fec9467d640c</url>
          </online>
        </distribution>
      </physical>
      <attributeList>

      <attribute>
          <attributeName>Aggregated_class</attributeName>
          <attributeDefinition>The combining of 19 original Global Land Cover 2000 classes present in the study region into 6 aggregate classes for analysis</attributeDefinition>
          <measurementScale>

          <nominal>
              <nonNumericDomain>
                <textDomain>
                  <definition>Combined the 19 original GLC2000 land cover classes present in the study region into six aggregate classes for analysis. Aggregation of the land cover classes was informed by preliminary assessment of the spatial extent, percent canopy cover, other regional land cover products and overall relevance to the study.</definition>
                </textDomain>
              </nonNumericDomain>
            </nominal></measurementScale>
        </attribute><attribute>
          <attributeName>GLC2000_class</attributeName>
          <attributeDefinition>Variability in ecosystem types within the continuous and discontinuous permafrost zones</attributeDefinition>
          <measurementScale>

          <nominal>
              <nonNumericDomain>
                <textDomain>
                  <definition>Classes that were aggregated because of their relatively small areal extents</definition>
                </textDomain>
              </nonNumericDomain>
            </nominal></measurementScale>
        </attribute><attribute>
          <attributeName>Cont.Area_km.2_10.6</attributeName>
          <attributeDefinition>Area of continuous permafrost multiplied by 10^6</attributeDefinition>
          <measurementScale>

          <ratio><unit><standardUnit>squareKilometers</standardUnit></unit><numericDomain><numberType>real</numberType></numericDomain>

            </ratio></measurementScale>
        </attribute><attribute>
          <attributeName>Discont.Area_km.2_10.6</attributeName>
          <attributeDefinition>Area of discontinuous permafrost multiplied by 10^6</attributeDefinition>
          <measurementScale>

          <ratio><unit><standardUnit>squareKilometers</standardUnit></unit><numericDomain><numberType>real</numberType></numericDomain>

            </ratio></measurementScale>
        </attribute><attribute>
          <attributeName>Cont.CanopyCover.Percent</attributeName>
          <attributeDefinition>Percentage of canopy cover in continuous permafrost</attributeDefinition>
          <measurementScale>

          <ratio><unit><standardUnit>dimensionless</standardUnit></unit><numericDomain><numberType>real</numberType></numericDomain>

            </ratio></measurementScale>
        </attribute><attribute>
          <attributeName>Discont.CanopyCover.Percent</attributeName>
          <attributeDefinition>Percentage of canopy cover in discontinuous permafrost</attributeDefinition>
          <measurementScale>

          <ratio><unit><standardUnit>dimensionless</standardUnit></unit><numericDomain><numberType>real</numberType></numericDomain>

            </ratio></measurementScale>
        </attribute></attributeList>
    </dataTable>
  </dataset>
</eml:eml>
laurenwalker commented 6 years ago

This error is occurring because the EMLParty model is removing the <role> element from the associatedParty because there were custom roles in the EML. The EMLParty model needs to account for custom roles in EML.

laurenwalker commented 6 years ago

Fixed in 3633d0a4475040253f0a4bd5f6a3733a1e481ed4

jagoldstein commented 6 years ago

This issue addresses the exposure of the role field within associatedPartys in the metacatUI metadata view, correct? (That field is not currently displayed, but will it be after a future release?)

I tired finding this issue listed here https://github.com/NCEAS/metacatui/milestones but could not. I'm not totally clear on how to interpret the release schedule. Thanks.

laurenwalker commented 6 years ago

@jagoldstein - That change was made in the EML stylesheets in the Metacat project: https://github.com/NCEAS/metacat/commit/d077d292a5451fb4beb63bbb895b32edceccca55

@taojing2002 - Can you confirm that this commit made it into the Metacat 2.8.5 release?