Skip to content

Commit

Permalink
[#3] Add abcd:creators mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Jul 9, 2024
1 parent c3cb8ed commit 044832a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions transformations/abcd2bioschemas/abcd2bioschemas-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude-result-prefixes="xsl md panxslt set">
<xsl:variable name="dataset_owner" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:Owners/abcd:Owner"></xsl:variable>
<xsl:variable name="dataset_created" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:RevisionData/abcd:DateCreated"></xsl:variable>
<xsl:variable name="dataset_modified" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:RevisionData/abcd:DateModified"></xsl:variable>
<xsl:variable name="dataset_creators" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:RevisionData/abcd:Creators"></xsl:variable>
<xsl:variable name="dataset_contributors" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:RevisionData/abcd:Contributors"></xsl:variable>
<xsl:variable name="dataset_version_major" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:Version/abcd:Major"></xsl:variable>
<xsl:variable name="dataset_version_minor" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:Version/abcd:Minor"></xsl:variable>
Expand Down Expand Up @@ -411,6 +412,11 @@ exclude-result-prefixes="xsl md panxslt set">
<name><xsl:value-of select="$dataset_contributors"/></name>
</contributor>
</xsl:if>
<xsl:if test="$dataset_creators">
<creator type="Thing">
<name><xsl:value-of select="$dataset_creators"/></name>
</creator>
</xsl:if>
<!-- TODO:
- Gathering Agents as contributors?
- variableMeasured
Expand Down

0 comments on commit 044832a

Please sign in to comment.