Skip to content

Commit

Permalink
Merge branch 'version_4' into master as part of v 4.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwelter committed Nov 21, 2017
2 parents 3c61f94 + 5eeab02 commit 220240f
Show file tree
Hide file tree
Showing 61 changed files with 2,236 additions and 1,258 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@ language: python
# python versions to be used for testing
python:
- "3.6"



install:
- pip install -r requirements.txt

script:
- cd src
# python test.py
## temporary patch
- python simple_test.py
- python sample_test.py
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[![Build Status](https://travis-ci.org/HumanCellAtlas/metadata-schema.svg)](https://travis-ci.org/HumanCellAtlas/metadata-schema)


# The Human Cell Atlas Metadata Schema

This repo contains the HCA metadata metadata json schemas.
This repo contains the HCA metadata JSON schemas.

The **design-principles** can be read in the [linked google-doc](https://docs.google.com/document/d/1eUVpYDLu2AxmxRw2ZUMM-jpKNxQudJbznNyNRp35nLc/edit?usp=sharing)
The **design-principles** can be read in the [linked Google Doc](https://docs.google.com/document/d/1eUVpYDLu2AxmxRw2ZUMM-jpKNxQudJbznNyNRp35nLc/edit?usp=sharing).


How to contribute is described in [contributing.md](https://github.com/HumanCellAtlas/metadata-schema/blob/master/contributing.md)
How to contribute is described in [contributing.md](https://github.com/HumanCellAtlas/metadata-schema/blob/master/contributing.md).

2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This file is a place holder for the update process procedure.

You can read the work in progress in [HCA metadata lifecycle and versioning](https://docs.google.com/document/d/1eUVpYDLu2AxmxRw2ZUMM-jpKNxQudJbznNyNRp35nLc/edit?usp=sharing)
You can read the work in progress in [HCA metadata lifecycle and versioning](https://docs.google.com/document/d/1eUVpYDLu2AxmxRw2ZUMM-jpKNxQudJbznNyNRp35nLc/edit?usp=sharing).
35 changes: 35 additions & 0 deletions json_meta_schema/ontology_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"graph_restriction": {
"description": "A JSON schema extension field used to specify which ontology terms are valid for a\n field, based on their graph location. A graph consists of edges representing \n classification (subClassOf) and simple existential restrictions \n (e.g. eye subClassOf part_of some head). Graph location is specified via a list \n of objectProperties to follow and a list of grouping classes. \n All ontologies and OWL entities are specified using CURIEs. \n CURIE resolution depends on an extenal resolution service (e.g. identifiers.org) \n or JSON-LD mapping file. \n",
"type": "object",
"required": [
"ontologies",
"relations",
"classes",
"include_self",
"direct"
],
"additionalProperties": false,
"properties": {
"ontologies": {
"description": "A list of valid ontologies. Each ontology is specified using a CURIE.\n",
"type": "array",
"items": "string"
}
},
"relations": {
"description": "A list of relations (object properties) to use for graph-based term grouping. Each property is specified using a CURIE. type: array Items: string \n"
},
"classes": {
"description": "A list of grouping classes. Each class is specified using a CURIE\n type: array\n items: string \n"
},
"include_self": {
"description": "A boolean allowing specification of whether the graph query should return the specified grouping classes(es).\n",
"type": "boolean"
},
"direct": {
"description": "A bolean specifying return of all descendant classes (False) or direct child classes only (True).\n",
"type": "boolean"
}
}
}
38 changes: 38 additions & 0 deletions json_meta_schema/ontology_meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
graph_restriction:
description: >
A JSON schema extension field used to specify which ontology terms are valid for a
field, based on their graph location. A graph consists of edges representing
classification (subClassOf) and simple existential restrictions
(e.g. eye subClassOf part_of some head). Graph location is specified via a list
of objectProperties to follow and a list of grouping classes.
All ontologies and OWL entities are specified using CURIEs.
CURIE resolution depends on an extenal resolution service (e.g. identifiers.org)
or JSON-LD mapping file.
# Question: Should the mapping service or file be specified in schema?
type: object
required: [ontologies, relations, classes, include_self, direct] # we could potentially make relations optional if subClassOf-only is default.
additionalProperties: False
properties:
ontologies:
description: >
A list of valid ontologies. Each ontology is specified using a CURIE.
type: array
items: string
relations:
description: >
A list of relations (object properties) to use for graph-based term grouping. Each property is specified using a CURIE.
type: array
Items: string
classes:
description: >
A list of grouping classes. Each class is specified using a CURIE
type: array
items: string
include_self:
description: >
A boolean allowing specification of whether the graph query should return the specified grouping classes(es).
type: boolean
direct:
description: >
A bolean specifying return of all descendant classes (False) or direct child classes only (True).
type: boolean
Loading

0 comments on commit 220240f

Please sign in to comment.