Difference between revisions of "CETAF Specimen Preview Profile (CSPP)"

From CETAF Identifiers Wiki
Jump to: navigation, search
(Example CSPP-compliant RDF-document)
m (#example CSPP-compliant RDF dwc:decimalLongitude +rdf:datatype)
 
(41 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= CETAF Specimen Preview Profile (CSPP) =
+
{{DISPLAYTITLE:<u>C</u>ETAF <u>S</u>pecimen <u>P</u>review <u>P</u>rofile (CSPP)}}
 
+
<!-- no need to double the title which is already h1 -->
The CSPP is a minimal set of agreed (RDF) collection metadata elements implemented consistently accross CETAF organisations (see minutes of the Geneva meeting of the ISTC identifier stable identifier initiative at http://cetafidentifiers.biowikifarm.net/wiki/Geneva_meeting). The purpose of CSPP is to provide a stable resource enabling preview functions in specimen portals. The CSPP is not meant to be comprehensive, which means that Linked Open (collection) Data implementations of CETAF instutions will usually provide much richer metadata with additional RDF-elements.
+
The {{abbr|CSPP}} is a minimal set of agreed ({{abbr|RDF}}) collection metadata elements implemented consistently across {{abbr|CETAF}} organisations (see [[Geneva meeting|minutes of the Geneva meeting]] of the {{abbr|ISTC}} stable identifier initiative). The purpose of CSPP is to provide a stable resource enabling preview functions in specimen portals. The CSPP is not meant to be comprehensive, which means that Linked Open (collection) Data implementations of CETAF institutions will usually provide much richer metadata with additional RDF-elements.
 +
__TOC__
  
 
== CSPP Elements ==
 
== CSPP Elements ==
  
{| class="wikitable"
+
{| class="wikitable vertical-align-top sortable"
 
|-
 
|-
! CSPP element !! Mandatory !! RDF resource URI !! Notes
+
! CSPP element  
 +
! Mandatory  
 +
! style="width:340px" |  {{abbr|RDF}} resource {{abbr|URI}} 
 +
! Notes
 
|-
 
|-
| title|| yes || http://purl.org/dc/terms/title || Mandatory. Collection may decide themselves on the content of the title element. This could usually be a scientific name (with or without authorship), but it could also contain additional information on collectors and projects for example.
+
| title|| yes || [http://purl.org/dc/terms/title <span style="color:black">http://purl.org/</span>dc<span style="color:black">/terms/</span>title] || Mandatory. Collection may decide themselves on the content of the title element. This could usually be a scientific name (with or without authorship), but it could also contain additional information on collectors and projects for example.
 
|-
 
|-
| kindOfMaterial || no || http://purl.org/dc/terms/type || The nature of the specimen. Example: herbarium sheet, fossil, conserved in alcohol
+
| kindOfMaterial || no || [http://purl.org/dc/terms/type <span style="color:black">http://purl.org/</span>dc<span style="color:black">/terms/</span>type] || The nature of the specimen. Example: herbarium sheet, fossil, conserved in alcohol
 
|-
 
|-
| scientificNameCurrent || no || http://rs.tdwg.org/dwc/terms/scientificName || The latest full scientific name, with authorship and date information if known.
+
| scientificNameCurrent || no || [http://rs.tdwg.org/dwc/terms/scientificName <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>scientificName] || The latest full scientific name, with authorship and date information if known.
 
|-
 
|-
| family || no || http://rs.tdwg.org/dwc/terms/family || The full scientific name of the family in which the taxon is classified.
+
| family || no || [http://rs.tdwg.org/dwc/terms/family <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>family] || The full scientific name of the family in which the taxon is classified.
 
|-
 
|-
| scientifcNameOriginal || no || http://rs.tdwg.org/dwc/terms/previousIdentifications || The original name appearing on the specimen.
+
| scientifcNameOriginal || no || [http://rs.tdwg.org/dwc/terms/previousIdentifications <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>previousIdentifications] || The original name appearing on the specimen.
 
|-
 
|-
| collectorNumber || no || http://rs.tdwg.org/dwc/terms/fieldNumber || An identifier given to the Occurrence at the time it was recorded. Often serves as a link between field notes and an Occurrence record, such as a specimen collector's number.
+
| collectorNumber || no || [http://rs.tdwg.org/dwc/terms/fieldNumber <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>fieldNumber] || An identifier given to the Occurrence at the time it was recorded. Often serves as a link between field notes and an Occurrence record, such as a specimen collector’s number.
 
|-
 
|-
| collectorName || no || http://rs.tdwg.org/dwc/terms/recordedBy || A list (concatenated and separated) of names of people, groups, or organizations responsible for recording the original Occurrence. The primary collector or observer, especially one who applies a personal identifier (recordNumber), should be listed first.
+
| collectorName || no || [http://rs.tdwg.org/dwc/terms/recordedBy <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>recordedBy] || A list (concatenated and separated) of names of people, groups, or organizations responsible for recording the original Occurrence. The primary collector or observer, especially one who applies a personal identifier (recordNumber), should be listed first.
 
|-
 
|-
| webscaledImageLink || no ||  http://rs.tdwg.org/dwc/terms/associatedMedia || Link to "nice" webscaled image.
+
| webscaledImageLink || no ||  [http://rs.tdwg.org/dwc/terms/associatedMedia <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>associatedMedia] || Link to “nice” webscaled image.
 
|-
 
|-
| latitude || no || http://rs.tdwg.org/dwc/terms/decimalLatitude || The geographic latitude (WGS84, in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are north of the Equator, negative values are south of it. Legal values lie between -90 and 90, inclusive.
+
| latitude || no || [http://rs.tdwg.org/dwc/terms/decimalLatitude <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>decimalLatitude] || The geographic latitude ({{abbr|WGS84}}, in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are north of the Equator, negative values are south of it. Legal values lie between -90 and 90, inclusive.
 
|-
 
|-
| longitude || no || http://rs.tdwg.org/dwc/terms/decimalLongitude || The geographic longitude (WGS84, in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are east of the Greenwich Meridian, negative values are west of it. Legal values lie between -180 and 180, inclusive.
+
| longitude || no || [http://rs.tdwg.org/dwc/terms/decimalLongitude <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>decimalLongitude] || The geographic longitude ({{abbr|WGS84}}, in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are east of the Greenwich Meridian, negative values are west of it. Legal values lie between -180 and 180, inclusive.
 
|-
 
|-
| isoCountry || no || http://rs.tdwg.org/dwc/terms/countryCode || The standard (ISO 3166-1 alpha-2) code for the country in which the specimen has been collected. Recommended best practice is to use ISO 3166-1-alpha-2 country codes.
+
| isoCountry || no || [http://rs.tdwg.org/dwc/terms/countryCode <span style="color:black">http://rs.tdwg.org/</span>dwc<span style="color:black">/terms/</span>countryCode] || The standard ({{abbr|ISO}} 3166-1 alpha-2) code for the country in which the specimen has been collected. Recommended best practice is to use [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 {{abbr|ISO}} 3166-1-alpha-2] country codes.
 
|-
 
|-
| collectionDate || no || http://purl.org/dc/terms/created || (Iso) date of the gathering event.
+
| collectionDate || no || [http://purl.org/dc/terms/created <span style="color:black">http://purl.org/</span>dc<span style="color:black">/terms/</span>created] || ({{abbr|ISO}}) date of the gathering event.
 
|-
 
|-
| sourceLink || no ||  http://purl.org/dc/terms/publisher || URI to a web page with information about the institution/collection/owner responsible for publishing the specimen.
+
| sourceLink || no ||  [http://purl.org/dc/terms/publisher <span style="color:black">http://purl.org/</span>dc<span style="color:black">/terms/</span>publisher] || {{abbr|URI}} to a web page with information about the institution/collection/owner responsible for publishing the specimen.
 
|}
 
|}
  
== Example CSPP-compliant RDF-document ==
+
== CSPP-compliant {{abbr|RDF}}-documents {{anchor|example CSPP-compliant RDF}} ==
<rdf:RDF>
+
 
:<nowiki><!-- Metadata about this metadata document --></nowiki>
+
An example with all recommended elements would look like this:
:<rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
+
<syntaxhighlight lang="xml" style="font-size:smaller;">
::<dc:creator>Simple PHP RDF Script implemented by Felix Hilgerdenaar (BGBM)</dc:creator>
+
<?xml version="1.0" encoding="utf-8"?>
::<dc:created>2016-01-08T09:32:46+01:00</dc:created>
+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
:</rdf:Description>
+
    xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
:<nowiki><!-- Metadata about this specimen --></nowiki>
+
    xmlns:dc="http://purl.org/dc/terms/">
:<rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
+
 
::<dc:title>Erysimum salangense Polatschek & Rech.f.</dc:title>
+
  <!-- Because this very RDF document got to by a redirect (HTTP response code 303 (=See Other)) this is only metadata about the document, the CETAF-ID is comming later below -->
::<dc:description>A herbarium specimen of Erysimum salangense Polatschek & Rech.f. collected by K. H. Rechinger</dc:description>
+
  <rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
::<dc:creator>K. H. Rechinger</dc:creator>
+
    <!-- relate RDF document to the CETAF-ID (rdf:Description below) -->
::<dc:created>1967-07-14</dc:created>
+
    <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
::<dc:type>Specimen</dc:type>
+
    <!-- the date time this very RDF file was created -->
::<dc:publisher>BGBM</dc:publisher>
+
    <dc:created>2019-11-11T15:41:25+01:00</dc:created>
::<dwc:SampleID>http://herbarium.bgbm.org/object/B100068798</dwc:SampleID>
+
  </rdf:Description>
::<dc:modified>Nov 26 2015 11:48:21:167AM</dc:modified>
+
 
::<dwc:basisOfRecord>Specimen</dwc:basisOfRecord>
+
  <!--This is metadata about this specimen and the originally requested CETAF-ID -->
::<dwc:CollectionCode>B</dwc:CollectionCode>
+
  <rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
::<dwc:CatalogNumber>B 10 0068798</dwc:CatalogNumber>
+
    <!--  CSPP element: title (mandatory)  -->
::<dwc:scientificName>Erysimum salangense Polatschek & Rech.f.</dwc:scientificName>
+
    <dc:title>Erysimum salangense Polatschek &amp; Rech.f.</dc:title>
::<dwc:previousIdentifications>Erysimum salangense Polatschek & Rech.f.</dwc:previousIdentifications>
+
    <!--  CSPP element: collectionDate  -->
::<dwc:family>CRUCIFERAE</dwc:family>
+
    <dc:created>1967-07-14</dc:created>
::<dwc:genus>Erysimum</dwc:genus>
+
    <!--  CSPP element: kindOfMaterial  -->
::<dwc:specificEpithet>salangense</dwc:specificEpithet>
+
    <dc:type>Specimen</dc:type>
::<dwc:higherGeography>Afghanistan</dwc:higherGeography>
+
    <!--  CSPP element: sourceLink  -->
::<dwc:countryCode>Afghanistan</dwc:countryCode>
+
    <dc:publisher rdf:resource="https://www.bgbm.org" />
::<dwc:Locality>Afghanistan: NE- Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.VII.1967, Leg.: K. H. Rechinger 37047.</dwc:Locality>
+
    <!--  CSPP elements: scientificNameCurrent, scientifcNameOriginal, family  -->
::<dwc:decimalLongitude>69.033332824707</dwc:decimalLongitude>
+
    <dwc:scientificName>Erysimum salangense Polatschek &amp; Rech.f.</dwc:scientificName>
::<dwc:decimalLatitude>35.366664886475</dwc:decimalLatitude>
+
    <dwc:previousIdentifications>Erysimum salangense Polatschek &amp; Rech.f.</dwc:previousIdentifications>
::<dwc:eventDate>1967-07-14</dwc:eventDate>
+
    <dwc:family>CRUCIFERAE</dwc:family>
::<dwc:fieldNumber>37047</dwc:recordNumber>
+
    <!--  CSPP element: isoCountry  -->
::<dwc:recordedBy>K. H. Rechinger</dwc:recordedBy>
+
    <dwc:countryCode>AF</dwc:countryCode>
::<dwc:associatedMedia>http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg</dwc:associatedMedia>
+
    <!--  CSPP element: longitude  -->
:</rdf:Description>
+
    <dwc:decimalLongitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">69.033332824707</dwc:decimalLongitude>
 +
    <!--  CSPP element: latitude  -->
 +
    <dwc:decimalLatitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">35.366664886475</dwc:decimalLatitude>
 +
    <!--   CSPP element: collectorName  -->
 +
    <dwc:recordedBy>Rechinger,K.H.</dwc:recordedBy>
 +
    <!--  CSPP element: collectorNumber  -->
 +
    <dwc:fieldNumber>37047</dwc:fieldNumber>
 +
    <!--  CSPP element: webscaledImageLink  -->
 +
    <dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/>
 +
  </rdf:Description>
 
</rdf:RDF>
 
</rdf:RDF>
 +
</syntaxhighlight>
 +
 +
A more complex RDF—including other data sources and image data—is the example for the {{abbr|CETAF-ID}} http://herbarium.bgbm.org/object/B100068798 and it can contain the following:
 +
 +
<syntaxhighlight lang="xml" style="font-size:smaller;">
 +
<?xml version="1.0" encoding="utf-8"?>
 +
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 +
    xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
 +
    xmlns:dwciri="http://rs.tdwg.org/dwc/iri/"
 +
    xmlns:dc="http://purl.org/dc/terms/"
 +
    xmlns:owl="http://www.w3.org/2002/07/owl#">
 +
 +
  <!--This is metadata about this very RDF document (got to by redirect via HTTP response code 303 (=See Other)) -->
 +
  <rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
 +
    <!-- relate RDF document to the CETAF-ID (rdf:Description below) -->
 +
    <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
 +
    <!-- the date time this very RDF file was created -->
 +
    <dc:created>2019-11-11T15:41:25+01:00</dc:created>
 +
  </rdf:Description>
 +
 +
  <!--This is metadata about this specimen and the originally requested CETAF-ID -->
 +
  <rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
 +
    <!--  CSPP element: title (mandatory)  -->
 +
    <dc:title>Erysimum salangense Polatschek &amp; Rech.f.</dc:title>
 +
    <dc:description>A herbarium specimen of Erysimum salangense Polatschek &amp; Rech.f. collected by Rechinger,K.H.</dc:description>
 +
    <dc:creator>Rechinger, K.H.</dc:creator>
 +
    <!--  CSPP element: collectionDate  -->
 +
    <dc:created>1967-07-14</dc:created>
 +
    <!--  CSPP element: kindOfMaterial  -->
 +
    <dc:type>Specimen</dc:type>
 +
    <!--  CSPP element: sourceLink  -->
 +
    <dc:publisher rdf:resource="https://www.bgbm.org" />
 +
    <dwc:materialSampleID>http://herbarium.bgbm.org/object/B100068798</dwc:materialSampleID>
 +
    <dwc:basisOfRecord>PreservedSpecimen</dwc:basisOfRecord>
 +
    <dwc:collectionCode>B</dwc:collectionCode>
 +
    <dwc:catalogNumber>B 10 0068798</dwc:catalogNumber>
 +
    <!--  CSPP element: scientificNameCurrent  -->
 +
    <dwc:scientificName>Erysimum salangense Polatschek &amp; Rech.f.</dwc:scientificName>
 +
    <!--  CSPP element: scientifcNameOriginal  -->
 +
    <dwc:previousIdentifications>Erysimum salangense Polatschek &amp; Rech.f.</dwc:previousIdentifications>
 +
    <dwc:family>CRUCIFERAE</dwc:family>
 +
    <dwc:genus>Erysimum</dwc:genus>
 +
    <dwc:specificEpithet>salangense</dwc:specificEpithet>
 +
    <dwc:country>Afghanistan</dwc:country>
 +
    <!--  CSPP element: isoCountry  -->
 +
    <dwc:countryCode>AF</dwc:countryCode>
 +
    <dwc:locality>
 +
      Afghanistan: NE-Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.07.1967, Leg.: K. H. Rechinger 37047.
 +
    </dwc:locality>
 +
    <!--  CSPP element: longitude  -->
 +
    <dwc:decimalLongitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">69.033332824707</dwc:decimalLongitude>
 +
    <!--  CSPP element: latitude  -->
 +
    <dwc:decimalLatitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">35.366664886475</dwc:decimalLatitude>
 +
    <dwc:eventDate>1967-07-14</dwc:eventDate>
 +
    <dwc:recordNumber>37047</dwc:recordNumber>
 +
 +
    <!--  CSPP element: collectorName  -->
 +
    <dwc:recordedBy>Rechinger,K.H.</dwc:recordedBy>
 +
    <dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/><!--  Internationalized Resource Identifier (IRI) of recordedBy  -->
 +
    <!--  CSPP element: collectorNumber  -->
 +
    <dwc:fieldNumber>37047</dwc:fieldNumber>   
 +
 +
    <!--  CSPP element: webscaledImageLink  -->
 +
    <dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/>
 +
 +
    <!-- Experimental: add a relation to media data as iiif (see https://iiif.io) -->
 +
    <dc:relation>
 +
      <rdf:Description rdf:about="http://herbarium.bgbm.org/iiif/B100068798">
 +
        <dc:identifier rdf:resource="http://herbarium.bgbm.org/iiif/B100068798"/>
 +
        <dc:type rdf:resource="http://iiif.io/api/presentation/3#Manifest"/>
 +
        <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
 +
        <dc:format>application/ld+json</dc:format>
 +
        <dc:description xml:lang="en">A IIIF resource for this specimen.</dc:description>
 +
          <dc:created/>
 +
        </rdf:Description>
 +
    </dc:relation>
 +
  </rdf:Description>
 +
 +
  <rdf:Description rdf:about="http://www.wikidata.org/entity/Q78738"><!-- further detail above dwciri:recordedBy -->
 +
    <owl:sameAs rdf:resource="http://purl.oclc.org/net/edu.harvard.huh/guid/uuid/d5fea488-5786-4106-af90-396ef452c3aa"/>
 +
    <owl:sameAs rdf:resource="https://viaf.org/viaf/100383596/"/>
 +
  </rdf:Description>
 +
</rdf:RDF>
 +
</syntaxhighlight>
 +
 +
Note that …
 +
* <code>rdf:Description</code> first describes the very RDF resource (got to by redirect) and it relates to the requested {{abbr|CETAF-ID}} by <code>dc:subject</code>
 +
* all the following <code>rdf:Description</code> elaborate the {{abbr|CSPP}}-details and more related properties to this species data (images, other same data objects etc.)
 +
*: ''Other Data:'' for instance <code>dwciri:recordedBy</code> points to a WikiData {{abbr|IRI}} resource
 +
*:* this is further described by another <code>rdf:Description</code> which in itself points via <code>owl:sameAs</code> to other resources to be equal as the WikiData resource (this illustrates perhaps better read [[#RDF to TriG Format|in TriG format]])
 +
*:* note that the whole <tt>dwciri</tt> namespace is intended for use with non-literal objects and the <tt>dwciri:recordedBy</tt> here has the same meaning as <tt>dwc:recordedBy</tt> and can be repeatable as well ''but'' points to an {{abbr|IRI}}-reference object instead of being a literal string value.
 +
*: ''Media:'' besides the “nice” webscaled image (<code>dwc:associatedMedia</code>) …
 +
*:* … there is also one <code>dc:relation</code> defined again in a <code>rdf:Description</code> with details for software clients that understand triple i-f (iiif—International Image Interoperability Framework https://iiif.io)
 +
*:* … there could also be further <code>dc:relation</code> after the first one if it needs to, containing other relations
 +
 +
=== Additional recommended data terms ===
 +
 +
{| class="booktabledotted vertical-align-top"
 +
|-
 +
! Data Term !! {{abbr|RDF}} resource {{abbr|URI}} !! Notes
 +
|-
 +
| <code>dwc:institutionCode</code>
 +
| http://rs.tdwg.org/dwc/terms/institutionCode
 +
| The name (or acronym) in use by the institution having custody of the object(s) or information referred to in the record. ''Examples:'' MVZ, BGBM, CLO, UCMP
 +
|-
 +
| <code>dwc:institutionID</code>
 +
| http://rs.tdwg.org/dwc/terms/institutionID
 +
| An identifier for the institution having custody of the object(s) or information referred to in the record. ''Examples:'' the ROR ID like <code>https://ror.org/00bv4cx53</code> (here for {{abbr|BGBM}})
 +
|-
 +
| <code>dwc:basisOfRecord</code> || http://rs.tdwg.org/dwc/terms/basisOfRecord || The specific nature of the data record. ''Comments:'' Recommended best practice is to use the standard label of one of the Darwin Core classes. ''Examples:'' [http://rs.tdwg.org/dwc/terms/PreservedSpecimen PreservedSpecimen] or [http://rs.tdwg.org/dwc/terms/FossilSpecimen FossilSpecimen]
 +
|-
 +
| <code>dwciri:recordedBy</code> || http://rs.tdwg.org/dwc/iri/recordedBy || A person, group, or organization responsible for recording the original Occurrence. (Note that terms in the <tt>dwciri</tt> namespace are intended to be used in RDF with non-literal objects). Example: <syntaxhighlight lang="XML" style="font-size:smaller;" inline><dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/></syntaxhighlight>—this is the {{abbr|IRI}}-notation equivalent to the string notation of <syntaxhighlight lang="XML" style="font-size:smaller;" inline><dwc:recordedBy>Rechinger, K.H.</dwc:recordedBy></syntaxhighlight>
 +
|}
 +
 +
=== Conversion into other formats (help for development) ===
 +
 +
For the purpose of developping the meta data eventually into {{abbr|RDF}} you can checked your RDF online by https://www.w3.org/RDF/Validator/ or use the command line tools of Apache Jena ([https://jena.apache.org/documentation/io/ jena.apache.org]) which provide useful commands to parse, check and convert from one format to another—this can also help for readability.
 +
 +
<div class="mw-collapsible mw-collapsed">
 +
{{anchor|RDF to TriG Format}}'''RDF to TriG Format ({{abbr|CLI}}: <code>trig</code>)'''&nbsp;— See [https://www.w3.org/TR/trig/ TriG Documentation (www.w3.org)]. This format can be read like sentences with a final dot marking the end of the statements; additional elements are separated by semicolon. (toggle on the right to see hidden content)
 +
<div class="mw-collapsible-content" style="padding-left:1em;padding-bottom:1ex;border-left:1px dotted gray;border-bottom:1px solid gray;">
 +
To convert it use in {{abbr|CLI}}
 +
turtle --output=trig B100068798-Wiki-Example.rdf > B100068798-Wiki-Example.rdf.trig 2> B100068798-Wiki-Example.rdf.error.log
 +
If you want to generate RDF from TriG back or have developed your meta data in TriG and want to generate RDF, use
 +
trig --output=rdf/xml B100068798-Wiki-Example.rdf.trig
 +
The RDF from above converted into TriG format looks (of course without line numbers) like the following (<code style="background-color:#ffffcc;">yellow</code> indicates lines that are related):
 +
<syntaxhighlight class="lineno-gray" lang="text" style="font-size:smaller;" line highlight="8,11,36,38,40,48" >
 +
@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 +
@prefix dwc:  <http://rs.tdwg.org/dwc/terms/> .
 +
@prefix dwciri:  <http://rs.tdwg.org/dwc/iri/> .
 +
@prefix dc:  <http://purl.org/dc/terms/> .
 +
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
 +
 +
<http://herbarium.bgbm.org/data/rdf/B100068798>
 +
        dc:subject  <http://herbarium.bgbm.org/object/B100068798> ;
 +
        dc:created  "2019-11-11T15:41:25+01:00" .
 +
 +
<http://herbarium.bgbm.org/object/B100068798>
 +
        dc:title                    "Erysimum salangense Polatschek & Rech.f." ;
 +
        dc:description              "A herbarium specimen of Erysimum salangense Polatschek & Rech.f. collected by Rechinger,K.H." ;
 +
        dc:creator                  "Rechinger, K.H." ;
 +
        dc:created                  "1967-07-14" ;
 +
        dc:type                      "Specimen" ;
 +
        dc:publisher                <https://www.bgbm.org> ;
 +
        dwc:materialSampleID        "http://herbarium.bgbm.org/object/B100068798" ;
 +
        dwc:basisOfRecord            "Specimen" ;
 +
        dwc:collectionCode          "B" ;
 +
        dwc:catalogNumber            "B 10 0068798" ;
 +
        dwc:scientificName          "Erysimum salangense Polatschek & Rech.f." ;
 +
        dwc:previousIdentifications  "Erysimum salangense Polatschek & Rech.f." ;
 +
        dwc:family                  "CRUCIFERAE" ;
 +
        dwc:genus                    "Erysimum" ;
 +
        dwc:specificEpithet          "salangense" ;
 +
        dwc:country                  "Afghanistan" ;
 +
        dwc:countryCode              "AF" ;
 +
        dwc:locality                "\n      Afghanistan: NE-Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.07.1967, Leg.: K. H. Rechinger 37047.\n    " ;
 +
        dwc:decimalLongitude        "69.033332824707" ;
 +
        dwc:decimalLatitude          "35.366664886475" ;
 +
        dwc:eventDate                "1967-07-14" ;
 +
        dwc:recordNumber            "37047" ;
 +
        dwc:recordedBy              "Rechinger,K.H." ;
 +
        dwc:fieldNumber              "37047" ;
 +
        dwciri:recordedBy            <http://www.wikidata.org/entity/Q78738> ;
 +
        dwc:associatedMedia          <http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg> ;
 +
        dc:relation                  <http://herbarium.bgbm.org/iiif/B100068798> .
 +
 +
<http://herbarium.bgbm.org/iiif/B100068798>
 +
        dc:identifier  <http://herbarium.bgbm.org/iiif/B100068798> ;
 +
        dc:type        <http://iiif.io/api/presentation/3#Manifest> ;
 +
        dc:subject      <http://herbarium.bgbm.org/object/B100068798> ;
 +
        dc:format      "application/ld+json" ;
 +
        dc:description  "A IIIF resource for this specimen."@en ;
 +
        dc:created      "" .
 +
 +
<http://www.wikidata.org/entity/Q78738>
 +
        owl:sameAs  <http://purl.oclc.org/net/edu.harvard.huh/guid/uuid/d5fea488-5786-4106-af90-396ef452c3aa> ;
 +
        owl:sameAs  <https://viaf.org/viaf/100383596/> .
 +
</syntaxhighlight>
 +
</div>
 +
</div>
 +
 +
<div class="mw-collapsible mw-collapsed">
 +
'''RDF to Simple Triples ({{abbr|CLI}}: <code>rdfparse</code>)'''&nbsp;— See [https://www.w3.org/TR/2014/REC-turtle-20140225/#simple-triples Documentation of Simple Triples of Turtle format (www.w3.org)]. This step converts or resolves RDF into <code>subject</code>—<code>predicate</code>—<code>object</code>. (toggle on the right to see hidden content)
 +
<div class="mw-collapsible-content" style="padding-left:1em;padding-bottom:1ex;border-left:1px dotted gray;border-bottom:1px solid gray;">
 +
The RDF-example provided above can be checked using <code>turtle  B100068798-Wiki-Example.rdf</code>
 +
<pre style="font-size:smaller;">
 +
<http://herbarium.bgbm.org/data/rdf/B100068798> <http://purl.org/dc/terms/subject> <http://herbarium.bgbm.org/object/B100068798> .
 +
<http://herbarium.bgbm.org/data/rdf/B100068798> <http://purl.org/dc/terms/created> "2019-11-11T15:41:25+01:00" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/title> "Erysimum salangense Polatschek & Rech.f." .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/description> "A herbarium specimen of Erysimum salangense Polatschek & Rech.f. collected by Rechinger,K.H." .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/creator> "Rechinger, K.H." .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/created> "1967-07-14" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/type> "Specimen" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/publisher> <https://www.bgbm.org> .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/materialSampleID> "http://herbarium.bgbm.org/object/B100068798" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/basisOfRecord> "Specimen" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/collectionCode> "B" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/catalogNumber> "B 10 0068798" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/scientificName> "Erysimum salangense Polatschek & Rech.f." .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/previousIdentifications> "Erysimum salangense Polatschek & Rech.f." .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/family> "CRUCIFERAE" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/genus> "Erysimum" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/specificEpithet> "salangense" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/country> "Afghanistan" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/countryCode> "AF" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/locality> "\n      Afghanistan: NE-Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.07.1967, Leg.: K. H. Rechinger 37047.\n    " .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/decimalLongitude> "69.033332824707" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/decimalLatitude> "35.366664886475" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/eventDate> "1967-07-14" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/recordNumber> "37047" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/recordedBy> "Rechinger,K.H." .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/fieldNumber> "37047" .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/iri/recordedBy> <http://www.wikidata.org/entity/Q78738> .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/associatedMedia> <http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg> .
 +
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/relation> <http://herbarium.bgbm.org/iiif/B100068798> .
 +
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/identifier> <http://herbarium.bgbm.org/iiif/B100068798> .
 +
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/type> <http://iiif.io/api/presentation/3#Manifest> .
 +
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/subject> <http://herbarium.bgbm.org/object/B100068798> .
 +
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/format> "application/ld+json" .
 +
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/description> "A IIIF resource for this specimen."@en .
 +
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/created> "" .
 +
<http://www.wikidata.org/entity/Q78738> <http://www.w3.org/2002/07/owl/sameAs> <http://purl.oclc.org/net/edu.harvard.huh/guid/uuid/d5fea488-5786-4106-af90-396ef452c3aa> .
 +
<http://www.wikidata.org/entity/Q78738> <http://www.w3.org/2002/07/owl/sameAs> <https://viaf.org/viaf/100383596/> .
 +
</pre>
 +
</div>
 +
</div>
 +
 +
== Further Questions and Discussion ==
 +
 +
* see [[{{TALKPAGENAME}}#remarks on the CSPP Mathias Dillen 20200604|this Talk page: “A few remarks on the CSPP”]]
 +
* [[Talk: Splitting of collection specimens (Guide best practices)]]
 +
* [[Talk: CETAF Specimen Preview Profile]] (older)
 +
* [[Questions, problem solutions and further discussions (Guide of best practices)]]
 +
 +
 +
[[Category: Guide for CETAF Stable Identifiers]]

Latest revision as of 10:12, 8 September 2021

The CSPP is a minimal set of agreed (RDF) collection metadata elements implemented consistently across CETAF organisations (see minutes of the Geneva meeting of the ISTC stable identifier initiative). The purpose of CSPP is to provide a stable resource enabling preview functions in specimen portals. The CSPP is not meant to be comprehensive, which means that Linked Open (collection) Data implementations of CETAF institutions will usually provide much richer metadata with additional RDF-elements.

CSPP Elements

CSPP element Mandatory RDF resource URI Notes
title yes http://purl.org/dc/terms/title Mandatory. Collection may decide themselves on the content of the title element. This could usually be a scientific name (with or without authorship), but it could also contain additional information on collectors and projects for example.
kindOfMaterial no http://purl.org/dc/terms/type The nature of the specimen. Example: herbarium sheet, fossil, conserved in alcohol
scientificNameCurrent no http://rs.tdwg.org/dwc/terms/scientificName The latest full scientific name, with authorship and date information if known.
family no http://rs.tdwg.org/dwc/terms/family The full scientific name of the family in which the taxon is classified.
scientifcNameOriginal no http://rs.tdwg.org/dwc/terms/previousIdentifications The original name appearing on the specimen.
collectorNumber no http://rs.tdwg.org/dwc/terms/fieldNumber An identifier given to the Occurrence at the time it was recorded. Often serves as a link between field notes and an Occurrence record, such as a specimen collector’s number.
collectorName no http://rs.tdwg.org/dwc/terms/recordedBy A list (concatenated and separated) of names of people, groups, or organizations responsible for recording the original Occurrence. The primary collector or observer, especially one who applies a personal identifier (recordNumber), should be listed first.
webscaledImageLink no http://rs.tdwg.org/dwc/terms/associatedMedia Link to “nice” webscaled image.
latitude no http://rs.tdwg.org/dwc/terms/decimalLatitude The geographic latitude (WGS84, in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are north of the Equator, negative values are south of it. Legal values lie between -90 and 90, inclusive.
longitude no http://rs.tdwg.org/dwc/terms/decimalLongitude The geographic longitude (WGS84, in decimal degrees, using the spatial reference system given in geodeticDatum) of the geographic center of a Location. Positive values are east of the Greenwich Meridian, negative values are west of it. Legal values lie between -180 and 180, inclusive.
isoCountry no http://rs.tdwg.org/dwc/terms/countryCode The standard (ISO 3166-1 alpha-2) code for the country in which the specimen has been collected. Recommended best practice is to use ISO 3166-1-alpha-2 country codes.
collectionDate no http://purl.org/dc/terms/created (ISO) date of the gathering event.
sourceLink no http://purl.org/dc/terms/publisher URI to a web page with information about the institution/collection/owner responsible for publishing the specimen.

CSPP-compliant RDF-documents

An example with all recommended elements would look like this:

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
    xmlns:dc="http://purl.org/dc/terms/">

  <!-- Because this very RDF document got to by a redirect (HTTP response code 303 (=See Other)) this is only metadata about the document, the CETAF-ID is comming later below -->
  <rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
    <!-- relate RDF document to the CETAF-ID (rdf:Description below) -->
    <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
    <!-- the date time this very RDF file was created -->
    <dc:created>2019-11-11T15:41:25+01:00</dc:created>
  </rdf:Description>

  <!--This is metadata about this specimen and the originally requested CETAF-ID -->
  <rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
    <!--   CSPP element: title (mandatory)  -->
    <dc:title>Erysimum salangense Polatschek &amp; Rech.f.</dc:title>
    <!--   CSPP element: collectionDate   -->
    <dc:created>1967-07-14</dc:created>
    <!--   CSPP element: kindOfMaterial   -->
    <dc:type>Specimen</dc:type>
    <!--   CSPP element: sourceLink   -->
    <dc:publisher rdf:resource="https://www.bgbm.org" />
    <!--   CSPP elements: scientificNameCurrent, scientifcNameOriginal, family  -->
    <dwc:scientificName>Erysimum salangense Polatschek &amp; Rech.f.</dwc:scientificName>
    <dwc:previousIdentifications>Erysimum salangense Polatschek &amp; Rech.f.</dwc:previousIdentifications>
    <dwc:family>CRUCIFERAE</dwc:family>
    <!--   CSPP element: isoCountry   -->
    <dwc:countryCode>AF</dwc:countryCode>
    <!--   CSPP element: longitude   -->
    <dwc:decimalLongitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">69.033332824707</dwc:decimalLongitude>
    <!--   CSPP element: latitude   -->
    <dwc:decimalLatitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">35.366664886475</dwc:decimalLatitude>
    <!--   CSPP element: collectorName   -->
    <dwc:recordedBy>Rechinger,K.H.</dwc:recordedBy>
    <!--   CSPP element: collectorNumber   -->
    <dwc:fieldNumber>37047</dwc:fieldNumber>
    <!--   CSPP element: webscaledImageLink   -->
    <dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/>
  </rdf:Description>
</rdf:RDF>

A more complex RDF—including other data sources and image data—is the example for the CETAF-ID http://herbarium.bgbm.org/object/B100068798 and it can contain the following:

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
    xmlns:dwciri="http://rs.tdwg.org/dwc/iri/"
    xmlns:dc="http://purl.org/dc/terms/"
    xmlns:owl="http://www.w3.org/2002/07/owl#">

  <!--This is metadata about this very RDF document (got to by redirect via HTTP response code 303 (=See Other)) -->
  <rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
    <!-- relate RDF document to the CETAF-ID (rdf:Description below) -->
    <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
    <!-- the date time this very RDF file was created -->
    <dc:created>2019-11-11T15:41:25+01:00</dc:created>
  </rdf:Description>

  <!--This is metadata about this specimen and the originally requested CETAF-ID -->
  <rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
    <!--   CSPP element: title (mandatory)  -->
    <dc:title>Erysimum salangense Polatschek &amp; Rech.f.</dc:title>
    <dc:description>A herbarium specimen of Erysimum salangense Polatschek &amp; Rech.f. collected by Rechinger,K.H.</dc:description>
    <dc:creator>Rechinger, K.H.</dc:creator>
    <!--   CSPP element: collectionDate   -->
    <dc:created>1967-07-14</dc:created>
    <!--   CSPP element: kindOfMaterial   -->
    <dc:type>Specimen</dc:type>
    <!--   CSPP element: sourceLink   -->
    <dc:publisher rdf:resource="https://www.bgbm.org" />
    <dwc:materialSampleID>http://herbarium.bgbm.org/object/B100068798</dwc:materialSampleID>
    <dwc:basisOfRecord>PreservedSpecimen</dwc:basisOfRecord>
    <dwc:collectionCode>B</dwc:collectionCode>
    <dwc:catalogNumber>B 10 0068798</dwc:catalogNumber>
    <!--   CSPP element: scientificNameCurrent   -->
    <dwc:scientificName>Erysimum salangense Polatschek &amp; Rech.f.</dwc:scientificName>
    <!--   CSPP element: scientifcNameOriginal   -->
    <dwc:previousIdentifications>Erysimum salangense Polatschek &amp; Rech.f.</dwc:previousIdentifications>
    <dwc:family>CRUCIFERAE</dwc:family>
    <dwc:genus>Erysimum</dwc:genus>
    <dwc:specificEpithet>salangense</dwc:specificEpithet>
    <dwc:country>Afghanistan</dwc:country>
    <!--   CSPP element: isoCountry   -->
    <dwc:countryCode>AF</dwc:countryCode>
    <dwc:locality>
      Afghanistan: NE-Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.07.1967, Leg.: K. H. Rechinger 37047.
    </dwc:locality>
    <!--   CSPP element: longitude   -->
    <dwc:decimalLongitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">69.033332824707</dwc:decimalLongitude>
    <!--   CSPP element: latitude   -->
    <dwc:decimalLatitude rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">35.366664886475</dwc:decimalLatitude>
    <dwc:eventDate>1967-07-14</dwc:eventDate>
    <dwc:recordNumber>37047</dwc:recordNumber>

    <!--   CSPP element: collectorName   -->
    <dwc:recordedBy>Rechinger,K.H.</dwc:recordedBy>
    <dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/><!--  Internationalized Resource Identifier (IRI) of recordedBy   -->
    <!--   CSPP element: collectorNumber   -->
    <dwc:fieldNumber>37047</dwc:fieldNumber>    

    <!--   CSPP element: webscaledImageLink   -->
    <dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/>

    <!-- Experimental: add a relation to media data as iiif (see https://iiif.io) -->
    <dc:relation>
      <rdf:Description rdf:about="http://herbarium.bgbm.org/iiif/B100068798">
        <dc:identifier rdf:resource="http://herbarium.bgbm.org/iiif/B100068798"/>
        <dc:type rdf:resource="http://iiif.io/api/presentation/3#Manifest"/>
        <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
        <dc:format>application/ld+json</dc:format>
        <dc:description xml:lang="en">A IIIF resource for this specimen.</dc:description>
          <dc:created/>
        </rdf:Description>
    </dc:relation>
  </rdf:Description>

  <rdf:Description rdf:about="http://www.wikidata.org/entity/Q78738"><!-- further detail above dwciri:recordedBy -->
    <owl:sameAs rdf:resource="http://purl.oclc.org/net/edu.harvard.huh/guid/uuid/d5fea488-5786-4106-af90-396ef452c3aa"/>
    <owl:sameAs rdf:resource="https://viaf.org/viaf/100383596/"/>
  </rdf:Description>
</rdf:RDF>

Note that …

  • rdf:Description first describes the very RDF resource (got to by redirect) and it relates to the requested CETAF-ID by dc:subject
  • all the following rdf:Description elaborate the CSPP-details and more related properties to this species data (images, other same data objects etc.)
    Other Data: for instance dwciri:recordedBy points to a WikiData IRI resource
    •  this is further described by another rdf:Description which in itself points via owl:sameAs to other resources to be equal as the WikiData resource (this illustrates perhaps better read in TriG format)
    • note that the whole dwciri namespace is intended for use with non-literal objects and the dwciri:recordedBy here has the same meaning as dwc:recordedBy and can be repeatable as well but points to an IRI-reference object instead of being a literal string value.
    Media: besides the “nice” webscaled image (dwc:associatedMedia) …
    • … there is also one dc:relation defined again in a rdf:Description with details for software clients that understand triple i-f (iiif—International Image Interoperability Framework https://iiif.io)
    • … there could also be further dc:relation after the first one if it needs to, containing other relations

Additional recommended data terms

Data Term RDF resource URI Notes
dwc:institutionCode http://rs.tdwg.org/dwc/terms/institutionCode The name (or acronym) in use by the institution having custody of the object(s) or information referred to in the record. Examples: MVZ, BGBM, CLO, UCMP
dwc:institutionID http://rs.tdwg.org/dwc/terms/institutionID An identifier for the institution having custody of the object(s) or information referred to in the record. Examples: the ROR ID like https://ror.org/00bv4cx53 (here for BGBM)
dwc:basisOfRecord http://rs.tdwg.org/dwc/terms/basisOfRecord The specific nature of the data record. Comments: Recommended best practice is to use the standard label of one of the Darwin Core classes. Examples: PreservedSpecimen or FossilSpecimen
dwciri:recordedBy http://rs.tdwg.org/dwc/iri/recordedBy A person, group, or organization responsible for recording the original Occurrence. (Note that terms in the dwciri namespace are intended to be used in RDF with non-literal objects). Example: <dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/>—this is the IRI-notation equivalent to the string notation of <dwc:recordedBy>Rechinger, K.H.</dwc:recordedBy>

Conversion into other formats (help for development)

For the purpose of developping the meta data eventually into RDF you can checked your RDF online by https://www.w3.org/RDF/Validator/ or use the command line tools of Apache Jena (jena.apache.org) which provide useful commands to parse, check and convert from one format to another—this can also help for readability.

RDF to TriG Format (CLI: trig) — See TriG Documentation (www.w3.org). This format can be read like sentences with a final dot marking the end of the statements; additional elements are separated by semicolon. (toggle on the right to see hidden content)

To convert it use in CLI

turtle --output=trig B100068798-Wiki-Example.rdf > B100068798-Wiki-Example.rdf.trig 2> B100068798-Wiki-Example.rdf.error.log

If you want to generate RDF from TriG back or have developed your meta data in TriG and want to generate RDF, use

trig --output=rdf/xml B100068798-Wiki-Example.rdf.trig

The RDF from above converted into TriG format looks (of course without line numbers) like the following (yellow indicates lines that are related):

 1 @prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 2 @prefix dwc:  <http://rs.tdwg.org/dwc/terms/> .
 3 @prefix dwciri:  <http://rs.tdwg.org/dwc/iri/> .
 4 @prefix dc:  <http://purl.org/dc/terms/> .
 5 @prefix owl:  <http://www.w3.org/2002/07/owl#> .
 6 
 7 <http://herbarium.bgbm.org/data/rdf/B100068798>
 8         dc:subject  <http://herbarium.bgbm.org/object/B100068798> ;
 9         dc:created  "2019-11-11T15:41:25+01:00" .
10 
11 <http://herbarium.bgbm.org/object/B100068798>
12         dc:title                     "Erysimum salangense Polatschek & Rech.f." ;
13         dc:description               "A herbarium specimen of Erysimum salangense Polatschek & Rech.f. collected by Rechinger,K.H." ;
14         dc:creator                   "Rechinger, K.H." ;
15         dc:created                   "1967-07-14" ;
16         dc:type                      "Specimen" ;
17         dc:publisher                 <https://www.bgbm.org> ;
18         dwc:materialSampleID         "http://herbarium.bgbm.org/object/B100068798" ;
19         dwc:basisOfRecord            "Specimen" ;
20         dwc:collectionCode           "B" ;
21         dwc:catalogNumber            "B 10 0068798" ;
22         dwc:scientificName           "Erysimum salangense Polatschek & Rech.f." ;
23         dwc:previousIdentifications  "Erysimum salangense Polatschek & Rech.f." ;
24         dwc:family                   "CRUCIFERAE" ;
25         dwc:genus                    "Erysimum" ;
26         dwc:specificEpithet          "salangense" ;
27         dwc:country                  "Afghanistan" ;
28         dwc:countryCode              "AF" ;
29         dwc:locality                 "\n      Afghanistan: NE-Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.07.1967, Leg.: K. H. Rechinger 37047.\n    " ;
30         dwc:decimalLongitude         "69.033332824707" ;
31         dwc:decimalLatitude          "35.366664886475" ;
32         dwc:eventDate                "1967-07-14" ;
33         dwc:recordNumber             "37047" ;
34         dwc:recordedBy               "Rechinger,K.H." ;
35         dwc:fieldNumber              "37047" ;
36         dwciri:recordedBy            <http://www.wikidata.org/entity/Q78738> ;
37         dwc:associatedMedia          <http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg> ;
38         dc:relation                  <http://herbarium.bgbm.org/iiif/B100068798> .
39 
40 <http://herbarium.bgbm.org/iiif/B100068798>
41         dc:identifier   <http://herbarium.bgbm.org/iiif/B100068798> ;
42         dc:type         <http://iiif.io/api/presentation/3#Manifest> ;
43         dc:subject      <http://herbarium.bgbm.org/object/B100068798> ;
44         dc:format       "application/ld+json" ;
45         dc:description  "A IIIF resource for this specimen."@en ;
46         dc:created      "" .
47 
48 <http://www.wikidata.org/entity/Q78738>
49         owl:sameAs  <http://purl.oclc.org/net/edu.harvard.huh/guid/uuid/d5fea488-5786-4106-af90-396ef452c3aa> ;
50         owl:sameAs  <https://viaf.org/viaf/100383596/> .

RDF to Simple Triples (CLI: rdfparse) — See Documentation of Simple Triples of Turtle format (www.w3.org). This step converts or resolves RDF into subjectpredicateobject. (toggle on the right to see hidden content)

The RDF-example provided above can be checked using turtle B100068798-Wiki-Example.rdf

<http://herbarium.bgbm.org/data/rdf/B100068798> <http://purl.org/dc/terms/subject> <http://herbarium.bgbm.org/object/B100068798> .
<http://herbarium.bgbm.org/data/rdf/B100068798> <http://purl.org/dc/terms/created> "2019-11-11T15:41:25+01:00" .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/title> "Erysimum salangense Polatschek & Rech.f." .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/description> "A herbarium specimen of Erysimum salangense Polatschek & Rech.f. collected by Rechinger,K.H." .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/creator> "Rechinger, K.H." .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/created> "1967-07-14" .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/type> "Specimen" .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/publisher> <https://www.bgbm.org> .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/materialSampleID> "http://herbarium.bgbm.org/object/B100068798" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/basisOfRecord> "Specimen" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/collectionCode> "B" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/catalogNumber> "B 10 0068798" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/scientificName> "Erysimum salangense Polatschek & Rech.f." .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/previousIdentifications> "Erysimum salangense Polatschek & Rech.f." .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/family> "CRUCIFERAE" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/genus> "Erysimum" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/specificEpithet> "salangense" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/country> "Afghanistan" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/countryCode> "AF" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/locality> "\n      Afghanistan: NE-Afghanistan, Kathagan. Sar-i Hauz, in declivibus borealibus jugi Salang. substr. granit. Alt.: 2600 m. 14.07.1967, Leg.: K. H. Rechinger 37047.\n    " .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/decimalLongitude> "69.033332824707" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/decimalLatitude> "35.366664886475" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/eventDate> "1967-07-14" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/recordNumber> "37047" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/recordedBy> "Rechinger,K.H." .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/fieldNumber> "37047" .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/iri/recordedBy> <http://www.wikidata.org/entity/Q78738> .
<http://herbarium.bgbm.org/object/B100068798> <http://rs.tdwg.org/dwc/terms/associatedMedia> <http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg> .
<http://herbarium.bgbm.org/object/B100068798> <http://purl.org/dc/terms/relation> <http://herbarium.bgbm.org/iiif/B100068798> .
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/identifier> <http://herbarium.bgbm.org/iiif/B100068798> .
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/type> <http://iiif.io/api/presentation/3#Manifest> .
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/subject> <http://herbarium.bgbm.org/object/B100068798> .
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/format> "application/ld+json" .
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/description> "A IIIF resource for this specimen."@en .
<http://herbarium.bgbm.org/iiif/B100068798> <http://purl.org/dc/terms/created> "" .
<http://www.wikidata.org/entity/Q78738> <http://www.w3.org/2002/07/owl/sameAs> <http://purl.oclc.org/net/edu.harvard.huh/guid/uuid/d5fea488-5786-4106-af90-396ef452c3aa> .
<http://www.wikidata.org/entity/Q78738> <http://www.w3.org/2002/07/owl/sameAs> <https://viaf.org/viaf/100383596/> .

Further Questions and Discussion