Skip to content

Commit

Permalink
Merge pull request #242 from tdwg/ac_update
Browse files Browse the repository at this point in the history
Update Audubon Core docs for 2022-02-23 version
  • Loading branch information
Steve Baskauf authored May 27, 2022
2 parents 84d0a2e + 27d3d5d commit 3368875
Show file tree
Hide file tree
Showing 7 changed files with 8,266 additions and 168 deletions.
20 changes: 13 additions & 7 deletions code/build_subtype_cv/build-page-simple.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"# This is an example of a simple vocabulary without categories. For a complex example\n",
"# with multiple namespaces and several categories, see build-page-categories.ipynb\n",
"\n",
"# This is the base URL for raw files from the branch of the repo that has been pushed to GitHub. In this example,\n",
"# the branch is named \"pathway\"\n",
"githubBaseUri = 'https://raw.githubusercontent.com/tdwg/rs.tdwg.org/master/'\n",
"# This is the base URL for raw files from the branch of the repo that has been pushed to GitHub. \n",
"#githubBaseUri = 'https://raw.githubusercontent.com/tdwg/rs.tdwg.org/master/'\n",
"githubBaseUri = 'https://raw.githubusercontent.com/tdwg/rs.tdwg.org/ac_update/'\n",
"\n",
"headerFileName = 'termlist-header.md'\n",
"footerFileName = 'termlist-footer.md'\n",
Expand Down Expand Up @@ -115,7 +115,7 @@
"outputs": [],
"source": [
"# Create column list\n",
"column_list = ['pref_ns_prefix', 'pref_ns_uri', 'term_localName', 'label', 'definition', 'usage', 'notes', 'examples', 'term_modified', 'term_deprecated', 'type']\n",
"column_list = ['pref_ns_prefix', 'pref_ns_uri', 'term_localName', 'label', 'definition', 'usage', 'notes', 'examples', 'term_modified', 'term_deprecated', 'sawsdlrdf_modelReference', 'type']\n",
"if vocab_type == 2:\n",
" column_list += ['controlled_value_string']\n",
"elif vocab_type == 3:\n",
Expand All @@ -135,7 +135,7 @@
" data_url = githubBaseUri + term_list['database'] + '/' + term_list['database'] + '.csv'\n",
" frame = pd.read_csv(data_url, na_filter=False)\n",
" for index,row in frame.iterrows():\n",
" row_list = [term_list['pref_ns_prefix'], term_list['pref_ns_uri'], row['term_localName'], row['label'], row['definition'], row['usage'], row['notes'], row['examples'], row['term_modified'], row['term_deprecated'], row['type']]\n",
" row_list = [term_list['pref_ns_prefix'], term_list['pref_ns_uri'], row['term_localName'], row['label'], row['definition'], row['usage'], row['notes'], row['examples'], row['term_modified'], row['term_deprecated'], row['sawsdlrdf_modelReference'], row['type']]\n",
" if vocab_type == 2:\n",
" row_list += [row['controlled_value_string']]\n",
" elif vocab_type == 3:\n",
Expand Down Expand Up @@ -255,7 +255,7 @@
"metadata": {},
"outputs": [],
"source": [
"decisions_df = pd.read_csv('https://raw.githubusercontent.com/tdwg/rs.tdwg.org/master/decisions/decisions-links.csv', na_filter=False)\n",
"decisions_df = pd.read_csv(githubBaseUri + 'decisions/decisions-links.csv', na_filter=False)\n",
"\n",
"# generate a table for each term, with terms grouped by category\n",
"\n",
Expand Down Expand Up @@ -323,7 +323,7 @@
" if row['notes'] != '':\n",
" text += '\\t\\t<tr>\\n'\n",
" text += '\\t\\t\\t<td>Notes</td>\\n'\n",
" text += '\\t\\t\\t<td>' + convert_link(rconvert_code(ow['notes'])) + '</td>\\n'\n",
" text += '\\t\\t\\t<td>' + convert_link(convert_code(row['notes'])) + '</td>\\n'\n",
" text += '\\t\\t</tr>\\n'\n",
"\n",
" if row['examples'] != '':\n",
Expand All @@ -345,6 +345,12 @@
" text += '\\t\\t\\t<td><a href=\"#' + curieAnchor + '\">' + row['skos_broader'] + '</a></td>\\n'\n",
" text += '\\t\\t</tr>\\n'\n",
"\n",
" if row['sawsdlrdf_modelReference'] != '':\n",
" text += '\\t\\t<tr>\\n'\n",
" text += '\\t\\t\\t<td>Refer to semantic model:</td>\\n'\n",
" text += '\\t\\t\\t<td>' + convert_link(convert_code(row['sawsdlrdf_modelReference'])) + '</td>\\n'\n",
" text += '\\t\\t</tr>\\n'\n",
"\n",
" text += '\\t\\t<tr>\\n'\n",
" text += '\\t\\t\\t<td>Type</td>\\n'\n",
" if row['type'] == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property':\n",
Expand Down
10 changes: 6 additions & 4 deletions code/build_subtype_cv/termlist-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ permalink: /subtype/

**Preferred namespace abbreviation:** acsubtype:

**Date version issued:** 2020-10-13
**Date version issued:** 2022-02-23

**Date created:** 2020-10-13

**Part of TDWG Standard:** http://www.tdwg.org/standards/638
**Part of TDWG Standard:** <http://www.tdwg.org/standards/638>

**This version:** http://rs.tdwg.org/ac/doc/subtype/2020-10-13
**This version:** <http://rs.tdwg.org/ac/doc/subtype/2022-02-23>

**Latest version:** http://rs.tdwg.org/ac/doc/subtype/
**Latest version:** <http://rs.tdwg.org/ac/doc/subtype/>

**Previous version:** <http://rs.tdwg.org/ac/doc/subtype/2020-10-13>

**Abstract:** Audubon Core uses the terms `ac:subtype` and `ac:subtypeLiteral` to refine the type of a media item to a level more specific than the Dublin Core Type Vocabulary, `http://purl.org/dc/dcmitype/`. This controlled vocabulary provides values for `ac:subtype` and `ac:subtypeLiteral`.

Expand Down
10 changes: 5 additions & 5 deletions code/termlist-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ permalink: /termlist/

**Title:** Audubon Core Term List

**Date version issued:** 2021-10-05
**Date version issued:** 2022-02-23

**Date created:** 2013-10-23

**Part of TDWG Standard:** http://www.tdwg.org/standards/638

**This version:** <http://rs.tdwg.org/ac/doc/termlist/2021-10-05>
**This version:** <http://rs.tdwg.org/ac/doc/termlist/2022-02-23>

**Latest version:** <http://rs.tdwg.org/ac/doc/termlist/>

**Previous version:** <http://rs.tdwg.org/ac/doc/termlist/2021-02-01>
**Previous version:** <http://rs.tdwg.org/ac/doc/termlist/2021-10-05>

**Abstract:** The Audubon Core is a set of vocabularies designed to
represent metadata for biodiversity multimedia resources and
Expand All @@ -36,12 +36,12 @@ may not be changed without due process.

**Creator:** GBIF/TDWG Multimedia Resources Task Group and Audubon Core Maintenance Group

**Bibliographic citation:** Audubon Core Maintenance Group. 2021. Audubon Core Term List. Biodiversity Information Standards (TDWG). http://rs.tdwg.org/ac/doc/termlist/2021-10-05
**Bibliographic citation:** Audubon Core Maintenance Group. 2022. Audubon Core Term List. Biodiversity Information Standards (TDWG). <http://rs.tdwg.org/ac/doc/termlist/2022-02-23>


## 1 Introduction

There are a number of documents included in the Aububon Core Standard. This document provides details about the terms included in the 2021-10-05 version of the Audubon Core vocabulary. The [Audubon Core Introduction](introduction.md) document provides a brief introduction to the Audubon Core Standard. For information about the structure of Audubon Core, see the [Audubon Core Structure](structure.md) document. For a more detailed guide to the use of Audubon Core, see the [Audubon Core Guide](guide.md) document.
There are a number of documents included in the Aububon Core Standard. This document provides details about the terms included in the 2022-02-23 version of the Audubon Core vocabulary. The [Audubon Core Introduction](introduction.md) document provides a brief introduction to the Audubon Core Standard. For information about the structure of Audubon Core, see the [Audubon Core Structure](structure.md) document. For a more detailed guide to the use of Audubon Core, see the [Audubon Core Guide](guide.md) document.


### 1.1 Status of the content of this document
Expand Down
Loading

0 comments on commit 3368875

Please sign in to comment.