From 8a5d4ace0bef5f4a48185a042ab25f99b68e639a Mon Sep 17 00:00:00 2001 From: tucotuco Date: Wed, 6 Mar 2024 12:53:31 -0300 Subject: [PATCH] Updates to build Humboldt Extension XML definition for IPT. --- build/xml/build_extension.py | 10 +++++++--- build/xml/humboldt_eco.tmpl | 2 +- build/xml/humboldt_eco_list.csv | 17 ++++++++++------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/build/xml/build_extension.py b/build/xml/build_extension.py index 163df9f..a0ff026 100644 --- a/build/xml/build_extension.py +++ b/build/xml/build_extension.py @@ -14,9 +14,9 @@ # limitations under the License. __author__ = "John Wieczorek" -__copyright__ = "Copyright 2023 Rauthiflor LLC" +__copyright__ = "Copyright 2024 Rauthiflor LLC" __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 os @@ -449,7 +449,11 @@ class DwcDigester(object): # print(f"{term['iri']}") term_data = self.get_term_definition(term['iri']) 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 # Fill in dc:description, comments, or examples from the standard if it is diff --git a/build/xml/humboldt_eco.tmpl b/build/xml/humboldt_eco.tmpl index 917ecc7..e39aa93 100644 --- a/build/xml/humboldt_eco.tmpl +++ b/build/xml/humboldt_eco.tmpl @@ -8,7 +8,7 @@ dc:title='Humboldt Ecological Inventory' name="HumboldtEcologicalInventory" namespace='http://rs.tdwg.org/eco/terms/' rowType='http://rs.tdwg.org/eco/terms/Event' - dc:issued='2023-09-05' + dc:issued='2024-02-28' dc:subject='dwc:Event' 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.'> diff --git a/build/xml/humboldt_eco_list.csv b/build/xml/humboldt_eco_list.csv index 564328c..89565e6 100644 --- a/build/xml/humboldt_eco_list.csv +++ b/build/xml/humboldt_eco_list.csv @@ -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/verbatimSiteDescriptions,,,,,, Site,http://rs.tdwg.org/eco/terms/verbatimSiteNames,,,,,, -Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaInSquareKilometers,,,,,, -Site,http://rs.tdwg.org/eco/terms/totalAreaSampledInSquareKilometers,,,,,, +Site,http://rs.tdwg.org/eco/terms/geospatialScopeAreaValue,,,,,, +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/reportedExtremeConditions,,,,,, Habitat Scope,http://rs.tdwg.org/eco/terms/targetHabitatScope,,,,,, 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,,,,,, Taxonomic Scope,http://rs.tdwg.org/eco/terms/targetTaxonomicScope,,,,,, 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/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,,,, -Identification,http://rs.tdwg.org/eco/terms/identifiedBy,,,,,, -Identification,http://rs.tdwg.org/eco/terms/identificationReferences,,,,,, -Methodology Description,http://rs.tdwg.org/eco/terms/compilationType,,,,,, +Organismal Scope,http://rs.tdwg.org/eco/terms/verbatimTargetScope,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identifiedBy,,,,,, +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/inventoryTypes,,,,,, 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/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,,,,