Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shex for Standard Annotations #319

Merged
merged 49 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
2653043
Added gitignore to the python folder
tmushayahama Nov 30, 2022
9fa10ae
Added gitignore to python folder
tmushayahama Nov 30, 2022
bb16075
fix: exclude_from_extensions to boolean from list of booleans
tmushayahama Nov 30, 2022
fe59fb4
inits on adding linkml for shex term metadata
tmushayahama Dec 1, 2022
7865212
added more excluded from extension from noctua workbench call
tmushayahama Dec 1, 2022
2928775
fix actions syntax errors
sierra-moxon Dec 1, 2022
c065ee8
add schema prefix
sierra-moxon Dec 1, 2022
fd4db53
add an import for shex_json_linkml
sierra-moxon Dec 1, 2022
51496e2
Adding the shex shorthand for overriding the labels
tmushayahama Dec 8, 2022
f42f808
Merge branch 'json-export' of https://github.com/geneontology/go-shap…
tmushayahama Dec 8, 2022
9e692ab
Added root_subject on linkml and json export.py
tmushayahama Dec 8, 2022
75935b3
Adding has_primary_input and has_primary_output to MF shape
vanaukenk Dec 20, 2022
da98e4d
Merge pull request #295 from geneontology/vanaukenk-patch-15
vanaukenk Dec 20, 2022
6c0ccd2
Adding has_primary_input and has_primary_output to transporter activi…
vanaukenk Dec 20, 2022
6c37c71
Merge pull request #296 from geneontology/vanaukenk-patch-15
vanaukenk Dec 20, 2022
f83e745
Update go-cam-shapes.shex
vanaukenk Feb 2, 2023
ea9910b
Merge pull request #297 from geneontology/vanaukenk-patch-16
vanaukenk Feb 2, 2023
bc20e6e
Update go-cam-shapes.shex
vanaukenk Mar 9, 2023
7029cd6
Merge pull request #300 from geneontology/vanaukenk-patch-16
vanaukenk Mar 10, 2023
7510696
Allow multiple enablers
balhoff Dec 5, 2023
878330e
Replace obsolete native cell with cell
balhoff Dec 5, 2023
c3c6a74
Fix additional mentions of native cell
balhoff Dec 5, 2023
292b1e0
Replace CHEBI term in test.
balhoff Dec 14, 2023
8ddf833
Merge branch 'broken-CI' into balhoff-patch-3
balhoff Dec 14, 2023
cf8ada5
Merge pull request #304 from geneontology/balhoff-patch-3
balhoff Dec 14, 2023
ce6a6c6
Merge branch 'master' into balhoff-patch-2
balhoff Dec 14, 2023
3bedb1e
Merge pull request #303 from geneontology/balhoff-patch-2
balhoff Dec 14, 2023
f017aae
Fix obsolete GO terms in test models. (#308)
balhoff Mar 6, 2024
22fe43a
Create WIP_standard_annot_ShEx
vanaukenk Mar 19, 2024
ed0b67e
Merge pull request #310 from geneontology/vanaukenk-patch-16
vanaukenk Mar 19, 2024
c289f9a
Update WIP_standard_annot_ShEx
vanaukenk Mar 19, 2024
64f97bd
Merge pull request #311 from geneontology/vanaukenk-patch-17
vanaukenk Mar 19, 2024
84e894a
resolve conflict
tmushayahama Mar 20, 2024
3bab2e7
Update go-cam-shapes.shex
vanaukenk May 1, 2024
363464c
Merge pull request #312 from geneontology/vanaukenk-patch-16
vanaukenk May 1, 2024
3320990
Update WIP_standard_annot_ShEx
vanaukenk May 2, 2024
6d7897b
Merge pull request #313 from geneontology/vanaukenk-patch-16
vanaukenk May 2, 2024
675934d
Update README.md
vanaukenk May 9, 2024
7a87fd5
Update go-cam-shapes.shex
vanaukenk May 9, 2024
3734d2e
Update go-cam-shapes.shex
vanaukenk May 10, 2024
967a11e
Update go-cam-shapes.shex
vanaukenk May 10, 2024
f54cfdb
Update go-cam-shapes.shex
vanaukenk May 13, 2024
7c532a8
Merge pull request #316 from geneontology/master
tmushayahama May 21, 2024
636ab22
updated the json export code to use the curies lib
tmushayahama May 21, 2024
3835c79
Merge pull request #315 from geneontology/issue-noctua-standard-annot…
tmushayahama May 30, 2024
5db4d99
Update go-cam-shapes.shex
vanaukenk Jun 4, 2024
20f3b23
Now using the curies lib
tmushayahama Jun 5, 2024
62c52c6
Merge pull request #318 from geneontology/issue-noctua-standard-annot…
tmushayahama Jun 8, 2024
9a5d31f
Merge branch 'dev' into json-export
tmushayahama Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gen-project-linkml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python ${{ "{{" }} matrix.python-version {{ "}}" }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ "{{" }} matrix.python-version {{ "}}" }}
python-version: ${{ matrix.python-version }}

#----------------------------------------------
# install & configure poetry
Expand Down
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
}
]
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Using RDF Shapes to define the schema of Gene Ontology Causal Activity Models


# Schema

See [shapes/go-cam-shapes.shex](shapes/go-cam-shapes.shex)
Expand Down
138 changes: 138 additions & 0 deletions python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/
6 changes: 3 additions & 3 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ f-%: tests/data/f-%.ttl
python ./gocam_validator.py $< && exit -1 || echo FAILED AS EXPECTED

gen-python:
rm -f shex_json_linkml.py && gen-python schema/shex_json_linkml.yaml > shex_json_linkml.py
rm -f shex_json_linkml.py && gen-python schema/shex_term_metadata_json_linkml.yaml > shex_term_metadata_json_linkml.py

#gen-pydantic:
# rm -f shex_json_linkml.py && gen-pydantic schema/shex_json_linkml.yaml > shex_json_linkml.py

gen-jsonschema:
rm -f target/jsonschema/shex_json_linkml.json && gen-json-schema schema/shex_json_linkml.yaml > target/jsonschema/shex_json_linkml.json
rm -f target/jsonschema/shex_terms_metadata_json_linkml.json && gen-json-schema schema/shex_terms_metadata_json_linkml.yaml > target/jsonschema/shex_terms_metadata_json_linkml.json

gen-typescript:
rm -f target/typescript/shex_json_linkml.ts && gen-typescript schema/shex_json_linkml.yaml > target/typescript/shex_json_linkml.ts
rm -f target/typescript/shex_terms_metadata_json_linkml.ts && gen-typescript schema/shex_terms_metadata_json_linkml.yaml > target/typescript/shex_terms_metadata_json_linkml.ts

linkml: gen-python gen-jsonschema gen-typescript

Expand Down
Loading
Loading