-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build compiled models * add ontologies * queries refer to compiled models. add link to cmpiled model too * add deps * include java for topquadrant shacl * remove unneeded files * more visibility * find onntology * get curdir * use correct 223p file * update 223p.ttl * shorter compile times, fix query formatting? * prioritize compiled model * fixing links
- Loading branch information
Showing
21 changed files
with
121,954 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.PHONY: all environment compile-models clean refresh-ontoenv | ||
|
||
# Assuming 'all' should build everything. If 'environment' is a task that should be run, | ||
# you need to add a corresponding recipe for it. | ||
all: refresh-ontoenv compile-models | ||
|
||
# MODEL_SOURCES will find all .ttl files in the models directory. | ||
MODEL_SOURCES := $(wildcard models/*.ttl) | ||
|
||
# COMPILED_MODELS will be the list of files but in the models/compiled folder. | ||
COMPILED_MODELS := $(patsubst models/%.ttl,models/compiled/%.ttl,$(MODEL_SOURCES)) | ||
|
||
refresh-ontoenv: | ||
ontoenv init -s ontologies/ -v | ||
|
||
# Rule to compile each model. | ||
# The prerequisite 'models/%.ttl' means it will match each .ttl file in the models directory. | ||
# 'tools/compile.py' ensures the compile script is present, but should be a prerequisite only if you want to track changes on it. | ||
# 'ontologies/*.ttl' captures changes in any .ttl file in the ontologies directory. | ||
models/compiled/%.ttl: models/%.ttl tools/compile.py | ||
python tools/compile.py -r -i -o $@ $< ontologies/223p.ttl | ||
|
||
# The compile-models target will "make" all of the COMPILED_MODELS. | ||
compile-models: $(COMPILED_MODELS) | ||
|
||
# Rule to clean up the compiled models. | ||
clean: | ||
rm -f models/compiled/*.ttl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.