Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema.org recommends https, but validation fails because this requires http #73

Open
vorburger opened this issue Jun 28, 2024 · 2 comments

Comments

@vorburger
Copy link

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.

@vorburger
Copy link
Author

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.

@dalito
Copy link

dalito commented Jan 12, 2025

Maybe this is more a linkml-lint problem that a prefixmap problem? It would already be nice if linkml-lint could be configured to accept both the http and the https form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants