feat: declare scoro: for http://purl.org/spar/scoro #547
7 changed files with 16 additions and 6 deletions
3
.github/workflows/model-checks.yml
vendored
3
.github/workflows/model-checks.yml
vendored
|
|
@ -6,6 +6,9 @@ on:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHONWARNINGS: ignore
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
3
.github/workflows/sitebuild.yml
vendored
3
.github/workflows/sitebuild.yml
vendored
|
|
@ -14,6 +14,9 @@ concurrency:
|
||||||
group: "pages"
|
group: "pages"
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHONWARNINGS: ignore
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
3
.github/workflows/validate-examples.yaml
vendored
3
.github/workflows/validate-examples.yaml
vendored
|
|
@ -6,6 +6,9 @@ on:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHONWARNINGS: ignore
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
8
Makefile
8
Makefile
|
|
@ -280,13 +280,13 @@ convertexamples/%: src/%.yaml src/%/examples
|
||||||
[ "$$ex" = "$<" ] && continue; \
|
[ "$$ex" = "$<" ] && continue; \
|
||||||
echo "Converting $$ex" ; \
|
echo "Converting $$ex" ; \
|
||||||
for outf in json rdf; do \
|
for outf in json rdf; do \
|
||||||
linkml-convert \
|
( cd $$(dirname "$<"); linkml-convert \
|
||||||
-s "$<" \
|
-s "$$(basename "$<")" \
|
||||||
--target-class-from-path \
|
--target-class-from-path \
|
||||||
--infer \
|
--infer \
|
||||||
-t "$$outf" \
|
-t "$$outf" \
|
||||||
"$$ex" \
|
../../"$$ex" \
|
||||||
> $${ex%.yaml}.$${outf}.tmp && \
|
) > $${ex%.yaml}.$${outf}.tmp && \
|
||||||
mv $${ex%.yaml}.$${outf}.tmp $${ex%.yaml}.$${outf} ; \
|
mv $${ex%.yaml}.$${outf}.tmp $${ex%.yaml}.$${outf} ; \
|
||||||
done \
|
done \
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ index bcf13d0f..feb5b7bc 100644
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
+from collections import defaultdict
|
+from collections import defaultdict
|
||||||
from collections.abc import Iterator
|
from collections.abc import Callable, Iterator
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
+from graphlib import TopologicalSorter
|
+from graphlib import TopologicalSorter
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ classifiers = [
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"linkml",
|
"linkml >= 1.10",
|
||||||
"dump-things-service",
|
"dump-things-service",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ prefixes:
|
||||||
CiTO: http://purl.org/spar/cito/
|
CiTO: http://purl.org/spar/cito/
|
||||||
ISSN: http://identifiers.org/issn/
|
ISSN: http://identifiers.org/issn/
|
||||||
ODRL: http://www.w3.org/ns/odrl/2/
|
ODRL: http://www.w3.org/ns/odrl/2/
|
||||||
|
SCoRO: http://purl.org/spar/scoro/
|
||||||
bibo: http://purl.org/ontology/bibo/
|
bibo: http://purl.org/ontology/bibo/
|
||||||
# TODO preliminary definition, pointing to a future resolver
|
# TODO preliminary definition, pointing to a future resolver
|
||||||
datalad: https://pid.datalad.org/datasets/
|
datalad: https://pid.datalad.org/datasets/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue