Skip to content
Snippets Groups Projects
Unverified Commit a20708e6 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Build schema

parent f8f4f8f6
No related branches found
No related tags found
No related merge requests found
OUTDIR := public OUTDIR := public
BASE_URI := https://hacknnext.diy
NEXTS = $(wildcard nexts/*) NEXTS = $(wildcard nexts/*)
$(OUTDIR)/schema/index.jsonld: schema.yaml
mkdir -p "$(@D)"
gen-jsonld-context --no-mergeimports --base "https://hacknnext.diy/schema#" schema.yaml >"$@"
$(OUTDIR)/schema/index.ttl: schema.yaml
mkdir -p "$(@D)"
gen-rdf --no-mergeimports schema.yaml >"$@"
$(OUTDIR)/nexts/%/instructions.pdf: nexts/%/instructions.typ nexts/%/next.yaml $(wildcard parts/*/*) $(wildcard templates/*) $(OUTDIR)/nexts/%/instructions.pdf: nexts/%/instructions.typ nexts/%/next.yaml $(wildcard parts/*/*) $(wildcard templates/*)
mkdir -p "$(@D)" mkdir -p "$(@D)"
typst compile --root . "$<" "$@" typst compile --root . "$<" "$@"
$(OUTDIR)/nexts/%/index.jsonld: nexts/%/next.yaml schema.yaml $(OUTDIR)/nexts/%/index.jsonld: nexts/%/next.yaml $(OUTDIR)/schema/index.jsonld
mkdir -p "$(@D)" mkdir -p "$(@D)"
linkml-convert -t json-ld -s schema.yaml -C Next -o "$@" "$<" linkml-convert -t json-ld -s schema.yaml -C Next -c "$(BASE_URI)/schema/index.jsonld" -o "$@" "$<"
$(OUTDIR)/nexts/%/index.ttl: nexts/%/next.yaml schema.yaml $(OUTDIR)/nexts/%/index.ttl: nexts/%/next.yaml $(OUTDIR)/schema/index.ttl
mkdir -p "$(@D)" mkdir -p "$(@D)"
linkml-convert -t ttl -s schema.yaml -C Next -o "$@" "$<" linkml-convert -t ttl -s schema.yaml -C Next -o "$@" "$<"
......
...@@ -62,17 +62,6 @@ classes: ...@@ -62,17 +62,6 @@ classes:
range: integer range: integer
required: true required: true
minimum_value: 1 minimum_value: 1
Catalog:
tree_root: true
attributes:
nexts:
multivalued: true
inlined_as_list: true
range: Next
parts:
multivalued: true
inlined_as_list: true
range: Part
Transition: Transition:
class_uri: sf:Transition class_uri: sf:Transition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment