From 841e24368cdef085cd44ebe8b5a830db61127666 Mon Sep 17 00:00:00 2001 From: tucotuco Date: Mon, 16 Aug 2021 22:29:53 -0300 Subject: [PATCH] Really I did. --- build/build_extension.py | 537 ++++++++++++++++++++++++++ build/event_core.tmpl | 12 + build/event_core_list.csv | 97 +++++ build/extended_mof.tmpl | 14 + build/extended_mof_list.csv | 14 + build/identification_history.tmpl | 12 + build/identification_history_list.csv | 48 +++ build/measurements_or_facts.tmpl | 13 + build/measurements_or_facts_list.csv | 10 + build/occurrence_core.tmpl | 13 + build/occurrence_core_list.csv | 180 +++++++++ build/occurrence_iri.tmpl | 13 + build/occurrence_iri_list.csv | 44 +++ build/resource_relationship.tmpl | 13 + build/resource_relationship_list.csv | 9 + build/taxon_core.tmpl | 12 + build/taxon_core_list.csv | 48 +++ 17 files changed, 1089 insertions(+) create mode 100644 build/build_extension.py create mode 100644 build/event_core.tmpl create mode 100644 build/event_core_list.csv create mode 100644 build/extended_mof.tmpl create mode 100644 build/extended_mof_list.csv create mode 100644 build/identification_history.tmpl create mode 100644 build/identification_history_list.csv create mode 100644 build/measurements_or_facts.tmpl create mode 100644 build/measurements_or_facts_list.csv create mode 100644 build/occurrence_core.tmpl create mode 100644 build/occurrence_core_list.csv create mode 100644 build/occurrence_iri.tmpl create mode 100644 build/occurrence_iri_list.csv create mode 100644 build/resource_relationship.tmpl create mode 100644 build/resource_relationship_list.csv create mode 100644 build/taxon_core.tmpl create mode 100644 build/taxon_core_list.csv diff --git a/build/build_extension.py b/build/build_extension.py new file mode 100644 index 0000000..f4ab04e --- /dev/null +++ b/build/build_extension.py @@ -0,0 +1,537 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +__author__ = "John Wieczorek" +__copyright__ = "Copyright 2021 Rauthiflor LLC" +__filename__ = 'build_extension.py' +__version__ = f'{__filename__} 2021-08-16T17:29-03:00' + +import io +import os +import re +import csv +import sys +import codecs +import html +import argparse +from urllib import request + +NAMESPACES = { + 'http://rs.tdwg.org/dwc/iri/' : 'dwciri', + 'http://rs.tdwg.org/dwc/terms/' : 'dwc', + 'http://rs.tdwg.org/chrono/terms/' : 'chrono', + 'http://purl.org/dc/elements/1.1/' : 'dc', + 'http://purl.org/dc/terms/' : 'dcterms', + 'http://rs.tdwg.org/dwc/terms/attributes/' : 'tdwgutility'} + +class ProvidedTermsError(Exception): + """inconsistency in the available terms Error""" + pass + + +class RdfTypeError(Exception): + """rdftype encountered that is not known by builder""" + pass + +class DwcNamespaceError(Exception): + """Namespace link is not available in the currently provided links""" + pass + +class DwcBuildReader(): + + def __init__(self, dwc_build_file): + """Custom Reader switching between raw Github or local file""" + self.dwc_build_file = dwc_build_file + + def __enter__(self): + if "https://raw.github" in self.dwc_build_file: + self.open_dwc_term = request.urlopen(self.dwc_build_file) + else: + self.open_dwc_term = open(self.dwc_build_file, 'rb') + return self.open_dwc_term + + def __exit__(self, *args): + self.open_dwc_term.close() + + +class DwcDigester(object): + + def __init__(self, term_versions): + """Digest the term document of Darwin Core to support automatic generation of + derivatives + + Parameters + ----------- + term_versions : str + Either a relative path and filename of the normative Dwc document + or a URL link to the raw Github version of the file + + Notes + ----- + Remark that the sequence of the term versions entries is + essential for the automatic generation of the individual documents + (mainly the index.html) + """ + self.term_versions = term_versions + + self.term_versions_data = {} + self._store_versions() + + # create the defined data-object for the different outputs + self.template_data = self.process_terms() + + def versions(self): + """Iterator providing the terms as represented in the normative term + versions file + """ + with DwcBuildReader(self.term_versions) as versions: + for vterm in csv.DictReader(io.TextIOWrapper(versions), delimiter=','): + if vterm["status"] == "recommended": + yield vterm + + def _store_versions(self): + """Collect all the versions data in a dictionary as the + term_versions_data attribute + """ + for term in self.versions(): + self.term_versions_data[term["term_iri"]] = term + + @property + def _version_terms(self): + """Get an overview of the terms in the term_versions file + """ + return set(self.term_versions_data.keys()) + + def _select_versions_term(self, term_iri): + """Select a specific term of the versions data, using term_iri match + """ + return self.term_versions_data[term_iri] + + @staticmethod + def split_iri(term_iri): + """Split an iri field into the namespace url and the local name + of the term + """ + prog = re.compile("(.*/)([^/]*$)") + namespace, local_name = prog.findall(term_iri)[0] + return namespace, local_name + + @staticmethod + def resolve_namespace_abbrev(namespace): + """Using the NAMESPACE constant, get the namespace abbreviation by + providing the namespace link + + Parameters + ----------- + namespace : str + valid key of the NAMESPACES variable + """ + if namespace not in NAMESPACES.keys(): + raise DwcNamespaceError("The namespace url is currently not supported in NAMESPACES") + return NAMESPACES[namespace] + + def get_term_definition(self, term_iri): + """Extract the required information from the terms table to show on + the webpage of a single term by using the term_iri as the identifier + + Notes + ------ + Due to the current implementation, make sure to provide the same keys + represented in the record-level specific version `process_terms` + method (room for improvement) + """ + vs_term = self._select_versions_term(term_iri) + + term_data = {} + term_data["label"] = vs_term['term_localName'] # See https://github.com/tdwg/dwc/issues/253#issuecomment-670098202 + term_data["iri"] = term_iri + term_data["class"] = vs_term['organized_in'] + term_data["definition"] = vs_term['definition'] + term_data["comments"] = vs_term['comments'] + term_data["examples"] = vs_term['examples'] +# term_data["definition"] = self.convert_link(vs_term['definition']) +# term_data["comments"] = self.convert_link(self.convert_code(vs_term['comments'])) +# term_data["examples"] = self.convert_link(self.convert_code(vs_term['examples'])) + term_data["rdf_type"] = vs_term['rdf_type'] + namespace_url, _ = self.split_iri(term_iri) + term_data["namespace"] = self.resolve_namespace_abbrev(namespace_url) + return term_data + + @staticmethod + def convert_code(text_with_backticks): + """Takes all back-quoted sections in a text field and converts it to + the html tagged version of code blocks ... + """ + return re.sub(r'`([^`]*)`', r'\1', text_with_backticks) + + @staticmethod + def convert_link(text_with_urls): + """Takes all links in a text field and converts it to the html tagged + version of the link + """ + def _handle_matched(inputstring): + """quick hack version of url handling on the current prime versions data""" + url = inputstring.group() + return "{}".format(url, url) + + regx = "(http[s]?://[\w\d:#@%/;$()~_?\+-;=\\\.&]*)(?\n' + if group != previous_group: + output_file.write(f'\n \n') + output_file.write(s) + previous_group = group + + output_file.write("") + output_file.close() + termlistfile.close() + +def _getoptions(): + ''' Parse command line options and return them.''' + parser = argparse.ArgumentParser() + + help = 'path to the extension term list csv file' + parser.add_argument("-i", "--extensiontermsfile", help=help) + + help = 'path to the extension xml template file' + parser.add_argument("-x", "--extensiontemplatefile", help=help) + + help = 'path to the output extension xml file' + parser.add_argument("-o", "--outputfile", help=help) + + help = 'path to the dwc term versions csv file' + parser.add_argument("-t", "--termversionsfile", help=help) + + return parser.parse_args() + +def main(): + """Build XML Darwin Core Extension files""" + + options = _getoptions() + optdict = {} + + if options.extensiontermsfile is None or len(options.extensiontermsfile)==0 \ + or options.extensiontemplatefile is None or len(options.extensiontemplatefile)==0 \ + or options.outputfile is None or len(options.outputfile)==0: + s = 'syntax:\n' + s += f'python {__filename__}' + s += ' -x ./occurrence_core.tmpl' + s += ' -i ./occurrence_core_list.csv' + s += ' -o ../ext/dwc_occurrence_2021-08_16.xml' + s += ' -t ../vocabulary/term_versions.csv' + print(s) + return + + term_versions_file = "../vocabulary/term_versions.csv" + if options.termversionsfile is not None and len(options.termversionsfile)!=0: + term_versions_file = options.termversionsfile + + print("Running build process:") + my_dwc = DwcDigester(term_versions_file) + + print("Building Extension XML file") + xml_template = options.extensiontemplatefile + termlist = options.extensiontermsfile + file_output = options.outputfile + my_dwc.create_extension_xml(xml_template, termlist, file_output) + + print("Done!") + +if __name__ == "__main__": + sys.exit(main()) \ No newline at end of file diff --git a/build/event_core.tmpl b/build/event_core.tmpl new file mode 100644 index 0000000..95d4570 --- /dev/null +++ b/build/event_core.tmpl @@ -0,0 +1,12 @@ + + + diff --git a/build/event_core_list.csv b/build/event_core_list.csv new file mode 100644 index 0000000..8b3589a --- /dev/null +++ b/build/event_core_list.csv @@ -0,0 +1,97 @@ +group,iri,type,thesaurus,description,comments,examples,required +Record-level,http://purl.org/dc/elements/1.1/type,,http://rs.gbif.org/vocabulary/dcterms/type.xml,,,, +Record-level,http://purl.org/dc/terms/modified,date,,,,, +Record-level,http://purl.org/dc/elements/1.1/language,,,,,, +Record-level,http://purl.org/dc/terms/license,,,,,, +Record-level,http://purl.org/dc/terms/rightsHolder,,,,,, +Record-level,http://purl.org/dc/terms/accessRights,,,,,, +Record-level,http://purl.org/dc/terms/bibliographicCitation,,,,,, +Record-level,http://purl.org/dc/terms/references,uri,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/institutionID,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/datasetID,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/institutionCode,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/datasetName,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/ownerInstitutionCode,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/informationWithheld,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/dataGeneralizations,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/dynamicProperties,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventID,,,,,, +Event,http://rs.tdwg.org/dwc/terms/parentEventID,,,,,, +Event,http://rs.tdwg.org/dwc/terms/samplingProtocol,,,,,, +Event,http://rs.tdwg.org/dwc/terms/sampleSizeValue,,,,,, +Event,http://rs.tdwg.org/dwc/terms/sampleSizeUnit,,http://rs.gbif.org/vocabulary/gbif/unit_of_measurement_2015-07-10.xml,,,, +Event,http://rs.tdwg.org/dwc/terms/samplingEffort,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventDate,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventTime,,,,,, +Event,http://rs.tdwg.org/dwc/terms/startDayOfYear,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/endDayOfYear,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/year,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/month,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/day,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/verbatimEventDate,,,,,, +Event,http://rs.tdwg.org/dwc/terms/habitat,,,,,, +Event,http://rs.tdwg.org/dwc/terms/fieldNumber,,,,,, +Event,http://rs.tdwg.org/dwc/terms/fieldNotes,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventRemarks,,,,,, +Location,http://rs.tdwg.org/dwc/terms/locationID,,,,,, +Location,http://rs.tdwg.org/dwc/terms/higherGeographyID,,,,,, +Location,http://rs.tdwg.org/dwc/terms/higherGeography,,,,,, +Location,http://rs.tdwg.org/dwc/terms/continent,,,,,, +Location,http://rs.tdwg.org/dwc/terms/waterBody,,,,,, +Location,http://rs.tdwg.org/dwc/terms/islandGroup,,,,,, +Location,http://rs.tdwg.org/dwc/terms/island,,,,,, +Location,http://rs.tdwg.org/dwc/terms/country,,,,,, +Location,http://rs.tdwg.org/dwc/terms/countryCode,,,,,, +Location,http://rs.tdwg.org/dwc/terms/stateProvince,,,,,, +Location,http://rs.tdwg.org/dwc/terms/county,,,,,, +Location,http://rs.tdwg.org/dwc/terms/municipality,,,,,, +Location,http://rs.tdwg.org/dwc/terms/locality,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimLocality,,,,,, +Location,http://rs.tdwg.org/dwc/terms/minimumElevationInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/maximumElevationInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimElevation,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verticalDatum,,,,,, +Location,http://rs.tdwg.org/dwc/terms/minimumDepthInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/maximumDepthInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimDepth,,,,,, +Location,http://rs.tdwg.org/dwc/terms/minimumDistanceAboveSurfaceInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/maximumDistanceAboveSurfaceInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/locationAccordingTo,,,,,, +Location,http://rs.tdwg.org/dwc/terms/locationRemarks,,,,,, +Location,http://rs.tdwg.org/dwc/terms/decimalLatitude,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/decimalLongitude,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/geodeticDatum,,,,,, +Location,http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/coordinatePrecision,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/pointRadiusSpatialFit,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimCoordinates,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimLatitude,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimLongitude,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimCoordinateSystem,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimSRS,,,,,, +Location,http://rs.tdwg.org/dwc/terms/footprintWKT,,,,,, +Location,http://rs.tdwg.org/dwc/terms/footprintSRS,,,,,, +Location,http://rs.tdwg.org/dwc/terms/footprintSpatialFit,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferencedBy,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferencedDate,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferenceProtocol,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferenceSources,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferenceRemarks,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/geologicalContextID,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestEonOrLowestEonothem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestEonOrHighestEonothem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestEraOrLowestErathem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestEraOrHighestErathem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestPeriodOrLowestSystem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestPeriodOrHighestSystem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestEpochOrLowestSeries,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestEpochOrHighestSeries,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestAgeOrLowestStage,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestAgeOrHighestStage,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/lowestBiostratigraphicZone,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/highestBiostratigraphicZone,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/lithostratigraphicTerms,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/group,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/formation,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/member,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/bed,,,,,, \ No newline at end of file diff --git a/build/extended_mof.tmpl b/build/extended_mof.tmpl new file mode 100644 index 0000000..cb136a2 --- /dev/null +++ b/build/extended_mof.tmpl @@ -0,0 +1,14 @@ + + + + \ No newline at end of file diff --git a/build/extended_mof_list.csv b/build/extended_mof_list.csv new file mode 100644 index 0000000..091a1a5 --- /dev/null +++ b/build/extended_mof_list.csv @@ -0,0 +1,14 @@ +group,iri,type,thesaurus,description,comments,examples,required +Occurrence,http://rs.tdwg.org/dwc/terms/occurrenceID,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementID,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementType,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/iri/measurementType,uri,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementValue,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/iri/measurementValue,uri,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementAccuracy,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementUnit,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/iri/measurementUnit,uri,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementDeterminedDate,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementDeterminedBy,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementMethod,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementRemarks,,,,,, \ No newline at end of file diff --git a/build/identification_history.tmpl b/build/identification_history.tmpl new file mode 100644 index 0000000..1607a0c --- /dev/null +++ b/build/identification_history.tmpl @@ -0,0 +1,12 @@ + + + diff --git a/build/identification_history_list.csv b/build/identification_history_list.csv new file mode 100644 index 0000000..b8c8880 --- /dev/null +++ b/build/identification_history_list.csv @@ -0,0 +1,48 @@ +group,iri,type,thesaurus,description,comments,examples,required +Identification,http://rs.tdwg.org/dwc/terms/identificationID,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/verbatimIdentification,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationQualifier,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/typeStatus,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identifiedBy,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identifiedByID,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/dateIdentified,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationReferences,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationVerificationStatus,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationRemarks,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificNameID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/acceptedNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/parentNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/originalNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nameAccordingToID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedInID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonConceptID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/acceptedNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/parentNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/originalNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nameAccordingTo,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedIn,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedInYear,integer,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/higherClassification,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/kingdom,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/phylum,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/class,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/order,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/family,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/subfamily,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/genus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/genericName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/subgenus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/infragenericEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/specificEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/infraspecificEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/cultivarEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonRank,,http://rs.gbif.org/vocabulary/gbif/rank_2015-04-24.xml,,,, +Taxon,http://rs.tdwg.org/dwc/terms/verbatimTaxonRank,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificNameAuthorship,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/vernacularName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nomenclaturalCode,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonomicStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nomenclaturalStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonRemarks,,,,,, \ No newline at end of file diff --git a/build/measurements_or_facts.tmpl b/build/measurements_or_facts.tmpl new file mode 100644 index 0000000..1fb61b1 --- /dev/null +++ b/build/measurements_or_facts.tmpl @@ -0,0 +1,13 @@ + + + diff --git a/build/measurements_or_facts_list.csv b/build/measurements_or_facts_list.csv new file mode 100644 index 0000000..7ac91e1 --- /dev/null +++ b/build/measurements_or_facts_list.csv @@ -0,0 +1,10 @@ +group,iri,type,thesaurus,description,comments,examples,required +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementID,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementType,,,,,,true +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementValue,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementAccuracy,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementUnit,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementDeterminedDate,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementDeterminedBy,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementMethod,,,,,, +MeasurementOrFact,http://rs.tdwg.org/dwc/terms/measurementRemarks,,,,,, \ No newline at end of file diff --git a/build/occurrence_core.tmpl b/build/occurrence_core.tmpl new file mode 100644 index 0000000..4beeac5 --- /dev/null +++ b/build/occurrence_core.tmpl @@ -0,0 +1,13 @@ + + + diff --git a/build/occurrence_core_list.csv b/build/occurrence_core_list.csv new file mode 100644 index 0000000..fd63d65 --- /dev/null +++ b/build/occurrence_core_list.csv @@ -0,0 +1,180 @@ +group,iri,type,thesaurus,description,comments,examples,required +Record-level,http://purl.org/dc/elements/1.1/type,,http://rs.gbif.org/vocabulary/dcterms/type.xml,,,, +Record-level,http://purl.org/dc/terms/modified,date,,,,, +Record-level,http://purl.org/dc/elements/1.1/language,,,,,, +Record-level,http://purl.org/dc/terms/license,,,,,, +Record-level,http://purl.org/dc/terms/rightsHolder,,,,,, +Record-level,http://purl.org/dc/terms/accessRights,,,,,, +Record-level,http://purl.org/dc/terms/bibliographicCitation,,,,,, +Record-level,http://purl.org/dc/terms/references,uri,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/institutionID,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/collectionID,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/datasetID,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/institutionCode,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/collectionCode,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/datasetName,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/ownerInstitutionCode,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/basisOfRecord,,http://rs.gbif.org/vocabulary/dwc/basis_of_record.xml,,,,true +Record-level,http://rs.tdwg.org/dwc/terms/informationWithheld,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/dataGeneralizations,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/dynamicProperties,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/occurrenceID,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/catalogNumber,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/recordNumber,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/recordedBy,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/recordedByID,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/individualCount,integer,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/organismQuantity,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/organismQuantityType,,http://rs.gbif.org/vocabulary/gbif/quantity_type_2015-07-10.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/sex,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/lifeStage,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/reproductiveCondition,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/behavior,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/establishmentMeans,,http://rs.gbif.org/vocabulary/gbif/establishmentmeans_2020-10-13.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/degreeOfEstablishment,,http://rs.gbif.org/vocabulary/gbif/degreeofestablishment_2020-10-13.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/pathway,,http://rs.gbif.org/vocabulary/gbif/pathway_2020-10-13.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/georeferenceVerificationStatus,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/occurrenceStatus,,http://rs.gbif.org/vocabulary/gbif/occurrence_status_2020-07-15.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/preparations,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/disposition,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/associatedMedia,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/associatedOccurrences,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/associatedReferences,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/associatedSequences,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/associatedTaxa,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/otherCatalogNumbers,,,,,, +Occurrence,http://rs.tdwg.org/dwc/terms/occurrenceRemarks,,,,,, +Organism,http://rs.tdwg.org/dwc/terms/organismID,,,,,, +Organism,http://rs.tdwg.org/dwc/terms/organismName,,,,,, +Organism,http://rs.tdwg.org/dwc/terms/organismScope,,,,,, +Organism,http://rs.tdwg.org/dwc/terms/associatedOrganisms,,,,,, +Organism,http://rs.tdwg.org/dwc/terms/previousIdentifications,,,,,, +Organism,http://rs.tdwg.org/dwc/terms/organismRemarks,,,,,, +MaterialSample,http://rs.tdwg.org/dwc/terms/materialSampleID,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventID,,,,,, +Event,http://rs.tdwg.org/dwc/terms/parentEventID,,,,,, +Event,http://rs.tdwg.org/dwc/terms/fieldNumber,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventDate,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventTime,,,,,, +Event,http://rs.tdwg.org/dwc/terms/startDayOfYear,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/endDayOfYear,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/year,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/month,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/day,integer,,,,, +Event,http://rs.tdwg.org/dwc/terms/verbatimEventDate,,,,,, +Event,http://rs.tdwg.org/dwc/terms/habitat,,,,,, +Event,http://rs.tdwg.org/dwc/terms/samplingProtocol,,,,,, +Event,http://rs.tdwg.org/dwc/terms/sampleSizeValue,,,,,, +Event,http://rs.tdwg.org/dwc/terms/sampleSizeUnit,,http://rs.gbif.org/vocabulary/gbif/unit_of_measurement_2015-07-10.xml,,,, +Event,http://rs.tdwg.org/dwc/terms/samplingEffort,,,,,, +Event,http://rs.tdwg.org/dwc/terms/fieldNotes,,,,,, +Event,http://rs.tdwg.org/dwc/terms/eventRemarks,,,,,, +Location,http://rs.tdwg.org/dwc/terms/locationID,,,,,, +Location,http://rs.tdwg.org/dwc/terms/higherGeographyID,,,,,, +Location,http://rs.tdwg.org/dwc/terms/higherGeography,,,,,, +Location,http://rs.tdwg.org/dwc/terms/continent,,,,,, +Location,http://rs.tdwg.org/dwc/terms/waterBody,,,,,, +Location,http://rs.tdwg.org/dwc/terms/islandGroup,,,,,, +Location,http://rs.tdwg.org/dwc/terms/island,,,,,, +Location,http://rs.tdwg.org/dwc/terms/country,,,,,, +Location,http://rs.tdwg.org/dwc/terms/countryCode,,,,,, +Location,http://rs.tdwg.org/dwc/terms/stateProvince,,,,,, +Location,http://rs.tdwg.org/dwc/terms/county,,,,,, +Location,http://rs.tdwg.org/dwc/terms/municipality,,,,,, +Location,http://rs.tdwg.org/dwc/terms/locality,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimLocality,,,,,, +Location,http://rs.tdwg.org/dwc/terms/minimumElevationInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/maximumElevationInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimElevation,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verticalDatum,,,,,, +Location,http://rs.tdwg.org/dwc/terms/minimumDepthInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/maximumDepthInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimDepth,,,,,, +Location,http://rs.tdwg.org/dwc/terms/minimumDistanceAboveSurfaceInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/maximumDistanceAboveSurfaceInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/locationAccordingTo,,,,,, +Location,http://rs.tdwg.org/dwc/terms/locationRemarks,,,,,, +Location,http://rs.tdwg.org/dwc/terms/decimalLatitude,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/decimalLongitude,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/geodeticDatum,,,,,, +Location,http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/coordinatePrecision,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/pointRadiusSpatialFit,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimCoordinates,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimLatitude,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimLongitude,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimCoordinateSystem,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verbatimSRS,,,,,, +Location,http://rs.tdwg.org/dwc/terms/footprintWKT,,,,,, +Location,http://rs.tdwg.org/dwc/terms/footprintSRS,,,,,, +Location,http://rs.tdwg.org/dwc/terms/footprintSpatialFit,decimal,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferencedBy,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferencedDate,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferenceProtocol,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferenceSources,,,,,, +Location,http://rs.tdwg.org/dwc/terms/georeferenceRemarks,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/geologicalContextID,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestEonOrLowestEonothem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestEonOrHighestEonothem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestEraOrLowestErathem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestEraOrHighestErathem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestPeriodOrLowestSystem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestPeriodOrHighestSystem,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestEpochOrLowestSeries,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestEpochOrHighestSeries,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/earliestAgeOrLowestStage,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/latestAgeOrHighestStage,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/lowestBiostratigraphicZone,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/highestBiostratigraphicZone,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/lithostratigraphicTerms,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/group,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/formation,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/member,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/terms/bed,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationID,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/verbatimIdentification,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationQualifier,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/typeStatus,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identifiedBy,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identifiedByID,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/dateIdentified,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationReferences,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationVerificationStatus,,,,,, +Identification,http://rs.tdwg.org/dwc/terms/identificationRemarks,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificNameID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/acceptedNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/parentNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/originalNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nameAccordingToID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedInID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonConceptID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/acceptedNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/parentNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/originalNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nameAccordingTo,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedIn,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedInYear,integer,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/higherClassification,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/kingdom,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/phylum,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/class,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/order,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/family,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/subfamily,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/genus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/genericName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/subgenus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/infragenericEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/specificEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/infraspecificEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/cultivarEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonRank,,http://rs.gbif.org/vocabulary/gbif/rank_2015-04-24.xml,,,, +Taxon,http://rs.tdwg.org/dwc/terms/verbatimTaxonRank,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificNameAuthorship,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/vernacularName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nomenclaturalCode,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonomicStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nomenclaturalStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonRemarks,,,,,, \ No newline at end of file diff --git a/build/occurrence_iri.tmpl b/build/occurrence_iri.tmpl new file mode 100644 index 0000000..df58e69 --- /dev/null +++ b/build/occurrence_iri.tmpl @@ -0,0 +1,13 @@ + + + diff --git a/build/occurrence_iri_list.csv b/build/occurrence_iri_list.csv new file mode 100644 index 0000000..2deae53 --- /dev/null +++ b/build/occurrence_iri_list.csv @@ -0,0 +1,44 @@ +group,iri,type,thesaurus,description,comments,examples,required +Record-level,http://purl.org/dc/terms/language,,,,,, +Record-level,http://rs.tdwg.org/dwc/iri/inCollection,,,,,, +Record-level,http://rs.tdwg.org/dwc/iri/inDataset,,,,,, +Record-level,http://rs.tdwg.org/dwc/iri/informationWithheld,,,,,, +Record-level,http://rs.tdwg.org/dwc/iri/dataGeneralizations,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/recordNumber,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/recordedBy,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/organismQuantityType,,http://rs.gbif.org/vocabulary/gbif/quantity_type_2015-07-10.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/sex,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/lifeStage,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/reproductiveCondition,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/behavior,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/establishmentMeans,,http://rs.gbif.org/vocabulary/gbif/establishmentmeans_2020-10-13.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/degreeOfEstablishment,,http://rs.gbif.org/vocabulary/gbif/degreeofestablishment_2020-10-13.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/pathway,,http://rs.gbif.org/vocabulary/gbif/pathway_2020-10-13.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/georeferenceVerificationStatus,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/occurrenceStatus,,http://rs.gbif.org/vocabulary/gbif/occurrence_status_2020-07-15.xml,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/preparations,,,,,, +Occurrence,http://rs.tdwg.org/dwc/iri/disposition,,,,,, +Event,http://rs.tdwg.org/dwc/iri/fieldNumber,,,,,, +Event,http://rs.tdwg.org/dwc/iri/habitat,,,,,, +Event,http://rs.tdwg.org/dwc/iri/samplingProtocol,,,,,, +Event,http://rs.tdwg.org/dwc/iri/sampleSizeUnit,,http://rs.gbif.org/vocabulary/gbif/unit_of_measurement_2015-07-10.xml,,,, +Event,http://rs.tdwg.org/dwc/iri/fieldNotes,,,,,, +Location,http://rs.tdwg.org/dwc/iri/inDescribedPlace,,,,,, +Location,http://rs.tdwg.org/dwc/terms/verticalDatum,,,,,, +Location,http://rs.tdwg.org/dwc/iri/geodeticDatum,,,,,, +Location,http://rs.tdwg.org/dwc/iri/locationAccordingTo,,,,,, +Location,http://rs.tdwg.org/dwc/iri/verbatimCoordinateSystem,,,,,, +Location,http://rs.tdwg.org/dwc/iri/verbatimSRS,,,,,, +Location,http://rs.tdwg.org/dwc/iri/footprintWKT,,,,,, +Location,http://rs.tdwg.org/dwc/iri/footprintSRS,,,,,, +Location,http://rs.tdwg.org/dwc/iri/georeferencedBy,,,,,, +Location,http://rs.tdwg.org/dwc/iri/georeferenceProtocol,,,,,, +Location,http://rs.tdwg.org/dwc/iri/georeferenceSources,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/iri/earliestGeochronologicalEra,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/iri/latestGeochronologicalEra,,,,,, +GeologicalContext,http://rs.tdwg.org/dwc/iri/fromLithostratigraphicUnit,,,,,, +Identification,http://rs.tdwg.org/dwc/iri/identificationQualifier,,,,,, +Identification,http://rs.tdwg.org/dwc/iri/typeStatus,,,,,, +Identification,http://rs.tdwg.org/dwc/iri/identifiedBy,,,,,, +Identification,http://rs.tdwg.org/dwc/iri/identificationVerificationStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/iri/toTaxon,,,,,, \ No newline at end of file diff --git a/build/resource_relationship.tmpl b/build/resource_relationship.tmpl new file mode 100644 index 0000000..32a19f9 --- /dev/null +++ b/build/resource_relationship.tmpl @@ -0,0 +1,13 @@ + + + diff --git a/build/resource_relationship_list.csv b/build/resource_relationship_list.csv new file mode 100644 index 0000000..832db59 --- /dev/null +++ b/build/resource_relationship_list.csv @@ -0,0 +1,9 @@ +group,iri,type,thesaurus,description,comments,examples,required +ResourceRelationship,http://rs.tdwg.org/dwc/terms/resourceRelationshipID,,,,,, +ResourceRelationship,http://rs.tdwg.org/dwc/terms/resourceID,,,,,,true +ResourceRelationship,http://rs.tdwg.org/dwc/terms/relationshipOfResourceID,,,,,, +ResourceRelationship,http://rs.tdwg.org/dwc/terms/relatedResourceID,,,,,,true +ResourceRelationship,http://rs.tdwg.org/dwc/terms/relationshipOfResource,,,,,, +ResourceRelationship,http://rs.tdwg.org/dwc/terms/relationshipAccordingTo,,,,,, +ResourceRelationship,http://rs.tdwg.org/dwc/terms/relationshipEstablishedDate,,,,,, +ResourceRelationship,http://rs.tdwg.org/dwc/terms/relationshipRemarks,,,,,, \ No newline at end of file diff --git a/build/taxon_core.tmpl b/build/taxon_core.tmpl new file mode 100644 index 0000000..0125736 --- /dev/null +++ b/build/taxon_core.tmpl @@ -0,0 +1,12 @@ + + + diff --git a/build/taxon_core_list.csv b/build/taxon_core_list.csv new file mode 100644 index 0000000..727766d --- /dev/null +++ b/build/taxon_core_list.csv @@ -0,0 +1,48 @@ +group,iri,type,thesaurus,description,comments,examples,required +Taxon,http://rs.tdwg.org/dwc/terms/taxonID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificNameID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/acceptedNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/parentNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/originalNameUsageID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nameAccordingToID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedInID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonConceptID,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/acceptedNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/parentNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/originalNameUsage,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nameAccordingTo,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedIn,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/namePublishedInYear,integer,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/higherClassification,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/kingdom,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/phylum,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/class,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/order,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/family,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/subfamily,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/genus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/genericName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/subgenus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/infragenericEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/specificEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/infraspecificEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/cultivarEpithet,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonRank,,http://rs.gbif.org/vocabulary/gbif/rank_2015-04-24.xml,,,, +Taxon,http://rs.tdwg.org/dwc/terms/verbatimTaxonRank,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/scientificNameAuthorship,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/vernacularName,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nomenclaturalCode,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonomicStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/nomenclaturalStatus,,,,,, +Taxon,http://rs.tdwg.org/dwc/terms/taxonRemarks,,,,,, +Record-level,http://purl.org/dc/terms/modified,date,,,,, +Record-level,http://purl.org/dc/elements/1.1/language,,,,,, +Record-level,http://purl.org/dc/terms/license,,,,,, +Record-level,http://purl.org/dc/terms/rightsHolder,,,,,, +Record-level,http://purl.org/dc/terms/accessRights,,,,,, +Record-level,http://purl.org/dc/terms/bibliographicCitation,,,,,, +Record-level,http://purl.org/dc/terms/references,uri,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/datasetID,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/datasetName,,,,,, +Record-level,http://rs.tdwg.org/dwc/terms/informationWithheld,,,,,, \ No newline at end of file