Skip to content

Commit b6db702

Browse files
author
tucotuco
committed
Amendments following review of resulting XML files by GBIF.
1 parent 841e243 commit b6db702

8 files changed

+32
-30
lines changed

build/build_extension.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
__author__ = "John Wieczorek"
1717
__copyright__ = "Copyright 2021 Rauthiflor LLC"
1818
__filename__ = 'build_extension.py'
19-
__version__ = f'{__filename__} 2021-08-16T17:29-03:00'
19+
__version__ = f'{__filename__} 2021-08-17T20:40-03:00'
2020

2121
import io
2222
import os
@@ -513,7 +513,7 @@ def main():
513513
s += f'python {__filename__}'
514514
s += ' -x ./occurrence_core.tmpl'
515515
s += ' -i ./occurrence_core_list.csv'
516-
s += ' -o ../ext/dwc_occurrence_2021-08_16.xml'
516+
s += ' -o ../ext/dwc_occurrence_2021-08-16.xml'
517517
s += ' -t ../vocabulary/term_versions.csv'
518518
print(s)
519519
return

build/event_core.tmpl

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<?xml-stylesheet type='text/xsl' href='/style/human.xsl'?>
33
<extension xmlns='http://rs.gbif.org/extension/'
4-
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
5-
xmlns:dc='http://purl.org/dc/terms/'
4+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
5+
xmlns:dc='http://purl.org/dc/terms/'
66
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
7-
dc:title='Darwin Core Event'
8-
name='Event' namespace='http://rs.tdwg.org/dwc/terms/'
7+
dc:title='Darwin Core Event'
8+
name='Event' namespace='http://rs.tdwg.org/dwc/terms/'
99
rowType='http://rs.tdwg.org/dwc/terms/Event'
10-
dc:issued="2021-07-15"
11-
dc:relation='https://dwc.tdwg.org/terms/#event'
10+
dc:issued='2021-07-15'
11+
dc:subject=''
12+
dc:relation='http://rs.tdwg.org/dwc/terms/Event'
1213
dc:description='The category of information pertaining to an action that occurs at some location during some time.'>

build/extended_mof.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
55
xmlns:dc='http://purl.org/dc/terms/'
66
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
7-
dc:title='Darwin Core Occurrence'
8-
name='ExtendedMeasurementOrFact' namespace='http://rs.tdwg.org/dwc/terms/'
7+
dc:title='Extended Measurement or Facts'
8+
name='ExtendedMeasurementOrFacts' namespace='http://rs.tdwg.org/dwc/terms/'
99
rowType='http://rs.tdwg.org/dwc/terms/MeasurementOrFact'
1010
dc:issued='2021-07-15'
11-
dc:subject='dwc:Taxon dwc:Event'
12-
dc:relation='https://dwc.tdwg.org/terms/#measurementorfact'
11+
dc:subject='dwc:Occurrence dwc:Event dwc:Taxon'
12+
dc:relation='http://rs.tdwg.org/dwc/terms/MeasurementOrFact'
1313
dc:description='Extended support for measurements or facts, allowing links to any Core plus to records in an Occurrence Extension. For example, when used with an Event Core, this extension can be used to store measurements or facts related to a biological occurrence (through the built-in occurrenceID), to environmental measurements or facts, and to sampling method attributes. This extension includes dwciri terms that can be used for IRI-based identifiers to values in controlled vocabularies for measurementType, measurementValue, and measurementUnit.'>
1414

build/identification_history.tmpl

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<?xml-stylesheet type='text/xsl' href='/style/human.xsl'?>
33
<extension xmlns='http://rs.gbif.org/extension/'
4-
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
5-
xmlns:dc='http://purl.org/dc/terms/'
4+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
5+
xmlns:dc='http://purl.org/dc/terms/'
66
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
7-
dc:title="Darwin Core Identification History"
8-
name="Identification" namespace="http://rs.tdwg.org/dwc/terms/"
9-
rowType="http://rs.tdwg.org/dwc/terms/Identification"
7+
dc:title='Darwin Core Identification History'
8+
name='Identification' namespace='http://rs.tdwg.org/dwc/terms/'
9+
rowType='http://rs.tdwg.org/dwc/terms/Identification'
1010
dc:issued='2021-07-15'
11-
dc:relation='https://dwc.tdwg.org/terms/#identification'
12-
dc:description="Support for multiple identifications (determinations) of species Occurrences. All identifications including the most current one should be listed, while the current one should also be repeated in the Occurrence Core.">
11+
dc:subject='dwc:Occurrence'
12+
dc:relation='http://rs.tdwg.org/dwc/terms/Identification'
13+
dc:description='Support for multiple identifications (determinations) of species Occurrences. All identifications including the most current one should be listed, while the current one should also be repeated in the Occurrence Core.'>

