Skip to content

Commit 2f470eb

Browse files
authored
Merge pull request #63 from linkml/finish_poetry
add commands for jsonschema translator to pyproject.toml
2 parents 06cf392 + 851bbeb commit 2f470eb

File tree

5 files changed

+16
-47
lines changed

5 files changed

+16
-47
lines changed

CHANGELOG.md

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

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tool
2020

2121
## Installation
2222

23-
`linkml-model-enrichment` and its components require Python 3.9 or greater.
23+
`schema-automator` and its components require Python 3.9 or greater.
2424

2525
```bash
2626
chmod 755 environment.sh
@@ -158,3 +158,8 @@ Options:
158158
-o, --output TEXT output path
159159
--help Show this message and exit.
160160
```
161+
162+
### jsonschema2linkml example
163+
```bash
164+
poetry run jsonschema2linkml -n test-model -f yaml -o vrs-linkml.yaml cp tests/resources/jsonschema/vrs.schema.json
165+
```

pre_poetry/test_combined_tsv_enum.py

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

pyproject.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ requires = ["poetry-core>=1.0.0"]
4343
build-backend = "poetry.core.masonry.api"
4444

4545
[tool.poetry.scripts]
46-
tsv2linkml = "linkml_model_enrichment.importers.csv_import_engine:tsv2model"
47-
owl2linkml = "linkml_model_enrichment.importers.owl_import_engine:owl2model"
48-
enum_annotator = "linkml_model_enrichment.annotators.enum_annotator:enum_annotator"
49-
enums_to_curateable = "linkml_model_enrichment.annotators.enums_to_curateable:enums_to_curateable"
50-
curated_to_enums = "linkml_model_enrichment.annotators.curated_to_enums:curated_to_enums"
51-
46+
tsv2linkml = "schema_automator.importers.csv_import_engine:tsv2model"
47+
enum_annotator = "schema_automator.annotators.enum_annotator:enum_annotator"
48+
enums_to_curateable = "schema_automator.annotators.enums_to_curateable:enums_to_curateable"
49+
curated_to_enums = "schema_automator.annotators.curated_to_enums:curated_to_enums"
50+
rdf2linkml = "schema_automator.importers.rdf_instance_import_engine:rdf2model"
51+
owl2linkml = "schema_automator.importers.owl_import_engine:owl2model"
52+
dosdp2linkml = "schema_automator.importers.owl_import_engine:dosdp2model"
53+
jsondata2linkml = "schema_automator.importers.json_instance_import_engine:json2model"
54+
jsonschema2linkml = "schema_automator.importers.jsonschema_import_engine:jsonschema2model"
5255

tests/test_from_jsonschema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def test_convert_vrs(self):
5757
"""Test JSONSchema conversion."""
5858
schema = self._convert('vrs.schema', 'json')
5959

60+
6061
def test_phenopackets(self):
6162
schema = self._convert('phenopackets.schema', 'json',
6263
name='phenopackets',

0 commit comments

Comments
 (0)