Updates to build Humboldt Extension XML definition for IPT.

This commit is contained in:
tucotuco 2024-03-06 12:53:31 -03:00
parent 3ff51687b3
commit 8a5d4ace0b
3 changed files with 18 additions and 11 deletions

View File

@ -14,9 +14,9 @@
# limitations under the License. # limitations under the License.
__author__ = "John Wieczorek" __author__ = "John Wieczorek"
__copyright__ = "Copyright 2023 Rauthiflor LLC" __copyright__ = "Copyright 2024 Rauthiflor LLC"
__filename__ = 'build_extension.py' __filename__ = 'build_extension.py'
__version__ = f'{__filename__} 2023-09-15T16:52-03:00' __version__ = f'{__filename__} 2024-03-06T12:43-03:00'
import io import io
import os import os
@ -449,7 +449,11 @@ class DwcDigester(object):
# print(f"{term['iri']}") # print(f"{term['iri']}")
term_data = self.get_term_definition(term['iri']) term_data = self.get_term_definition(term['iri'])
except: except:
print(f"{term['iri']} not found in get_term_definitions({term['iri']})") s = f"{term['iri']} not found in get_term_definitions()."
s += "If this is a term from another vocabulary, be sure to copy the "
s += "definition, comments, and examples from the original source "
s += f"into the output file {file_output}."
print(s)
pass pass
# Fill in dc:description, comments, or examples from the standard if it is # Fill in dc:description, comments, or examples from the standard if it is

View File

@ -8,7 +8,7 @@
dc:title='Humboldt Ecological Inventory' dc:title='Humboldt Ecological Inventory'
name="HumboldtEcologicalInventory" namespace='http://rs.tdwg.org/eco/terms/' name="HumboldtEcologicalInventory" namespace='http://rs.tdwg.org/eco/terms/'
rowType='http://rs.tdwg.org/eco/terms/Event' rowType='http://rs.tdwg.org/eco/terms/Event'
dc:issued='2023-09-05' dc:issued='2024-02-28'
dc:subject='dwc:Event' dc:subject='dwc:Event'
dc:relation='https://github.com/tdwg/hc/blob/master/vocabulary/term_versions.csv' dc:relation='https://github.com/tdwg/hc/blob/master/vocabulary/term_versions.csv'
dc:description='Extended support for Darwin Core Events related to ecological inventories.'> dc:description='Extended support for Darwin Core Events related to ecological inventories.'>

View File

@ -3,13 +3,15 @@ Site,http://rs.tdwg.org/eco/terms/siteCount,,,,,,
Site,http://rs.tdwg.org/eco/terms/siteNestingDescription,,,,,, Site,http://rs.tdwg.org/eco/terms/siteNestingDescription,,,,,,
Site,http://rs.tdwg.org/eco/terms/verbatimSiteDescriptions,,,,,, Site,http://rs.tdwg.org/eco/terms/verbatimSiteDescriptions,,,,,,
Site,http://rs.tdwg.org/eco/terms/verbatimSiteNames,,,,,, Site,http://rs.tdwg.org/eco/terms/verbatimSiteNames,,,,,,
Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaInSquareKilometers,,,,,, Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaValue,,,,,,
Site,http://rs.tdwg.org/eco/terms/totalAreaSampledInSquareKilometers,,,,,, Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaUnit,,,,,,
Site,http://rs.tdwg.org/eco/terms/totalAreaSampledValue,,,,,,
Site,http://rs.tdwg.org/eco/terms/totalAreaSampledUnit,,,,,,
Site,http://rs.tdwg.org/eco/terms/reportedWeather,,,,,, Site,http://rs.tdwg.org/eco/terms/reportedWeather,,,,,,
Site,http://rs.tdwg.org/eco/terms/reportedExtremeConditions,,,,,, Site,http://rs.tdwg.org/eco/terms/reportedExtremeConditions,,,,,,
Habitat Scope,http://rs.tdwg.org/eco/terms/targetHabitatScope,,,,,, Habitat Scope,http://rs.tdwg.org/eco/terms/targetHabitatScope,,,,,,
Habitat Scope,http://rs.tdwg.org/eco/terms/excludedHabitatScope,,,,,, Habitat Scope,http://rs.tdwg.org/eco/terms/excludedHabitatScope,,,,,,
Temporal Scope,http://rs.tdwg.org/eco/terms/eventDuration,,,,,, Temporal Scope,http://rs.tdwg.org/eco/terms/eventDurationValue,,,,,,
Temporal Scope,http://rs.tdwg.org/eco/terms/eventDurationUnit,,,,,, Temporal Scope,http://rs.tdwg.org/eco/terms/eventDurationUnit,,,,,,
Taxonomic Scope,http://rs.tdwg.org/eco/terms/targetTaxonomicScope,,,,,, Taxonomic Scope,http://rs.tdwg.org/eco/terms/targetTaxonomicScope,,,,,,
Taxonomic Scope,http://rs.tdwg.org/eco/terms/excludedTaxonomicScope,,,,,, Taxonomic Scope,http://rs.tdwg.org/eco/terms/excludedTaxonomicScope,,,,,,
@ -31,13 +33,14 @@ Organismal Scope,http://rs.tdwg.org/eco/terms/targetGrowthFormScope,,,,,,
Organismal Scope,http://rs.tdwg.org/eco/terms/excludedGrowthFormScope,,,,,, Organismal Scope,http://rs.tdwg.org/eco/terms/excludedGrowthFormScope,,,,,,
Organismal Scope,http://rs.tdwg.org/eco/terms/isGrowthFormScopeFullyReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,, Organismal Scope,http://rs.tdwg.org/eco/terms/isGrowthFormScopeFullyReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,
Organismal Scope,http://rs.tdwg.org/eco/terms/hasNonTargetOrganisms,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,, Organismal Scope,http://rs.tdwg.org/eco/terms/hasNonTargetOrganisms,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,
Identification,http://rs.tdwg.org/eco/terms/identifiedBy,,,,,, Organismal Scope,http://rs.tdwg.org/eco/terms/verbatimTargetScope,,,,,,
Identification,http://rs.tdwg.org/eco/terms/identificationReferences,,,,,, Identification,http://rs.tdwg.org/dwc/terms/identifiedBy,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/compilationType,,,,,, Identification,http://rs.tdwg.org/dwc/terms/identificationReferences,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/compilationTypes,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/compilationSourceTypes,,,,,, Methodology Description,http://rs.tdwg.org/eco/terms/compilationSourceTypes,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/inventoryTypes,,,,,, Methodology Description,http://rs.tdwg.org/eco/terms/inventoryTypes,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/protocolNames,,,,,, Methodology Description,http://rs.tdwg.org/eco/terms/protocolNames,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/protocolDescription,,,,,, Methodology Description,http://rs.tdwg.org/eco/terms/protocolDescriptions,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/protocolReferences,,,,,, Methodology Description,http://rs.tdwg.org/eco/terms/protocolReferences,,,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/isAbundanceReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,, Methodology Description,http://rs.tdwg.org/eco/terms/isAbundanceReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,
Methodology Description,http://rs.tdwg.org/eco/terms/isAbundanceCapReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,, Methodology Description,http://rs.tdwg.org/eco/terms/isAbundanceCapReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,

