Skip to content

Commit

Permalink
Merge pull request #18 from Knowledge-Graph-Hub/rearrange-2
Browse files Browse the repository at this point in the history
moved schema into proj_name folder
  • Loading branch information
hrshdhgd authored Jun 21, 2022
2 parents bc27807 + 7e2eceb commit 3157268
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doc_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
- name: Build documentation.
run: |
touch docs/.nojekyll
poetry run gen-doc -d docs src/schema/neat_ml_schema.yaml
poetry run gen-doc -d docs src/neat_ml_schema/schema/neat_ml_schema.yaml
poetry run mkdocs gh-deploy
6 changes: 3 additions & 3 deletions .github/workflows/qc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
virtualenvs-in-project: true
# with:
# virtualenvs-create: true
# virtualenvs-in-project: true

#----------------------------------------------
# load cached venv if cache exists
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ git-init-add: git-init git-add git-commit git-status
git-init:
git init
git-add:
git add .gitignore .github Makefile LICENSE *.md examples utils about.yaml mkdocs.yml poetry.lock project.Makefile pyproject.toml src/schema/*yaml src/*/datamodel/*py src/data
git add .gitignore .github Makefile LICENSE *.md examples utils about.yaml mkdocs.yml poetry.lock project.Makefile pyproject.toml src/neat_ml_schema/schema/*yaml src/*/datamodel/*py src/data
git add $(patsubst %, project/%, $(PROJECT_FOLDERS))
git-commit:
git commit -m 'Initial commit' -a
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Neat-ml schema

Neat-ml schema defines the schema in the form of a [YAML file](https://github.com/Knowledge-Graph-Hub/neat-ml-schema/blob/main/neat_ml_schema/src/schema/neat-ml-schema.yaml) for data going into graph ML pipelines (specifically [NEAT](https://github.com/Knowledge-Graph-Hub/neat-ml)). This project itself is generated using the command `linkml-ws new` derived from the [linkML](https://github.com/linkml/linkml) project.
Neat-ml schema defines the schema in the form of a [YAML file](https://github.com/Knowledge-Graph-Hub/neat-ml-schema/blob/main/neat_ml_schema/src/neat_ml_schema/schema/neat-ml-schema.yaml) for data going into graph ML pipelines (specifically [NEAT](https://github.com/Knowledge-Graph-Hub/neat-ml)). This project itself is generated using the command `linkml-ws new` derived from the [linkML](https://github.com/linkml/linkml) project.

[Documentation](https://knowledge-graph-hub.github.io/neat-ml-schema/)
2 changes: 1 addition & 1 deletion about.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: neat_ml_schema
description: Schema for driving NEAT
source_schema_path: neat_ml_schema/src/schema/neat_ml_schema.yaml
source_schema_path: neat_ml_schema/src/neat_ml_schema/schema/neat_ml_schema.yaml
2 changes: 1 addition & 1 deletion docs/about.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# About NEAT schema

This project defines the schema in the form of a [YAML file](https://github.com/Knowledge-Graph-Hub/neat_ml_schema/blob/main/src/schema/neat_ml_schema.yaml) for data going into graph ML pipelines (specifically [NEAT](https://github.com/Knowledge-Graph-Hub/NEAT)). NEAT schema itself is generated from a [linkML](https://github.com/linkml/linkml) template.
This project defines the schema in the form of a [YAML file](https://github.com/Knowledge-Graph-Hub/neat_ml_schema/blob/main/src/neat_ml_schema/schema/neat_ml_schema.yaml) for data going into graph ML pipelines (specifically [NEAT](https://github.com/Knowledge-Graph-Hub/NEAT)). NEAT schema itself is generated from a [linkML](https://github.com/linkml/linkml) template.
Empty file added src/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion src/docs/about.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# About NEAT schema

This project defines the schema in the form of a [YAML file](https://github.com/Knowledge-Graph-Hub/neat_ml_schema/blob/main/src/schema/neat_ml_schema.yaml) for data going into graph ML pipelines (specifically [NEAT](https://github.com/Knowledge-Graph-Hub/NEAT)). NEAT schema itself is generated from a [linkML](https://github.com/linkml/linkml) template.
This project defines the schema in the form of a [YAML file](https://github.com/Knowledge-Graph-Hub/neat_ml_schema/blob/main/src/neat_ml_schema/schema/neat_ml_schema.yaml) for data going into graph ML pipelines (specifically [NEAT](https://github.com/Knowledge-Graph-Hub/NEAT)). NEAT schema itself is generated from a [linkML](https://github.com/linkml/linkml) template.
1 change: 1 addition & 0 deletions src/neat_ml_schema/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .datamodel.neat_ml_schema import *
Empty file.
File renamed without changes.
4 changes: 3 additions & 1 deletion tests/test_neat_ml_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def setUpClass(cls) -> None:
def setUp(self) -> None:
"""More setup."""
cwd = os.path.dirname(__file__)
self.project_dir = os.path.join(os.getcwd(), "src/schema/")
self.project_dir = os.path.join(
os.getcwd(), "src/neat_ml_schema/schema/"
)
self.resource_dir = os.path.join(cwd, "resources")
self.GOOD_YAML_FILENAME = "test_good.yaml"
self.BAD_YAML_FILENAME = "test_bad.yaml"
Expand Down

0 comments on commit 3157268

Please sign in to comment.