Browse Source

[1.1/datareference] Add initial files

M. Sonntag 5 years ago
parent
commit
512dc12e24

+ 53 - 0
v1.1/datareference/datacite.xml

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl" xmlns:odml="http://www.g-node.org/odml"?>
+<odML version="1.1">
+    <repository>http://portal.g-node.org/odml/terminologies/v1.1/terminologies.xml</repository>
+    <version>1.0</version>
+    <date>2019-03-26</date>
+    <!-- *********************************************************        -->
+    <!--                      Data reference section                      -->
+    <!--  The minimal description of a data reference is a URI linking back
+          to the repository the odml file or the data the odml document describes
+          resides in.
+          Further details common to the different types of data reference sections
+          can be added via the reference description section              -->
+    <!-- *********************************************************        -->
+    <section>
+        <type>DataReference</type>
+        <name>DataCite</name>
+        <definition>A published dataset referenced by a DOI and registered with DataCite. The referenced dataset will contain either the odML file itself or the data the odML is annotating.
+        </definition>
+
+        <property>
+            <name>ResourceType</name>
+            <definition>A description of the resource. The format is open, but the preferred format is a single term of some detail so that a pair can be formed with the sub-property.Text formats can be free-text OR terms from the CASRAI Publications resource type list. In the odML context the value will mostly be 'Dataset'.</definition>
+            <type>string</type>
+        </property>
+
+        <section>
+            <name>DataCiteReference</name>
+            <definition>A publication the published dataset is referencing.</definition>
+            <property>
+                <name>DOI</name>
+                <definition>DOI to the referenced publication</definition>
+                <type>string</type>
+            </property>
+            <property>
+                <name>refType</name>
+                <definition>refType might be: IsCitedBy, IsSupplementTo, IsReferencedBy, IsPartOf for further valid types see https://schema.datacite.org/meta/kernel-4</definition>
+                <type>string</type>
+            </property>
+            <property>
+                <name>publictionCitation</name>
+                <definition>Full citation of the reference publication</definition>
+                <type>string</type>
+            </property>
+        </section>
+
+        <property>
+            <name>DataDOI</name>
+            <definition>A unique Digital object identifier of data. In the current context a URI linking to the published dataset.</definition>
+            <type>url</type>
+        </property>
+    </section>
+</odML>

+ 28 - 0
v1.1/datareference/datadoi.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl" xmlns:odml="http://www.g-node.org/odml"?>
+<odML version="1.1">
+    <repository>http://portal.g-node.org/odml/terminologies/v1.1/terminologies.xml</repository>
+    <version>1.0</version>
+    <date>2019-03-26</date>
+    <!-- *********************************************************        -->
+    <!--                      Data reference section                      -->
+    <!--  The minimal description of a data reference is a URI linking back
+          to the repository the odml file or the data the odml document describes
+          resides in.
+          Further details common to the different types of data reference sections
+          can be added via the reference description section              -->
+    <!-- *********************************************************        -->
+    <section>
+        <type>DataReference</type>
+        <name>DataDOI</name>
+        <definition>A published dataset referenced by a DOI. The referenced dataset will contain either the odML file itself or the data the odML is annotating.
+        </definition>
+
+        <property>
+            <name>DataDOI</name>
+            <definition>A unique Digital object identifier of data. In the current context a URI linking to the published dataset.</definition>
+            <type>url</type>
+        </property>
+    </section>
+
+</odML>

+ 27 - 0
v1.1/datareference/datauri.xml

@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl" xmlns:odml="http://www.g-node.org/odml"?>
+<odML version="1.1">
+    <repository>http://portal.g-node.org/odml/terminologies/v1.1/terminologies.xml</repository>
+    <version>1.0</version>
+    <date>2019-03-26</date>
+    <!-- *********************************************************        -->
+    <!--                      Data reference section                      -->
+    <!--  The minimal description of a data reference is a URI linking back
+          to the repository the odml file or the data the odml document describes
+          resides in.
+          Further details common to the different types of data reference sections
+          can be added via the reference description section              -->
+    <!-- *********************************************************        -->
+    <section>
+        <type>DataReference</type>
+        <name>DataURI</name>
+        <definition>A published dataset referenced by a URI. The referenced dataset will contain either the odML file itself or the data the odML is annotating.
+        </definition>
+
+        <property>
+            <name>DataURI</name>
+            <definition>A URI linking to the published dataset.</definition>
+            <type>url</type>
+        </property>
+    </section>
+</odML>

