Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6] Added citation mapping #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions transformations/abcd2bioschemas/abcd2bioschemas-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exclude-result-prefixes="xsl md panxslt set">
<xsl:variable name="dataset_version_modifier" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:Version/abcd:Modifier"></xsl:variable>
<xsl:variable name="dataset_version_issued" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:Version/abcd:DateIssued"></xsl:variable>
<xsl:variable name="dataset_direct_access" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:DirectAccessURI"></xsl:variable>
<xsl:variable name="ipr_statement" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:IPRStatements/abcd:Citations/abcd:Citation/abcd:Text"></xsl:variable>
<xsl:variable name="ipr_statement" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:IPRStatements/abcd:Citations/abcd:Citation"></xsl:variable>
<xsl:variable name="dataset_uri" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:Description/abcd:Representation/abcd:URI"></xsl:variable>
<xsl:variable name="terms_of_use" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:IPRStatements/abcd:TermsOfUseStatements/abcd:TermsOfUse"></xsl:variable>
<xsl:variable name="licence" select="/abcd:DataSets/abcd:DataSet/abcd:Metadata/abcd:IPRStatements/abcd:Licenses/abcd:License"></xsl:variable>
Expand Down Expand Up @@ -104,7 +104,7 @@ exclude-result-prefixes="xsl md panxslt set">
<xsl:if test="./abcd:Text">
<name><xsl:value-of select="./abcd:Text"/></name>
</xsl:if>
<xsl:if test="./abcd:Text">
<xsl:if test="./abcd:Details">
<description><xsl:value-of select="./abcd:Details"/></description>
</xsl:if>
<xsl:if test="./abcd:URI">
Expand All @@ -122,7 +122,25 @@ exclude-result-prefixes="xsl md panxslt set">
<xsl:if test="./abcd:Text">
<name><xsl:value-of select="./abcd:Text"/></name>
</xsl:if>
<xsl:if test="./abcd:Details">
<description><xsl:value-of select="./abcd:Details"/></description>
</xsl:if>
<xsl:if test="./abcd:URI">
<url><xsl:value-of select="./abcd:URI"/></url>
</xsl:if>
<xsl:if test="./abcd:URL">
<url><xsl:value-of select="./abcd:URL"/></url>
</xsl:if>
</usageInfo>
</xsl:for-each>

<xsl:for-each select="$ipr_statement">
<usageInfo>
<xsl:attribute name="type">CreativeWork</xsl:attribute>
<xsl:if test="./abcd:Text">
<name><xsl:value-of select="./abcd:Text"/></name>
</xsl:if>
<xsl:if test="./abcd:Details">
<description><xsl:value-of select="./abcd:Details"/></description>
</xsl:if>
<xsl:if test="./abcd:URI">
Expand All @@ -133,6 +151,7 @@ exclude-result-prefixes="xsl md panxslt set">
</xsl:if>
</usageInfo>
</xsl:for-each>


<xsl:for-each select="$country[not(.=preceding::*)]">
<spatialCoverage type="Country">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
<Text>CC BY 4.0</Text>
</License>
</Licenses>
<TermsOfUseStatements>
<TermsOfUse language="en">
<Text>Textual metadata on specimens from the Herbarium Berolinense (B) are released under the Creative Commons 1.0 Public Domain Dedication waiver [http://creativecommons.org/publicdomain/zero/1.0/].</Text>
</TermsOfUse>
</TermsOfUseStatements>
<Citations>
<Citation language="en">
<Text>Hoffmann, A. (1999). Plants at Crater Road of Queen Elizabeth National Park, Uganda. [Dataset]. Data Publisher: Botanic Garden and Botanical Museum Berlin. https://data.bgbm.org/dataset/gfbio/0004/.</Text>
Expand Down