feat: declare scoro: for http://purl.org/spar/scoro #547

Merged
mih merged 4 commits from flat into main 2026-03-03 15:15:16 +00:00
7 changed files with 16 additions and 6 deletions

View file

@ -6,6 +6,9 @@ on:
- main
pull_request:
env:
PYTHONWARNINGS: ignore
jobs:
lint:
runs-on: ubuntu-latest

View file

@ -14,6 +14,9 @@ concurrency:
group: "pages"
cancel-in-progress: false
env:
PYTHONWARNINGS: ignore
jobs:
build:
runs-on: ubuntu-latest

View file

@ -6,6 +6,9 @@ on:
- main
pull_request:
env:
PYTHONWARNINGS: ignore
jobs:
lint:
runs-on: ubuntu-latest

View file

@ -280,13 +280,13 @@ convertexamples/%: src/%.yaml src/%/examples
[ "$$ex" = "$<" ] && continue; \
echo "Converting $$ex" ; \
for outf in json rdf; do \
linkml-convert \
-s "$<" \
( cd $$(dirname "$<"); linkml-convert \
-s "$$(basename "$<")" \
--target-class-from-path \
--infer \
-t "$$outf" \
"$$ex" \
> $${ex%.yaml}.$${outf}.tmp && \
../../"$$ex" \
) > $${ex%.yaml}.$${outf}.tmp && \
mv $${ex%.yaml}.$${outf}.tmp $${ex%.yaml}.$${outf} ; \
done \
done

View file

@ -9,7 +9,7 @@ index bcf13d0f..feb5b7bc 100644
import os
import re
+from collections import defaultdict
from collections.abc import Iterator
from collections.abc import Callable, Iterator
from copy import copy
from dataclasses import dataclass
+from graphlib import TopologicalSorter

View file

@ -33,7 +33,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"linkml",
"linkml >= 1.10",
"dump-things-service",
]

View file

@ -41,6 +41,7 @@ prefixes:
CiTO: http://purl.org/spar/cito/
ISSN: http://identifiers.org/issn/
ODRL: http://www.w3.org/ns/odrl/2/
SCoRO: http://purl.org/spar/scoro/
bibo: http://purl.org/ontology/bibo/
# TODO preliminary definition, pointing to a future resolver
datalad: https://pid.datalad.org/datasets/