From 8c0b3455c3442fe48d7b24cc673411b3fd21d8bb Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Sun, 23 Jul 2017 21:53:49 -0700 Subject: [PATCH] Added annotation fields to example document. Continuing work on issue #25, this commit now allows the new annotation fields to be demonstrated. The eml-sample.xml document validates using xerces. --- src/test/resources/eml-sample.xml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/test/resources/eml-sample.xml b/src/test/resources/eml-sample.xml index ffb30a4d..349c6f94 100644 --- a/src/test/resources/eml-sample.xml +++ b/src/test/resources/eml-sample.xml @@ -1,10 +1,10 @@ + xsi:schemaLocation="eml://ecoinformatics.org/eml-2.2.0 ../../../xsd/eml.xsd"> Data from Cedar Creek LTER on productivity and species richness @@ -55,6 +55,10 @@ <keyword>species-area</keyword> <keyword>species richness</keyword> </keywordSet> + <annotation> + <termURI>http://purl.obolibrary.org/obo/ENVO_01000177</termURI> + <termLabel>grassland biome</termLabel> + </annotation> <contact> <references>clarence.lehman</references> </contact> @@ -83,6 +87,10 @@ </online> </distribution> </physical> + <annotation> + <termURI>http://purl.obolibrary.org/obo/ENVO_00000260</termURI> + <termLabel>prarie</termLabel> + </annotation> <attributeList id="at.1"> <attribute id="att.1"> <attributeName>fld</attributeName> @@ -277,6 +285,18 @@ </numericDomain> </ratio> </measurementScale> + <annotation> + <termURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl#Mass</termURI> + <termLabel>Mass</termLabel> + </annotation> + <annotation> + <termURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-standards.owl#Kilogram</termURI> + <termLabel>Kilogram</termLabel> + </annotation> + <annotation> + <termURI>http://example.com/example-vocab-1.owl#PlantSample</termURI> + <termLabel>Plant Sample</termLabel> + </annotation> </attribute> <attribute id="att.13"> <attributeName>sppm2</attributeName> @@ -324,7 +344,7 @@ <additionalMetadata> <metadata> <stmml:unitList xmlns:stmml="http://www.xml-cml.org/schema/stmml-1.1" - xsi:schemaLocation="http://www.xml-cml.org/schema/stmml-1.1 stmml.xsd"> + xsi:schemaLocation="http://www.xml-cml.org/schema/stmml-1.1 ../../../xsd/stmml.xsd"> <!--note that the unitTypes here are taken from the eml-unitDictionary.xml--> <stmml:unit name="gramsPerSquareMeter" unitType="arealMassDensity" id="gramsPerSquareMeter" parentSI="kilogramsPerSquareMeter" multiplierToSI=".001"/> <stmml:unit name="speciesPerSquareMeter" unitType="arealDensity" id="speciesPerSquareMeter" parentSI="numberPerSquareMeter" multiplierToSI="1"/>