Giter Site home page Giter Site logo

joelrichardson / agr_schemas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alliance-genome/agr_schemas

0.0 1.0 0.0 8.97 MB

A repository of JSON schemas for incorporating data into the Alliance of Genome Resources.

License: MIT License

Python 82.47% Dockerfile 8.92% Shell 1.31% Makefile 7.30%

agr_schemas's Introduction

Build Status Build Status

Alliance JSON Ingest Schemas and Data Dictionary

This directory contains JSON schemas used to define data for integration into the Alliance of Genome Resources and defines the data dictionary of the Alliance data store.

Validation

The python script "agr_validate.py" can be used to validate a JSON entry against a schema for testing/development purposes. Usage is as follows: agr_validate.py -d test_data.json -s base_schema.json

For the basic Gene info file run ./agr_validate.py -d <your_new_gene_file.json> -s gene/geneMetaData.json for the disease info file run ./agr_validate.py -d <your_new_disease_file.json> -s disease/diseaseMetaDataDefinition.json and for the allele info file run ./agr_validate.py -d <your_new_allele_file.json> -s allele/alleleMetaData.json

The java script "agr_validate_schema.sh" can be used to validate that the schema file itself conforms to the draft-4 version of the JSON schema spec and will run on PR into master.

For validating all schema files in a branch: ./agr_validate_schema.sh

GOCD Validation

JSON schema files are validated by the Continuous Integration / Deployment System (GOCD) through a JAVA JSON validator made available through the Docker base container. This is because the JAVA implementation is much more strict than the Python implementation. This validation is called by the default command in the Docker files. The way the java works is that the Dockerfile points to a directory full of JSON files. Java opens each file and checks for the "$schema": "http://json-schema.org/draft-04/schema#", property if its found then it validates it, otherwise ignores the file.

In order to run these validations locally install Docker and then run the command:

make run

Data Dictionary

The Alliance Data Dictionary is a set of information that describes the content, format and structure of the nodes and relations in the Alliance data store. metaschema.yaml defines the potential content of each sub-schema. Each file is named according to its corresponding node label.

agr_schemas's People

Contributors

adamjohnwright avatar chris-grove avatar christabone avatar cmpich avatar cmungall avatar edwong57 avatar felixgondwe avatar gildossantos avatar jdepons avatar joelrichardson avatar jogoodma avatar nidak21 avatar oblodgett avatar sierra-moxon avatar srengel avatar valearna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.