build/measurements_or_facts.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
55
xmlns:dc='http://purl.org/dc/terms/'
66
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
7-
dc:title="Darwin Core Measurement Or Facts"
8-
name='MeasurementOrFact' namespace='http://rs.tdwg.org/dwc/terms/'
7+
dc:title='Darwin Core Measurement or Facts'
8+
name='MeasurementOrFacts' namespace='http://rs.tdwg.org/dwc/terms/'
99
rowType='http://rs.tdwg.org/dwc/terms/MeasurementOrFact'
1010
dc:issued='2021-07-15'
1111
dc:subject='dwc:Occurrence dwc:Event dwc:Taxon'
12-
dc:relation='https://dwc.tdwg.org/terms/#measurementorfact'
12+
dc:relation='http://rs.tdwg.org/dwc/terms/MeasurementOrFact'
1313
dc:description='Support for measurements or facts, allowing links to any type of Core.'>

build/occurrence_core.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
name='Occurrence' namespace='http://rs.tdwg.org/dwc/terms/'
99
rowType='http://rs.tdwg.org/dwc/terms/Occurrence'
1010
dc:issued='2021-07-15'
11-
dc:subject='dwc:Taxon dwc:Event'
12-
dc:relation='https://dwc.tdwg.org/terms/#occurrence'
11+
dc:subject='dwc:Event dwc:Taxon'
12+
dc:relation='http://rs.tdwg.org/dwc/terms/Occurrence'
1313
dc:description='The category of information pertaining to the existence of an Organism (sensu http://rs.tdwg.org/dwc/terms/Organism) at a particular place at a particular time.'>

build/occurrence_iri.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
name='Occurrence' namespace='http://rs.tdwg.org/dwc/iri/'
99
rowType='http://rs.tdwg.org/dwc/terms/Occurrence'
1010
dc:issued='2021-07-15'
11-
dc:subject='dwc:Taxon dwc:Event'
12-
dc:relation='https://dwc.tdwg.org/terms/#occurrence'
11+
dc:subject='dwc:Occurrence dwc:Event dwc:Taxon'
12+
dc:relation='http://rs.tdwg.org/dwc/terms/Occurrence'
1313
dc:description='Additional IRI terms for the category of information pertaining to the existence of an Organism (sensu http://rs.tdwg.org/dwc/terms/Organism) at a particular place at a particular time.'>

build/resource_relationship.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
55
xmlns:dc='http://purl.org/dc/terms/'
66
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
7-
dc:title="Darwin Core Resource Relationship"
8-
name="ResourceRelationship" namespace="http://rs.tdwg.org/dwc/terms/"
9-
rowType="http://rs.tdwg.org/dwc/terms/ResourceRelationship"
7+
dc:title='Darwin Core Resource Relationship'
8+
name='ResourceRelationship' namespace='http://rs.tdwg.org/dwc/terms/'
9+
rowType='http://rs.tdwg.org/dwc/terms/ResourceRelationship'
1010
dc:issued='2021-07-15'
1111
dc:subject='dwc:Occurrence dwc:Event dwc:Taxon'
12-
dc:relation='https://dwc.tdwg.org/terms/#resourcerelationship'
12+
dc:relation='http://rs.tdwg.org/dwc/terms/ResourceRelationship'
1313
dc:description='Support for relationships between resources in the Core, in an extension, or external to the data set. The identifiers for subject (resourceID) and object (relatedResourceID) may exist in the dataset or be accessible via an externally resolvable identifier'>

0 commit comments

Comments
 (0)