Skip to content

Commit

Permalink
Completed fields for semantic annotation.
Browse files Browse the repository at this point in the history
See discssion in issue #25.
  • Loading branch information
mbjones committed Jun 29, 2018
1 parent d531672 commit 3a751d0
Show file tree
Hide file tree
Showing 8 changed files with 290 additions and 191 deletions.
6 changes: 2 additions & 4 deletions src/test/resources/eml-data-paper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@
</temporalCoverage>
</coverage>
<annotation>
<propertyURI>http://purl.org/dc/elements/1.1/subject</propertyURI>
<propertyLabel>Subject</propertyLabel>
<valueURI>http://purl.obolibrary.org/obo/ENVO_01000177</valueURI>
<valueLabel>grassland biome</valueLabel>
<propertyURI label="Subject">http://purl.org/dc/elements/1.1/subject</propertyURI>
<valueURI label="grassland biome">http://purl.obolibrary.org/obo/ENVO_01000177</valueURI>
</annotation>
<purpose>
<markdown>
Expand Down
56 changes: 39 additions & 17 deletions src/test/resources/eml-sample.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
<phone>208-236-2933</phone>
<electronicMailAddress>inouye@lter.umn.edu</electronicMailAddress>
</creator>
<creator id="adam.shepherd">
<individualName>
<salutation>Mr.</salutation>
<givenName>Adam</givenName>
<surName>Shepherd</surName>
</individualName>
</creator>
<keywordSet>
<keyword>Old field grassland</keyword>
<keyword>biomass</keyword>
Expand All @@ -56,10 +63,8 @@
<keyword>species richness</keyword>
</keywordSet>
<annotation>
<propertyURI>http://purl.org/dc/elements/1.1/subject</propertyURI>
<propertyLabel>Subject</propertyLabel>
<valueURI>http://purl.obolibrary.org/obo/ENVO_01000177</valueURI>
<valueLabel>grassland biome</valueLabel>
<propertyURI label="Subject">http://purl.org/dc/elements/1.1/subject</propertyURI>
<valueURI label="grassland biome">http://purl.obolibrary.org/obo/ENVO_01000177</valueURI>
</annotation>
<contact>
<references>clarence.lehman</references>
Expand All @@ -84,7 +89,7 @@
<awardUrl>https://www.nsf.gov/awardsearch/showAward?AWD_ID=1546024</awardUrl>
</award>
</project>
<dataTable id="xyz">
<dataTable id="CDR-biodiv-table">
<entityName>CDR LTER-patterns among communities.txt</entityName>
<entityDescription>patterns amoung communities at CDR</entityDescription>
<physical>
Expand Down Expand Up @@ -301,22 +306,16 @@
</ratio>
</measurementScale>
<annotation>
<propertyURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofCharacteristic</propertyURI>
<propertyLabel>Characteristic</propertyLabel>
<valueURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl#Mass</valueURI>
<valueLabel>Mass</valueLabel>
<propertyURI label="of characteristic">http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofCharacteristic</propertyURI>
<valueURI label="Mass">http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl#Mass</valueURI>
</annotation>
<annotation>
<propertyURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#usesStandard</propertyURI>
<propertyLabel>unit</propertyLabel>
<valueURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-standards.owl#Kilogram</valueURI>
<valueLabel>Kilogram</valueLabel>
<propertyURI label="uses unit">http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#usesStandard</propertyURI>
<valueURI label="Kilogram">http://ecoinformatics.org/oboe/oboe.1.2/oboe-standards.owl#Kilogram</valueURI>
</annotation>
<annotation>
<propertyURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofEntity</propertyURI>
<propertyLabel>entity</propertyLabel>
<valueURI>http://example.com/example-vocab-1.owl#PlantSample</valueURI>
<valueLabel>Plant Sample</valueLabel>
<propertyURI label="of entity">http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofEntity</propertyURI>
<valueURI label="Plant Sample">http://example.com/example-vocab-1.owl#PlantSample</valueURI>
</annotation>
</attribute>
<attribute id="att.13">
Expand Down Expand Up @@ -362,6 +361,20 @@
<numberOfRecords>22</numberOfRecords>
</dataTable>
</dataset>
<annotations>
<annotation references="CDR-biodiv-table">
<propertyURI label="Subject">http://purl.org/dc/elements/1.1/subject</propertyURI>
<valueURI label="grassland biome">http://purl.obolibrary.org/obo/ENVO_01000177</valueURI>
</annotation>
<annotation references="adam.shepherd">
<propertyURI label="is a">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</propertyURI>
<valueURI label="Person">https://schema.org/Person</valueURI>
</annotation>
<annotation references="adam.shepherd">
<propertyURI label="member of">https://schema.org/memberOf</propertyURI>
<valueURI label="BCO-DMO">https://doi.org/10.17616/R37P4C</valueURI>
</annotation>
</annotations>
<additionalMetadata>
<metadata>
<stmml:unitList xmlns:stmml="http://www.xml-cml.org/schema/stmml-1.1"
Expand All @@ -372,4 +385,13 @@
</stmml:unitList>
</metadata>
</additionalMetadata>
<additionalMetadata>
<describes>adam.shepherd</describes>
<metadata>
<annotation>
<propertyURI label="member of">https://schema.org/memberOf</propertyURI>
<valueURI label="BCO-DMO">https://doi.org/10.17616/R37P4C</valueURI>
</annotation>
</metadata>
</additionalMetadata>
</eml:eml>
54 changes: 24 additions & 30 deletions src/test/resources/eml-semantics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,34 @@
system="http://knb.ecoinformatics.org"
xmlns:dt="eml://ecoinformatics.org/dataTable-2.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="eml://ecoinformatics.org/dataTable-2.2.0
xsd/eml-dataTable.xsd">
xsi:schemaLocation="eml://ecoinformatics.org/dataTable-2.2.0 xsd/eml-dataTable.xsd">
<alternateIdentifier>TEMPID234</alternateIdentifier>
<entityName>Test Data</entityName>
<entityDescription>This is a test entity that is fake.</entityDescription>
<additionalInfo><para>This is test data</para></additionalInfo>
<attributeList>
<attribute id="attribute01">
<attributeName>tmpair</attributeName>
<attributeLabel>Air Temperature</attributeLabel>
<attributeDefinition>Air temperature at 1m from ground.
</attributeDefinition>
<storageType>float</storageType>
<measurementScale>
<interval>
<unit><standardUnit>celsius</standardUnit></unit>
<precision>0.5</precision>
<numericDomain id="nd.1">
<numberType>real</numberType>
</numericDomain>
</interval>
</measurementScale>
<annotation>
<propertyURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofCharacteristic</propertyURI>
<propertyLabel>characteristic</propertyLabel>
<valueURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl#Temperature</valueURI>
<valueLabel>Temperature</valueLabel>
</annotation>
<annotation>
<propertyURI>http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofEntity</propertyURI>
<propertyLabel>entity</propertyLabel>
<valueURI>http://purl.obolibrary.org/obo/ENVO_00002005</valueURI>
<valueLabel>air</valueLabel>
</annotation>
</attribute>
<attribute id="attribute01">
<attributeName>tmpair</attributeName>
<attributeLabel>Air Temperature</attributeLabel>
<attributeDefinition>Air temperature at 1m from ground.</attributeDefinition>
<storageType>float</storageType>
<measurementScale>
<interval>
<unit><standardUnit>celsius</standardUnit></unit>
<precision>0.5</precision>
<numericDomain id="nd.1">
<numberType>real</numberType>
</numericDomain>
</interval>
</measurementScale>
<annotation>
<propertyURI label="ofCharacteristic"> http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofCharacteristic</propertyURI>
<valueURI label="Temperature"> http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl#Temperature</valueURI>
</annotation>
<annotation>
<propertyURI label='entity'> http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#ofEntity</propertyURI>
<valueURI label='air'> http://purl.obolibrary.org/obo/ENVO_00002005</valueURI>
</annotation>
</attribute>
</attributeList>
</dt:dataTable>
Loading

0 comments on commit 3a751d0

Please sign in to comment.