Skip to content

Commit df51e5c

Browse files
authored
Merge pull request #234 from deepakunni3/prepare-for-pypi-release
Prepare for pypi release
2 parents e92f1ad + d86a937 commit df51e5c

File tree

12 files changed

+189
-201
lines changed

12 files changed

+189
-201
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ target/
66
test-*
77
metamodel/metamodel.py-PREV
88
tests/test_scripts/temp/
9+
biolink/*-PREV
910

1011
# Jekyll
1112
Gemfile.lock

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ imgflags?=--noimages
1515
all: install tests build
1616

1717
# Build the biolink model python library
18-
python: biolinkmodel/datamodel.py
18+
python: biolink/model.py
1919
docs: docs/index.md
2020
json-schema: json-schema/biolink-model.json
2121

@@ -43,7 +43,7 @@ env.lock:
4343
# ~~~~~~~~~~~~~~~~~~~~
4444
# Python
4545
# ~~~~~~~~~~~~~~~~~~~~
46-
biolinkmodel/datamodel.py: biolink-model.yaml env.lock
46+
biolink/model.py: biolink-model.yaml env.lock
4747
pipenv run gen-py-classes $< > tmp.py && pipenv run python tmp.py && (pipenv run comparefiles tmp.py $@ && cp $@ $@-PREV && cp tmp.py $@); rm tmp.py
4848

4949

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ The yaml definition is currently used to derive:
9090
- these can be compiled down to Solr XML schemas
9191
- these are also intermediate targets used within the BBOP/AmiGO framework
9292
- [JSON Schema](json-schema)
93-
- [Python dataclasses](biolinkmodel/datamodel.py)
94-
- [marshmallow schema definitions](biolinkmodel/schema.py)
93+
- [Python dataclasses](biolink/model.py)
94+
- [marshmallow schema definitions](biolink/schema.py)
9595
- can be used to serialize/deserialize python object model to JSON and YAML
9696
- [Java code gen](java)
9797
- [Jackson annotations](https://github.com/FasterXML/jackson-annotations) used be default

biolink-model.owl

Lines changed: 145 additions & 145 deletions
Large diffs are not rendered by default.

biolink-model.ttl

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -171,30 +171,30 @@
171171
"rdfs",
172172
"skos",
173173
"xsd" ;
174-
:generation_date "2019-06-27 17:08"^^xsd:dateTime ;
174+
:generation_date "2019-06-27 20:42"^^xsd:dateTime ;
175175
:id <https://w3id.org/biolink/biolink-model> ;
176176
:imports <biolinkml:types> ;
177177
:metamodel_version "1.3.5" ;
178-
:prefixes [ :prefix_prefix "SIO" ;
179-
:prefix_reference <http://semanticscience.org/resource/SIO_> ],
180-
[ :prefix_prefix "biolink" ;
181-
:prefix_reference <https://w3id.org/biolink/vocab/> ],
178+
:prefixes [ :prefix_prefix "xsd" ;
179+
:prefix_reference xsd: ],
182180
[ :prefix_prefix "OBAN" ;
183181
:prefix_reference <http://purl.org/oban/> ],
184-
[ :prefix_prefix "UMLSSG" ;
185-
:prefix_reference <https://uts-ws.nlm.nih.gov/rest/semantic-network/semantic-network/current/GROUP/> ],
186-
[ :prefix_prefix "biolinkml" ;
187-
:prefix_reference <https://w3id.org/biolink/biolinkml/> ],
188-
[ :prefix_prefix "xsd" ;
189-
:prefix_reference xsd: ],
182+
[ :prefix_prefix "biolink" ;
183+
:prefix_reference <https://w3id.org/biolink/vocab/> ],
190184
[ :prefix_prefix "meta" ;
191185
:prefix_reference : ],
192-
[ :prefix_prefix "UMLSSC" ;
193-
:prefix_reference <https://uts-ws.nlm.nih.gov/rest/semantic-network/semantic-network/current/TUI/> ],
194186
[ :prefix_prefix "metatype" ;
195187
:prefix_reference metatype: ],
196188
[ :prefix_prefix "UMLSST" ;
197189
:prefix_reference <https://uts-ws.nlm.nih.gov/rest/semantic-network/semantic-network/current/STY/> ],
190+
[ :prefix_prefix "UMLSSC" ;
191+
:prefix_reference <https://uts-ws.nlm.nih.gov/rest/semantic-network/semantic-network/current/TUI/> ],
192+
[ :prefix_prefix "SIO" ;
193+
:prefix_reference <http://semanticscience.org/resource/SIO_> ],
194+
[ :prefix_prefix "UMLSSG" ;
195+
:prefix_reference <https://uts-ws.nlm.nih.gov/rest/semantic-network/semantic-network/current/GROUP/> ],
196+
[ :prefix_prefix "biolinkml" ;
197+
:prefix_reference <https://w3id.org/biolink/biolinkml/> ],
198198
[ :prefix_prefix "wgs" ;
199199
:prefix_reference <http://www.w3.org/2003/01/geo/wgs84_pos> ] ;
200200
:slots <https://w3id.org/biolink/vocab/actively_involved_in>,
@@ -456,7 +456,7 @@
456456
<https://w3id.org/biolink/vocab/variant_to_thing_association_subject>,
457457
<https://w3id.org/biolink/vocab/xenologous_to> ;
458458
:source_file "biolink-model.yaml" ;
459-
:source_file_date "Thu Jun 27 17:01:19 2019"^^xsd:dateTime ;
459+
:source_file_date "Thu Jun 27 16:58:59 2019"^^xsd:dateTime ;
460460
:source_file_size 107043 ;
461461
:subsets <https://w3id.org/biolink/vocab/testing>,
462462
<https://w3id.org/biolink/vocab/translator_minimal> ;
@@ -3788,11 +3788,11 @@
37883788
:inherited true ;
37893789
:is_a <https://w3id.org/biolink/vocab/regulates_entity_to_entity> ;
37903790
:local_names [ a :LocalName ;
3791-
skos:altLabel "activity directly positively regulates activity of" ;
3792-
:local_name_source "ro" ],
3793-
[ a :LocalName ;
37943791
skos:altLabel "positively regulates" ;
3795-
:local_name_source "translator" ] ;
3792+
:local_name_source "translator" ],
3793+
[ a :LocalName ;
3794+
skos:altLabel "activity directly positively regulates activity of" ;
3795+
:local_name_source "ro" ] ;
37963796
:mixins <https://w3id.org/biolink/vocab/positively_regulates> ;
37973797
:multivalued true ;
37983798
:owner <https://w3id.org/biolink/vocab/positively_regulates_entity_to_entity> ;
@@ -8131,11 +8131,11 @@
81318131
:domain <https://w3id.org/biolink/vocab/Association> ;
81328132
:is_a <https://w3id.org/biolink/vocab/association_slot> ;
81338133
:local_names [ a :LocalName ;
8134-
skos:altLabel "node with outgoing relationship" ;
8135-
:local_name_source "neo4j" ],
8136-
[ a :LocalName ;
81378134
skos:altLabel "annotation subject" ;
8138-
:local_name_source "ga4gh" ] ;
8135+
:local_name_source "ga4gh" ],
8136+
[ a :LocalName ;
8137+
skos:altLabel "node with outgoing relationship" ;
8138+
:local_name_source "neo4j" ] ;
81398139
:owner <https://w3id.org/biolink/vocab/Association> ;
81408140
:range <https://w3id.org/biolink/vocab/iri_type> ;
81418141
:required true ;

biolinkmodel/__init__.py renamed to biolink/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
BIOLINK_MODEL_JSON = os.path.join(basedir, 'biolink-model.json')
1111
BIOLINK_MODEL_JSON_SCHEMA = os.path.join(basedir, 'json-schema', 'biolink-model.json')
1212
BIOLINK_MODEL_JAVA = os.path.join(basedir, 'java')
13-
BIOLINK_MODEL_PYTHON = os.path.join(basedir, 'biolinkmodel', 'biolink-model.py')
13+
BIOLINK_MODEL_PYTHON = os.path.join(basedir, 'biolink', 'model.py')

biolinkmodel/datamodel.py renamed to biolink/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Auto generated from biolink-model.yaml by pythongen.py version: 0.2.0
2-
# Generation date: 2019-06-27 17:07
2+
# Generation date: 2019-06-27 17:41
33
# Schema: biolink_model
44
#
55
# id: https://w3id.org/biolink/biolink-model

biolinkmodel/examples/examples.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

context.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_comments": "Auto generated from biolink-model.yaml by jsonldcontextgen.py version: 0.0.2\nGeneration date: 2019-06-27 17:08\nSchema: biolink_model\n\nid: https://w3id.org/biolink/biolink-model\ndescription: Entity and association taxonomy and datamodel for life-sciences data\nlicense: https://creativecommons.org/publicdomain/zero/1.0/\n",
2+
"_comments": "Auto generated from biolink-model.yaml by jsonldcontextgen.py version: 0.0.2\nGeneration date: 2019-06-27 20:42\nSchema: biolink_model\n\nid: https://w3id.org/biolink/biolink-model\ndescription: Entity and association taxonomy and datamodel for life-sciences data\nlicense: https://creativecommons.org/publicdomain/zero/1.0/\n",
33
"@context": {
44
"_comments": null,
55
"type": "@type",

setup.cfg

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[metadata]
2-
name = biolink-model
2+
name = biolink_model
3+
description = 'A high level datamodel of biological entities and associations'
4+
version = 1.2.0
35
url = https://github.com/biolink/biolink-model
46
author = Harold Solbrig
57
author-email = [email protected]
@@ -8,15 +10,21 @@ home-page = https://biolink.github.io/biolink-model/docs/
810
license = CC0 1.0 Universal
911
python-requires = >=3.7
1012
classifier =
11-
Development Status :: 4 - Beta
1213
Environment :: Console
1314
Intended Audience :: Developers
1415
Intended Audience :: Science/Research
1516
Intended Audience :: Healthcare Industry
17+
Topic :: Scientific/Engineering :: Bio-informatics
1618
License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
1719
Programming Language :: Python :: 3 :: Only
1820
Programming Language :: Python :: 3.6
1921
Programming Language :: Python :: 3.7
2022
keywords =
21-
biolink
22-
model
23+
BioLink
24+
Datamodel
25+
NCATS
26+
NCATS-Translator
27+
28+
[files]
29+
packages =
30+
biolink

0 commit comments

Comments
 (0)