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

Build schema

parent f8f4f8f6
Branches main
No related tags found
No related merge requests found
OUTDIR := public
BASE_URI := https://hacknnext.diy
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/*)
mkdir -p "$(@D)"
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)"
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)"
linkml-convert -t ttl -s schema.yaml -C Next -o "$@" "$<"
......
......@@ -62,17 +62,6 @@ classes:
range: integer
required: true
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:
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