Skip to content

Commit f554946

Browse files
authored
Standardize YAML in ontology metadata frontmatter (OBOFoundry#1985)
* Standardize YAML in ontology metadata frontmatter This PR does the following: 1. Introduces a Python script util/standardize_metadata.py that sorts and properly indents all of the metadata in all ontology metadata files' frontmatter 2. Adds a unit test to ensure that this metadata is sorted Why do this? It makes it much easier to programatically edit these files without creating massive diffs (after the massive diff in this PR, at least). There are several ways we might want to automatically maintain these metadata, such as the list of dependencies for each ontology. * Update tox.ini * Update aao.md * Update test_integrity.py * Modify dumping procedure * Cleanup * Set up package for code reuse * Update config.yamllint * Add extra examples * Update standardize_metadata.py * Cleanup * Update setup.cfg
1 parent 7e0477a commit f554946

File tree

251 files changed

+4694
-4522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+4694
-4522
lines changed

.gitignore

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
reports
22
util/__pycache__/
33
util/principles/__pycache__/
4-
build/
54
.jekyll-cache/
65
.DS_Store
76
/_site
@@ -12,3 +11,22 @@ build/
1211
tmp/
1312
*.tmp
1413
.venv
14+
15+
# Distribution / packaging
16+
.Python
17+
build/
18+
develop-eggs/
19+
downloads/
20+
eggs/
21+
.eggs/
22+
lib/
23+
lib64/
24+
parts/
25+
sdist/
26+
var/
27+
wheels/
28+
share/python-wheels/
29+
*.egg-info/
30+
.installed.cfg
31+
*.egg
32+
MANIFEST

ontology/aao.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ title: Amphibian gross anatomy
55
contact:
66
77
label: David Blackburn
8-
taxon:
9-
id: NCBITaxon:8292
10-
label: Amphibia
118
homepage: http://github.com/seger/aao
129
is_obsolete: true
1310
replaced_by: uberon
11+
taxon:
12+
id: NCBITaxon:8292
13+
label: Amphibia
1414
activity_status: inactive
1515
---
1616

ontology/ado.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ id: ado
44
title: Alzheimer's Disease Ontology
55
contact:
66
7-
label: Alpha Tom Kodamullil
87
github: akodamullil
8+
label: Alpha Tom Kodamullil
99
orcid: 0000-0001-9896-3531
10+
dependencies:
11+
- id: bfo
1012
description: Alzheimer's Disease Ontology is a knowledge-based ontology that encompasses varieties of concepts related to Alzheimer'S Disease, structured by upper level Basic Formal Ontology(BFO). This Ontology is enriched by the interrelated entities that demonstrate the network of the understanding on Alzheimer's disease and can be readily applied for text mining.
1113
domain: health
1214
homepage: https://github.com/Fraunhofer-SCAI-Applied-Semantics/ADO
13-
products:
14-
- id: ado.owl
15-
dependencies:
16-
- id: bfo
17-
tracker: https://github.com/Fraunhofer-SCAI-Applied-Semantics/ADO/issues
1815
license:
19-
url: https://creativecommons.org/licenses/by/4.0/
2016
label: CC BY 4.0
21-
repository: https://github.com/Fraunhofer-SCAI-Applied-Semantics/ADO
17+
url: https://creativecommons.org/licenses/by/4.0/
2218
preferredPrefix: ADO
19+
products:
20+
- id: ado.owl
21+
repository: https://github.com/Fraunhofer-SCAI-Applied-Semantics/ADO
22+
tracker: https://github.com/Fraunhofer-SCAI-Applied-Semantics/ADO/issues
2323
activity_status: active
2424
---
2525

ontology/aeo.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
22
layout: ontology_detail
33
id: aeo
4+
title: Anatomical Entity Ontology
5+
build:
6+
checkout: git clone https://github.com/obophenotype/human-developmental-anatomy-ontology.git
7+
method: vcs
8+
path: src/ontology
9+
system: git
410
contact:
511
612
label: Jonathan Bard
7-
license:
8-
url: https://creativecommons.org/licenses/by/4.0/
9-
label: CC BY 4.0
1013
description: AEO is an ontology of anatomical structures that expands CARO, the Common Anatomy Reference Ontology
1114
domain: anatomy and development
1215
homepage: https://github.com/obophenotype/human-developmental-anatomy-ontology/
13-
tracker: https://github.com/obophenotype/human-developmental-anatomy-ontology/issues
16+
license:
17+
label: CC BY 4.0
18+
url: https://creativecommons.org/licenses/by/4.0/
19+
preferredPrefix: AEO
1420
products:
15-
- id: aeo.owl
16-
title: Anatomical Entity Ontology
17-
build:
18-
checkout: git clone https://github.com/obophenotype/human-developmental-anatomy-ontology.git
19-
system: git
20-
path: src/ontology
21-
method: vcs
22-
activity_status: inactive
21+
- id: aeo.owl
2322
repository: https://github.com/obophenotype/human-developmental-anatomy-ontology
24-
preferredPrefix: AEO
23+
tracker: https://github.com/obophenotype/human-developmental-anatomy-ontology/issues
24+
activity_status: inactive
2525
---
2626

2727
The AEO is an ontology of anatomical structures that expands CARO, the Common Anatomy Reference Ontology, to about 160 classes using the is_a relationship; it thus provides a detailed type classification for tissues. The ~100 new classes were chosen for their use in categorizing the major vertebrate and invertebrate anatomy ontologies at a granularity adequate for tissues of a single cell type. This site is to be used for posting details of the ontologies and updates

ontology/aero.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
layout: ontology_detail
33
id: aero
4+
title: Adverse Event Reporting Ontology
5+
build:
6+
method: owl2obo
7+
source_url: http://purl.obolibrary.org/obo/aero.owl
48
contact:
5-
orcid: 0000-0002-9551-6370
69
710
label: Melanie Courtot
11+
orcid: 0000-0002-9551-6370
812
description: The Adverse Event Reporting Ontology (AERO) is an ontology aimed at supporting clinicians at the time of data entry, increasing quality and accuracy of reported adverse events
9-
license:
10-
url: http://creativecommons.org/licenses/by/3.0/
11-
label: CC BY 3.0
1213
domain: health
1314
homepage: http://purl.obolibrary.org/obo/aero
1415
is_obsolete: true
16+
license:
17+
label: CC BY 3.0
18+
url: http://creativecommons.org/licenses/by/3.0/
1519
products:
16-
- id: aero.owl
17-
title: Adverse Event Reporting Ontology
18-
build:
19-
source_url: http://purl.obolibrary.org/obo/aero.owl
20-
method: owl2obo
20+
- id: aero.owl
2121
activity_status: inactive
2222
---
2323

ontology/agro.md

+40-40
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,57 @@
22
layout: ontology_detail
33
id: agro
44
title: Agronomy Ontology
5-
license:
6-
url: https://creativecommons.org/licenses/by/4.0/
7-
label: CC BY 4.0
8-
domain: agriculture
9-
tags:
10-
- agronomy
115
build:
126
checkout: git clone https://github.com/AgriculturalSemantics/agro.git
7+
path: .
138
system: git
14-
path: "."
15-
description: Ontology of agronomic practices, agronomic techniques, and agronomic variables used in agronomic experiments
16-
homepage: https://github.com/AgriculturalSemantics/agro
179
contact:
1810
11+
github: marieALaporte
1912
label: Marie-Angélique Laporte
20-
github: "marieALaporte"
2113
orcid: 0000-0002-8461-9745
14+
dependencies:
15+
- id: envo
16+
- id: go
17+
- id: foodon
18+
- id: ncbitaxon
19+
- id: pato
20+
- id: peco
21+
- id: po
22+
- id: to
23+
- id: ro
24+
- id: bfo
25+
- id: iao
26+
- id: obi
27+
- id: uo
28+
- id: xco
29+
description: Ontology of agronomic practices, agronomic techniques, and agronomic variables used in agronomic experiments
30+
domain: agriculture
31+
homepage: https://github.com/AgriculturalSemantics/agro
32+
jobs:
33+
- id: https://travis-ci.org/AgriculturalSemantics/agro
34+
type: travis-ci
35+
license:
36+
label: CC BY 4.0
37+
url: https://creativecommons.org/licenses/by/4.0/
38+
preferredPrefix: AGRO
2239
products:
23-
- id: agro.owl
24-
title: "AgrO"
25-
description: "Contains all AgrO terms and links to other relavent ontologies."
40+
- id: agro.owl
41+
title: AgrO
42+
description: Contains all AgrO terms and links to other relavent ontologies.
2643
publications:
27-
- id: http://ceur-ws.org/Vol-1747/IT205_ICBO2016.pdf
28-
title: "Data-driven Agricultural Research for Development: A Need for Data Harmonization Via Semantics."
29-
usages:
30-
- user: https://agrofims.org/about
31-
description: AgroFIMS enables digital collection of agronomic data that is semantically described a priori with agronomic terms from AgrO.
32-
- user: https://gardian.bigdata.cgiar.org/
33-
description: AgrO is being used by GARDIAN to facilitate data search within publications and datasets for use in quantitative analyses.
34-
jobs:
35-
- id: https://travis-ci.org/AgriculturalSemantics/agro
36-
type: travis-ci
44+
- id: http://ceur-ws.org/Vol-1747/IT205_ICBO2016.pdf
45+
title: 'Data-driven Agricultural Research for Development: A Need for Data Harmonization Via Semantics.'
46+
repository: https://github.com/AgriculturalSemantics/agro
47+
tags:
48+
- agronomy
3749
tracker: https://github.com/AgriculturalSemantics/agro/issues/
50+
usages:
51+
- description: AgroFIMS enables digital collection of agronomic data that is semantically described a priori with agronomic terms from AgrO.
52+
user: https://agrofims.org/about
53+
- description: AgrO is being used by GARDIAN to facilitate data search within publications and datasets for use in quantitative analyses.
54+
user: https://gardian.bigdata.cgiar.org/
3855
activity_status: active
39-
repository: https://github.com/AgriculturalSemantics/agro
40-
dependencies:
41-
- id: envo
42-
- id: go
43-
- id: foodon
44-
- id: ncbitaxon
45-
- id: pato
46-
- id: peco
47-
- id: po
48-
- id: to
49-
- id: ro
50-
- id: bfo
51-
- id: iao
52-
- id: obi
53-
- id: uo
54-
- id: xco
55-
preferredPrefix: AGRO
5656
---
5757

5858
AgrO, the Agronomy Ontology, describes agronomic practices, techniques, and variables used in agronomic experiments. AgrO is being built using traits identified by agronomists, the ICASA variables, and other existing ontologies such as ENVO, UO, PATO, IAO, and CHEBI. Further, AgrO powers AgroFIMS, the Agronomy Fieldbook and Information Management System modeled on a CGIAR Breeding Management System to capture agronomic data.

ontology/aism.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ id: aism
44
title: Ontology for the Anatomy of the Insect SkeletoMuscular system (AISM)
55
build:
66
checkout: git clone https://github.com/insect-morphology/aism
7+
path: .
78
system: git
8-
path: "."
99
contact:
1010
11-
label: Jennifer C. Girón
1211
github: JCGiron
12+
label: Jennifer C. Girón
1313
orcid: 0000-0002-0851-6883
14+
dependencies:
15+
- id: ro
16+
- id: uberon
17+
- id: caro
18+
- id: pato
19+
- id: bfo
20+
- id: bspo
1421
description: The AISM contains terms used in insect biodiversity research for describing structures of the exoskeleton and the skeletomuscular system. It aims to serve as the basic backbone of generalized terms to be expanded with order-specific terminology.
1522
domain: anatomy and development
1623
homepage: https://github.com/insect-morphology/aism
17-
products:
18-
- id: aism.owl
19-
- id: aism.obo
20-
- id: aism.json
21-
dependencies:
22-
- id: ro
23-
- id: uberon
24-
- id: caro
25-
- id: pato
26-
- id: bfo
27-
- id: bspo
28-
tracker: https://github.com/insect-morphology/aism/issues
2924
license:
30-
url: https://creativecommons.org/licenses/by/4.0/
3125
label: CC BY 4.0
32-
activity_status: active
33-
repository: https://github.com/insect-morphology/aism
26+
url: https://creativecommons.org/licenses/by/4.0/
3427
preferredPrefix: AISM
28+
products:
29+
- id: aism.owl
30+
- id: aism.obo
31+
- id: aism.json
32+
repository: https://github.com/insect-morphology/aism
33+
tracker: https://github.com/insect-morphology/aism/issues
34+
activity_status: active
3535
---

ontology/amphx.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ id: amphx
44
title: The Amphioxus Development and Anatomy Ontology
55
build:
66
checkout: git clone https://github.com/EBISPOT/amphx_ontology.git
7+
path: .
78
system: git
8-
path: "."
99
contact:
1010
11-
label: Hector Escriva
1211
github: hescriva
12+
label: Hector Escriva
1313
orcid: 0000-0001-7577-5028
14+
dependencies:
15+
- id: uberon
1416
description: An ontology for the development and anatomy of Amphioxus (Branchiostoma lanceolatum).
1517
domain: anatomy and development
1618
homepage: https://github.com/EBISPOT/amphx_ontology
17-
products:
18-
- id: amphx.owl
19-
- id: amphx.obo
20-
dependencies:
21-
- id: uberon
22-
tracker: https://github.com/EBISPOT/amphx_ontology/issues
2319
license:
24-
url: http://creativecommons.org/licenses/by/3.0/
2520
label: CC BY 3.0
26-
activity_status: active
27-
repository: https://github.com/EBISPOT/amphx_ontology
21+
url: http://creativecommons.org/licenses/by/3.0/
2822
preferredPrefix: AMPHX
23+
products:
24+
- id: amphx.owl
25+
- id: amphx.obo
26+
repository: https://github.com/EBISPOT/amphx_ontology
27+
tracker: https://github.com/EBISPOT/amphx_ontology/issues
28+
activity_status: active
2929
---
3030

3131
The Amphioxus Development and Anatomy Ontology (AMPHX) is to describe the anatomy and development of Amphioxus, also known as lancelet, member of the invertebrate subphylum Cephalochordata and the phylum Chordata. This ontology is intended to be used for description of gene expression in amphioxus (e.g. Insitus, RNA-seq). The ontology was created in the context of the European project CORBEL (https://www.corbel-project.eu/home.html), and used in the database MARIMBA (http://marimba.obs-vlfr.fr/home).

ontology/apo.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
---
22
layout: ontology_detail
33
id: apo
4+
title: Ascomycete phenotype ontology
5+
build:
6+
method: obo2owl
7+
source_url: https://raw.githubusercontent.com/obophenotype/ascomycete-phenotype-ontology/master/apo.obo
48
contact:
59
6-
label: Stacia R Engel
710
github: srengel
11+
label: Stacia R Engel
812
orcid: 0000-0001-5472-917X
9-
tracker: https://github.com/obophenotype/ascomycete-phenotype-ontology/issues
10-
license:
11-
url: https://creativecommons.org/licenses/by/4.0/
12-
label: CC BY 4.0
1313
description: A structured controlled vocabulary for the phenotypes of Ascomycete fungi
1414
domain: phenotype
1515
homepage: http://www.yeastgenome.org/
16+
license:
17+
label: CC BY 4.0
18+
url: https://creativecommons.org/licenses/by/4.0/
19+
preferredPrefix: APO
1620
products:
17-
- id: apo.owl
18-
- id: apo.obo
21+
- id: apo.owl
22+
- id: apo.obo
23+
publications:
24+
- id: https://www.ncbi.nlm.nih.gov/pubmed/20157474
25+
title: New mutant phenotype data curation system in the Saccharomyces Genome Database
26+
repository: https://github.com/obophenotype/ascomycete-phenotype-ontology
1927
taxon:
2028
id: NCBITaxon:4890
2129
label: Ascomycota
22-
title: Ascomycete phenotype ontology
23-
build:
24-
source_url: https://raw.githubusercontent.com/obophenotype/ascomycete-phenotype-ontology/master/apo.obo
25-
method: obo2owl
30+
tracker: https://github.com/obophenotype/ascomycete-phenotype-ontology/issues
2631
activity_status: active
27-
repository: https://github.com/obophenotype/ascomycete-phenotype-ontology
28-
preferredPrefix: APO
29-
publications:
30-
- id: https://www.ncbi.nlm.nih.gov/pubmed/20157474
31-
title: "New mutant phenotype data curation system in the Saccharomyces Genome Database"
3232
---

0 commit comments

Comments
 (0)