From 5aa48c8a4f11aefd507f7bbe842cde858c4d8279 Mon Sep 17 00:00:00 2001 From: peterdesmet Date: Fri, 7 Aug 2020 21:40:32 +0200 Subject: [PATCH] Update the build script to work from the generated_normative_document.csv --- build/build.py | 4 ++-- docs/terms/index.md | 40 ++++++++++++++++++++++++++-------------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/build/build.py b/build/build.py index 09bec6b..daa938c 100644 --- a/build/build.py +++ b/build/build.py @@ -141,7 +141,7 @@ class DwcDigester(object): vs_term = self._select_versions_term(term_iri) term_data = {} - term_data["label"] = vs_term['label'] + term_data["label"] = vs_term['term_localName'] # Use camelCase term_localName as label term_data["iri"] = term_iri term_data["class"] = vs_term['organized_in'] term_data["definition"] = self.convert_link(vs_term['definition']) @@ -295,7 +295,7 @@ class DwcDigester(object): def main(): """Building up the quick reference html and derivatives""" - term_versions_file = "../vocabulary/term_versions.csv" + term_versions_file = "../vocabulary/generated_normative_document.csv" print("Running build process:") my_dwc = DwcDigester(term_versions_file) diff --git a/docs/terms/index.md b/docs/terms/index.md index d37d5bc..93ade2d 100644 --- a/docs/terms/index.md +++ b/docs/terms/index.md @@ -10,9 +10,9 @@ This page provides a list of all currently recommended terms of the Darwin Core ## Record-level
- type + type modified - language + language license rightsHolder accessRights @@ -33,11 +33,11 @@ This page provides a list of all currently recommended terms of the Darwin Core +

- + @@ -55,13 +55,13 @@ This page provides a list of all currently recommended terms of the Darwin Core
type Property
Identifierhttp://purl.org/dc/terms/type
Identifierhttp://purl.org/dc/elements/1.1/type
DefinitionThe nature or genre of the resource.
CommentsMust be populated with a value from the DCMI type vocabulary (http://dublincore.org/documents/2010/10/11/dcmi-type-vocabulary/).
ExamplesStillImage, MovingImage, Sound, PhysicalObject, Event, Text
+

- + - +
language Property
Identifierhttp://purl.org/dc/terms/language
Identifierhttp://purl.org/dc/elements/1.1/language
DefinitionA language of the resource.
CommentsRecommended best practice is to use RFC 5646 as a controlled vocabulary.
CommentsRecommended best practice is to use a controlled vocabulary such as RFC 4646.
Examplesen (for English), es (for Spanish)
@@ -93,8 +93,8 @@ This page provides a list of all currently recommended terms of the Darwin Core accessRights Property Identifierhttp://purl.org/dc/terms/accessRights - DefinitionInformation about who can access the resource or an indication of its security status. Access Rights may include information regarding access or restrictions based on privacy, security, or other policies. - Comments + DefinitionInformation about who can access the resource or an indication of its security status. + CommentsAccess Rights may include information regarding access or restrictions based on privacy, security, or other policies. Examplesnot-for-profit use only, https://www.fieldmuseum.org/field-museum-natural-history-conditions-and-suggested-norms-use-collections-data-and-images @@ -2409,6 +2409,7 @@ This page provides a list of all currently recommended terms of the Darwin Core For more information on `UseWithIRI`, see [Section 2.5 of the RDF Guide](https://dwc.tdwg.org/rdf/#25-terms-in-the-dwciri-namespace-normative).
+ language inDescribedPlace identifiedBy recordedBy @@ -2455,6 +2456,17 @@ For more information on `UseWithIRI`, see [Section 2.5 of the RDF Guide](https:/
+ + + + + + + + + +
language Property
Identifierhttp://purl.org/dc/terms/language
DefinitionA language of the resource.
CommentsRecommended best practice is to use an IRI from the Library of Congress ISO 639-2 scheme http://id.loc.gov/vocabulary/iso639-2
Examples
@@ -2639,7 +2651,7 @@ For more information on `UseWithIRI`, see [Section 2.5 of the RDF Guide](https:/ - +
Identifierhttp://rs.tdwg.org/dwc/iri/geodeticDatum
DefinitionThe ellipsoid, geodetic datum, or spatial reference system (SRS) upon which the geographic coordinates given in decimalLatitude and decimalLongitude as based.
CommentsRecommended best practice is to use an IRI for the EPSG code of the SRS, if known. Otherwise use an IRI or controlled vocabulary for the name or code of the geodetic datum, if known. Otherwise use an IRI or controlled vocabulary for the name or code of the ellipsoid, if known. If none of these is known, use the value unknown.
Exampleshttps://epsg.io/4326
Exampleshttps://epsg.io/4326