Schema.org recommends https, but validation fails because this requires http
vorburger opened this issue · 1 comments
In the context of enola-dev/enola#757, I've just run into:
/home/vorburger/git/github.com/enola-dev/enola/docs/models/enola.dev/files.linkml.yaml
warning Schema maps prefix 'schema' to namespace 'https://schema.org/' instead of namespace 'http://schema.org/' (canonical_prefixes)
According to https://schema.org/docs/faq.html#19, both https://schema.org and http://schema.org are valid... and the (current) canonical definition at source is actually using https
already and not http
(anymore, I guess) - so for a new schema, I'd like to use https
.
It's http
here, but https
here, but that doesn't seem to be loaded or used? (I'm not sure how this relates to #26 ?)
According to https://linkml.io/linkml/schemas/linter.html#canonical-prefixes, I suspect I could somehow overwrite this via prefixmaps_contexts
, but I haven't understood how, yet.
I'll just work around it by disabling that lint rule entirely in the meantime.
I'll just work around it by disabling that lint rule entirely in the meantime.
FTR: That causes a lot of ("ugly") WARNING:Namespaces:schema namespace is already mapped to https://schema.org/ - Mapping to http://schema.org/ ignored
.