+ 176 - 0
v1.1/datareference/odmlTerms.xsl

@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fn="http://www.w3.org/2005/02/xpath-functions">
+
+  <!-- This stylesheet is for viewing odml-terminologies in a web browser -->
+  <!-- Please note: only those elements will be displayed terminology related -->
+  <!-- e.g. uncertainty, id, and valueComments will not be shown -->
+  <!-- For viewing real metadata files use the odml.xsl stylesheet -->
+  <!-- ************************************************  -->
+  <!--                   root template                   -->
+  <xsl:template match="odML">
+    <!-- if there is a base url definition read it and later pass it to the sections template -->
+    <xsl:variable name="repository" select="repository"/>
+    <html>
+      <link href="../../../images/odMLIcon.ico" rel="shortcut icon"
+            csoptsettings="AQAAAD142mNgYNBomeIwObe4IIeBgYEvyTDuaAoPw3IFiwOcndS8HR1NjO0NDPTNdIzzEzOByni+A8EQNoAAPMPEQ4="
+            livesrc="../../../images/odMLIcon.png" />
+      <style type="text/css">
+        body { margin-left:2%; margin-top:10px; padding:0;} div { border:0px solid #888; }
+
+        #navigationContainer { left:20px; width:80%;}
+
+        #contentContainer { left:20px; width:80%;}
+      </style>
+
+      <body>
+        <a name="top" style="color:#336699"><h1>odML - Metadata</h1></a>
+        <div id="navigationContainer">
+          <p>
+            <hr style="color:yellow; background-color:#336699; height:4px; margin-right:0; text-align:right; border:1px dashed black;"/>
+            <h2>Document info</h2>
+            <b>Author: </b><xsl:if test="author"><xsl:value-of select="author"/></xsl:if><br/>
+            <b>Date: </b><xsl:if test="date"><xsl:value-of select="date"/></xsl:if><br/>
+            <b>Version: </b><xsl:if test="version"><xsl:value-of select="version"/></xsl:if><br/>
+            <b>Repository: </b><xsl:if test="repository"><xsl:value-of select="repository"/></xsl:if><br/>
+          </p>
+
+          <hr style="color:yellow; background-color:#336699; height:4px; margin-right:0; text-align:right; border:1px dashed black;"/>
+
+          <h2>Structure</h2>
+          <font size ="-1" >
+            <xsl:if test="section">
+              <xsl:for-each select="section">
+                <li>
+                  <xsl:call-template name="sectionTemplate">
+                    <xsl:with-param name="navigation">1</xsl:with-param>
+                    <xsl:with-param name="anchorBase">Sec</xsl:with-param>
+                    <xsl:with-param name="url" select="$repository"/>
+                  </xsl:call-template>
+                </li>
+              </xsl:for-each>
+            </xsl:if>
+          </font>
+        </div>
+
+        <div id="contentContainer">
+          <hr style="color:yellow; background-color:#336699; height:4px; margin-right:0; text-align:right; border:1px dashed black;"/>
+          <h2>Content</h2>
+          <!-- apply the section template  -->
+          <xsl:if test="section">
+            <xsl:for-each select="section">
+              <xsl:call-template name="sectionTemplate">
+                <xsl:with-param name="navigation">0</xsl:with-param>
+                <xsl:with-param name="anchorBase">Sec</xsl:with-param>
+                <xsl:with-param name="url" select="$repository"/>
+              </xsl:call-template>
+            </xsl:for-each>
+          </xsl:if>
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+
+  <!-- ************************************************  -->
+  <!--              section template.                    -->
+  <xsl:template name="sectionTemplate" match="section">
+    <xsl:param name="navigation"/>
+    <xsl:param name="anchorBase"/>
+    <xsl:param name="url"/>
+    <xsl:variable name="anchorName" select="concat($anchorBase,position())"/>
+    <!-- set new repository if specified within this section otherwise use the old one -->
+    <xsl:variable name="repository">
+      <xsl:choose>
+        <xsl:when test="repository">
+          <xsl:value-of select ="repository"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select ="$url"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <!-- print out the content -->
+    <xsl:choose>
+      <!--  fill the navigation container if this is the task (navigation param = 1) -->
+      <xsl:when test="$navigation = 1">
+        <!-- create a link to the anchor in the content container  -->
+        <ol style="compact">
+          <font size="normal"><a href="#{$anchorName}">
+            <xsl:value-of select="name"/> (type: <xsl:value-of select="type"/>)
+          </a></font>
+          <!--  recursive call if there are subsections  -->
+          <xsl:if test="section">
+            <xsl:for-each select="section">
+              <xsl:call-template name="sectionTemplate">
+                <xsl:with-param name="navigation" select="$navigation"/>
+                <xsl:with-param name="anchorBase" select="concat($anchorName,'SubSec')"/>
+                <xsl:with-param name="url" select="$repository"/>
+              </xsl:call-template>
+            </xsl:for-each>
+          </xsl:if>
+        </ol>
+      </xsl:when>
+      <!--  otherwise use template to display the content (navigation !=1) -->
+      <xsl:otherwise>
+        <a name="{$anchorName}"><h3> <xsl:value-of select="name"/> Section</h3></a>
+        <p>
+          <b>Type: </b><xsl:value-of select="type"/><br/>
+          <xsl:choose>
+            <xsl:when test ="repository">
+              <b>Repository: </b><xsl:value-of select="repository"/><br/>
+            </xsl:when>
+            <xsl:otherwise>
+              <b>Repository: </b><xsl:value-of select="$repository"/><br/>
+            </xsl:otherwise>
+          </xsl:choose>
+          <b>Link: </b><xsl:if test="link"><xsl:value-of select="link"/></xsl:if><br/>
+          <b>Include:</b> <xsl:if test="include"><font color="red"><xsl:value-of select="include"/></font></xsl:if><br/>
+          <b>Definition: </b><xsl:if test="definition"><xsl:value-of select="definition"/></xsl:if><br/>
+        </p>
+
+        <!--  Check if there are any properties  -->
+        <xsl:if test="property">
+          <table border="1" rules="rows" width="100%"><font size="-1">
+            <tr bgcolor="#336699" align="left" valign="middle">
+              <th><font size="+1" color="white"><b>Name</b></font></th>
+              <th><font size="+1" color="white"><b>Value</b></font></th>
+              <th><font size="+1" color="white"><b>Unit</b></font></th>
+              <th><font size="+1" color="white"><b>Type</b></font></th>
+              <th><font size="+1" color="white"><b>Definition</b></font></th>
+              <th><font size="+1" color="white"><b>Dependency</b></font></th>
+              <th><font size="+1" color="white"><b>Dependency Value</b></font></th>
+            </tr>
+            <xsl:for-each select="property">
+              <xsl:variable name="anchor">
+                <xsl:value-of select ="name"/>
+              </xsl:variable>
+              <tr>
+                <td width="15%"><a name="{$anchor}"/>
+                  <p><xsl:value-of select="name"/></p>
+                </td>
+                <td width="10%"><p><xsl:value-of select="value"/></p></td>
+                <td width="5%"><p><xsl:value-of select="unit"/><br/></p></td>
+                <td width="5%"><p><xsl:value-of select="type"/></p></td>
+                <td width="22.5%"><p><xsl:value-of select="definition"/></p></td>
+                <td width="5%"><p><xsl:value-of select="dependency"/></p></td>
+                <td width="5%"><p><xsl:value-of select="dependencyValue"/></p></td>
+              </tr>
+            </xsl:for-each></font>
+          </table>
+        </xsl:if>
+        <a href="#top"><tiny>top</tiny></a>
+        <hr style="background-color:#336699; height:1px; margin-right:0; text-align:right;"/>
+        <!--  recursive call if there are subsections  -->
+        <xsl:if test="section">
+          <xsl:for-each select="section">
+            <xsl:call-template name="sectionTemplate">
+              <xsl:with-param name="navigation" select="$navigation"/>
+              <xsl:with-param name="anchorBase" select="concat($anchorName,'SubSec')"/>
+              <xsl:with-param name="url" select="$repository"/>
+            </xsl:call-template>
+          </xsl:for-each>
+        </xsl:if>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+</xsl:stylesheet>

+ 58 - 0
v1.1/datareference/referencedescription.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl"  xmlns:odml="http://www.g-node.org/odml"?>
+<odML version="1.1">
+    <repository>http://portal.g-node.org/odml/terminologies/v1.1/terminologies.xml</repository>
+    <version>1.0</version>
+    <date>2019-03-26</date>
+    <!-- ********************************************************* -->
+    <!--         Data reference description  section               -->
+    <!-- ********************************************************* -->
+    <section>
+        <type>DataReference</type>
+        <name>DataReferenceDescription</name>
+        <definition>Description of a data reference. This Section is defined to be used as a subsection of the 'DataReference' type sections.</definition>
+
+        <property>
+            <name>Title</name>
+            <definition>Title of the published dataset.</definition>
+            <type>string</type>
+        </property>
+
+        <property>
+            <name>Authors</name>
+            <definition>List of Authors of the published dataset.</definition>
+            <type>string</type>
+        </property>
+
+        <property>
+            <name>Description</name>
+            <definition>Abstract of the published dataset.</definition>
+            <type>string</type>
+        </property>
+
+        <property>
+            <name>License</name>
+            <definition>License the dataset is published under.</definition>
+            <type>string</type>
+        </property>
+
+        <property>
+            <name>References</name>
+            <definition>List of publications the published dataset is referencing.</definition>
+            <type>string</type>
+        </property>
+
+        <property>
+            <name>Funding</name>
+            <definition>List of grants the published dataset was funded by.</definition>
+            <type>string</type>
+        </property>
+
+        <property>
+            <name>Keywords</name>
+            <definition>List of keywords describing the published dataset.</definition>
+            <type>string</type>
+        </property>
+
+    </section>
+</odML>

+ 29 - 0
v1.1/terminologies.xml

@@ -1,6 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet type="text/xsl" href="odmlRepository.xsl" xmlns:odml="http://www.g-node.org/odml"?>
 <odML version="1.1">
+
+  <section>
+    <type>DataReference</type>
+    <name>DataCite</name>
+    <definition>A published dataset referenced by a DOI and registered with DataCite. The referenced dataset will contain either the odML file itself or the data the odML is annotating.</definition>
+    <include>http://portal.g-node.org/odml/terminologies/v1.1/datareference/datacite.xml</include>
+  </section>
+
+  <section>
+    <type>DataReference</type>
+    <name>DataDOI</name>
+    <definition>A published dataset referenced by a DOI. The referenced dataset will contain either the odML file itself or the data the odML is annotating.</definition>
+    <include>http://portal.g-node.org/odml/terminologies/v1.1/datareference/datadoi.xml</include>
+  </section>
+
+  <section>
+    <type>DataReference</type>
+    <name>DataURI</name>
+    <definition>A published dataset referenced by a URI. The referenced dataset will contain either the odML file itself or the data the odML is annotating.</definition>
+    <include>http://portal.g-node.org/odml/terminologies/v1.1/datareference/datauri.xml</include>
+  </section>
+
+  <section>
+    <type>DataReference</type>
+    <name>DataReferenceDescription</name>
+    <definition>Description of a data reference. This Section is defined to be used as a subsection of the 'DataReference' type sections.</definition>
+    <include>http://portal.g-node.org/odml/terminologies/v1.1/datareference/referencedescription.xml</include>
+  </section>
+
   <section>
     <type>analysis</type>
     <name>Analysis</name>