1 group,iri,type,thesaurus,description,comments,examples,required,,,,,,
3 Site,http://rs.tdwg.org/eco/terms/siteNestingDescription,,,,,,
4 Site,http://rs.tdwg.org/eco/terms/verbatimSiteDescriptions,,,,,,
5 Site,http://rs.tdwg.org/eco/terms/verbatimSiteNames,,,,,,
6 Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaInSquareKilometers,,,,,, Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaValue,,,,,,
7 Site,http://rs.tdwg.org/eco/terms/totalAreaSampledInSquareKilometers,,,,,, Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaUnit,,,,,,
8 Site,http://rs.tdwg.org/eco/terms/totalAreaSampledValue,,,,,,
9 Site,http://rs.tdwg.org/eco/terms/totalAreaSampledUnit,,,,,,
10 Site,http://rs.tdwg.org/eco/terms/reportedWeather,,,,,,
11 Site,http://rs.tdwg.org/eco/terms/reportedExtremeConditions,,,,,,
12 Habitat Scope,http://rs.tdwg.org/eco/terms/targetHabitatScope,,,,,,
13 Habitat Scope,http://rs.tdwg.org/eco/terms/excludedHabitatScope,,,,,,
14 Temporal Scope,http://rs.tdwg.org/eco/terms/eventDuration,,,,,, Temporal Scope,http://rs.tdwg.org/eco/terms/eventDurationValue,,,,,,
15 Temporal Scope,http://rs.tdwg.org/eco/terms/eventDurationUnit,,,,,,
16 Taxonomic Scope,http://rs.tdwg.org/eco/terms/targetTaxonomicScope,,,,,,
17 Taxonomic Scope,http://rs.tdwg.org/eco/terms/excludedTaxonomicScope,,,,,,
33 Organismal Scope,http://rs.tdwg.org/eco/terms/excludedGrowthFormScope,,,,,,
34 Organismal Scope,http://rs.tdwg.org/eco/terms/isGrowthFormScopeFullyReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,
35 Organismal Scope,http://rs.tdwg.org/eco/terms/hasNonTargetOrganisms,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,
36 Identification,http://rs.tdwg.org/eco/terms/identifiedBy,,,,,, Organismal Scope,http://rs.tdwg.org/eco/terms/verbatimTargetScope,,,,,,
37 Identification,http://rs.tdwg.org/eco/terms/identificationReferences,,,,,, Identification,http://rs.tdwg.org/dwc/terms/identifiedBy,,,,,,
38 Methodology Description,http://rs.tdwg.org/eco/terms/compilationType,,,,,, Identification,http://rs.tdwg.org/dwc/terms/identificationReferences,,,,,,
39 Methodology Description,http://rs.tdwg.org/eco/terms/compilationTypes,,,,,,
40 Methodology Description,http://rs.tdwg.org/eco/terms/compilationSourceTypes,,,,,,
41 Methodology Description,http://rs.tdwg.org/eco/terms/inventoryTypes,,,,,,
42 Methodology Description,http://rs.tdwg.org/eco/terms/protocolNames,,,,,,
43 Methodology Description,http://rs.tdwg.org/eco/terms/protocolDescription,,,,,, Methodology Description,http://rs.tdwg.org/eco/terms/protocolDescriptions,,,,,,
44 Methodology Description,http://rs.tdwg.org/eco/terms/protocolReferences,,,,,,
45 Methodology Description,http://rs.tdwg.org/eco/terms/isAbundanceReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,
46 Methodology Description,http://rs.tdwg.org/eco/terms/isAbundanceCapReported,,https://rs.gbif.org/vocabulary/basic/boolean.xml,,,,