Difference between revisions of "Talk:CETAF Specimen Preview Profile (CSPP)"
m |
(→Example with commented CSPP elements: new section) |
||
Line 22: | Line 22: | ||
I myself have difficulties to understand the CSPP proposal on one side and the mapping to the equivalent (classical) RDF on the other side, given no further documentation (yet). We should more clarify by example the relation of CSPP and classical RDF; or I have not understood it yet. --[[User:Andreas Plank|Andreas Plank]] ([[User talk:Andreas Plank|talk]]) 13:09, 26 November 2019 (CET) | I myself have difficulties to understand the CSPP proposal on one side and the mapping to the equivalent (classical) RDF on the other side, given no further documentation (yet). We should more clarify by example the relation of CSPP and classical RDF; or I have not understood it yet. --[[User:Andreas Plank|Andreas Plank]] ([[User talk:Andreas Plank|talk]]) 13:09, 26 November 2019 (CET) | ||
+ | |||
+ | == Example with commented CSPP elements == | ||
+ | |||
+ | Plain RDF example (note that & is not escaped): | ||
+ | <syntaxhighlight lang="xml"> | ||
+ | <rdf:RDF> | ||
+ | <!--This is metadata about this metadata document--> | ||
+ | <rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798"> | ||
+ | <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/> | ||
+ | <dc:created>2019-11-11T15:41:25+01:00</dc:created> | ||
+ | </rdf:Description> | ||
+ | <!--This is metadata about this specimen--> | ||
+ | <rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798"> | ||
+ | <!-- CSPP element: title --> | ||
+ | <dc:title>Erysimum salangense Polatschek & Rech.f.</dc:title> | ||
+ | <dc:description>A herbarium specimen of Erysimum salangense Polatschek & 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>BGBM</dc:publisher> | ||
+ | <dwc:materialSampleID>http://herbarium.bgbm.org/object/B100068798</dwc:materialSampleID> | ||
+ | <dwc:basisOfRecord>Specimen</dwc:basisOfRecord> | ||
+ | <dwc:collectionCode>B</dwc:collectionCode> | ||
+ | <dwc:catalogNumber>B 10 0068798</dwc:catalogNumber> | ||
+ | <!-- CSPP element: scientificNameCurrent --> | ||
+ | <dwc:scientificName>Erysimum salangense Polatschek & Rech.f.</dwc:scientificName> | ||
+ | <!-- CSPP element: scientifcNameOriginal --> | ||
+ | <dwc:previousIdentifications>Erysimum salangense Polatschek & 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>69.033332824707</dwc:decimalLongitude> | ||
+ | <!-- CSPP element: latitude --> | ||
+ | <dwc:decimalLatitude>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> | ||
+ | <!-- CSPP element: collectorNumber --> | ||
+ | <dwc:fieldNumber>37047</dwc:fieldNumber> | ||
+ | <dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/> | ||
+ | <!-- CSPP element: webscaledImageLink --> | ||
+ | <dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/> | ||
+ | <!-- Experimental: This is a link to iiif data (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"> | ||
+ | <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> | ||
+ | |||
+ | Same example as XML (note the escaped <code>&amp;</code>): | ||
+ | <syntaxhighlight lang="xml"> | ||
+ | <?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/" | ||
+ | xmlns:owl="http://www.w3.org/2002/07/owl/"> | ||
+ | <rdf:RDF> | ||
+ | <!--This is metadata about this metadata document--> | ||
+ | <rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798"> | ||
+ | <dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/> | ||
+ | <dc:created>2019-11-11T15:41:25+01:00</dc:created> | ||
+ | </rdf:Description> | ||
+ | <!--This is metadata about this specimen--> | ||
+ | <rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798"> | ||
+ | <!-- CSPP element: title --> | ||
+ | <dc:title>Erysimum salangense Polatschek & Rech.f.</dc:title> | ||
+ | <dc:description>A herbarium specimen of Erysimum salangense Polatschek & 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>BGBM</dc:publisher> | ||
+ | <dwc:materialSampleID>http://herbarium.bgbm.org/object/B100068798</dwc:materialSampleID> | ||
+ | <dwc:basisOfRecord>Specimen</dwc:basisOfRecord> | ||
+ | <dwc:collectionCode>B</dwc:collectionCode> | ||
+ | <dwc:catalogNumber>B 10 0068798</dwc:catalogNumber> | ||
+ | <!-- CSPP element: scientificNameCurrent --> | ||
+ | <dwc:scientificName>Erysimum salangense Polatschek & Rech.f.</dwc:scientificName> | ||
+ | <!-- CSPP element: scientifcNameOriginal --> | ||
+ | <dwc:previousIdentifications>Erysimum salangense Polatschek & 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>69.033332824707</dwc:decimalLongitude> | ||
+ | <!-- CSPP element: latitude --> | ||
+ | <dwc:decimalLatitude>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> | ||
+ | <!-- CSPP element: collectorNumber --> | ||
+ | <dwc:fieldNumber>37047</dwc:fieldNumber> | ||
+ | <dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/> | ||
+ | <!-- CSPP element: webscaledImageLink --> | ||
+ | <dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/> | ||
+ | <!-- Experimental: This is a link to iiif data (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"> | ||
+ | <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> |
Revision as of 14:57, 9 December 2019
Relations of CETAF Specimen Preview Profile (CSPP) and expressed RDF somewhat baffling
From analysing returned RDF (e.g. http://id.snsb.info/snsb/collection/97112/153455/93009 accessed on 26th November 2019) we get the RDF, e.g. on Linux by
wget --quiet --header='Accept: application/rdf+xml' --header='Content: application/rdf+xml' --output-document="id.snsb.info⁄snsb⁄collection⁄97112⁄153455⁄93009.rdf" "http://id.snsb.info/snsb/collection/97112/153455/93009"
… and find in the RDF file:
<!-- … -->
<rdf:Description rdf:about="http://id.snsb.info/snsb/collection/97112/153455/93009"><!-- OK -->
<dc:title>Erysiphe cruciferarum Opiz ex L. Junell</dc:title><!-- OK -->
<dwc:collectionCode>BSMeryscoll</dwc:collectionCode><!-- OK -->
<dwc:collectionID>3</dwc:collectionID><!-- OK -->
<dwc:datasetName>The Erysiphales Collection at the Botanische Staatssammlung München</dwc:datasetName><!-- OK -->
<dc:relation>http://www.botanischestaatssammlung.de/DatabaseClients/BSMeryscoll/About.cfm</dc:relation><!-- OK -->
<dwc:kindOfMaterial>PreservedSpecimen</dwc:kindOfMaterial><!-- baffling: who defines dwc:kindOfMaterial ?-->
<dc:type>PreservedSpecimen</dc:type><!-- ?OK -->
</rdf:Description>
<!-- … -->
… which contains baffling RDF, because there is no definition of <dwc:kindOfMaterial>PreservedSpecimen</dwc:kindOfMaterial>
, I can find—is there or is it yet to be defined somewhere the dwc:kindOfMaterial
?
I myself have difficulties to understand the CSPP proposal on one side and the mapping to the equivalent (classical) RDF on the other side, given no further documentation (yet). We should more clarify by example the relation of CSPP and classical RDF; or I have not understood it yet. --Andreas Plank (talk) 13:09, 26 November 2019 (CET)
Example with commented CSPP elements
Plain RDF example (note that & is not escaped):
<rdf:RDF>
<!--This is metadata about this metadata document-->
<rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
<dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
<dc:created>2019-11-11T15:41:25+01:00</dc:created>
</rdf:Description>
<!--This is metadata about this specimen-->
<rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
<!-- CSPP element: title -->
<dc:title>Erysimum salangense Polatschek & Rech.f.</dc:title>
<dc:description>A herbarium specimen of Erysimum salangense Polatschek & 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>BGBM</dc:publisher>
<dwc:materialSampleID>http://herbarium.bgbm.org/object/B100068798</dwc:materialSampleID>
<dwc:basisOfRecord>Specimen</dwc:basisOfRecord>
<dwc:collectionCode>B</dwc:collectionCode>
<dwc:catalogNumber>B 10 0068798</dwc:catalogNumber>
<!-- CSPP element: scientificNameCurrent -->
<dwc:scientificName>Erysimum salangense Polatschek & Rech.f.</dwc:scientificName>
<!-- CSPP element: scientifcNameOriginal -->
<dwc:previousIdentifications>Erysimum salangense Polatschek & 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>69.033332824707</dwc:decimalLongitude>
<!-- CSPP element: latitude -->
<dwc:decimalLatitude>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>
<!-- CSPP element: collectorNumber -->
<dwc:fieldNumber>37047</dwc:fieldNumber>
<dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/>
<!-- CSPP element: webscaledImageLink -->
<dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/>
<!-- Experimental: This is a link to iiif data (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">
<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>
Same example as XML (note the escaped &
):
<?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/"
xmlns:owl="http://www.w3.org/2002/07/owl/">
<rdf:RDF>
<!--This is metadata about this metadata document-->
<rdf:Description rdf:about="http://herbarium.bgbm.org/data/rdf/B100068798">
<dc:subject rdf:resource="http://herbarium.bgbm.org/object/B100068798"/>
<dc:created>2019-11-11T15:41:25+01:00</dc:created>
</rdf:Description>
<!--This is metadata about this specimen-->
<rdf:Description rdf:about="http://herbarium.bgbm.org/object/B100068798">
<!-- CSPP element: title -->
<dc:title>Erysimum salangense Polatschek & Rech.f.</dc:title>
<dc:description>A herbarium specimen of Erysimum salangense Polatschek & 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>BGBM</dc:publisher>
<dwc:materialSampleID>http://herbarium.bgbm.org/object/B100068798</dwc:materialSampleID>
<dwc:basisOfRecord>Specimen</dwc:basisOfRecord>
<dwc:collectionCode>B</dwc:collectionCode>
<dwc:catalogNumber>B 10 0068798</dwc:catalogNumber>
<!-- CSPP element: scientificNameCurrent -->
<dwc:scientificName>Erysimum salangense Polatschek & Rech.f.</dwc:scientificName>
<!-- CSPP element: scientifcNameOriginal -->
<dwc:previousIdentifications>Erysimum salangense Polatschek & 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>69.033332824707</dwc:decimalLongitude>
<!-- CSPP element: latitude -->
<dwc:decimalLatitude>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>
<!-- CSPP element: collectorNumber -->
<dwc:fieldNumber>37047</dwc:fieldNumber>
<dwciri:recordedBy rdf:resource="http://www.wikidata.org/entity/Q78738"/>
<!-- CSPP element: webscaledImageLink -->
<dwc:associatedMedia rdf:resource="http://ww2.bgbm.org/herbarium/images/B/10/00/68/79/B_10_0068798.jpg"/>
<!-- Experimental: This is a link to iiif data (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">
<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>