Skip to content

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

@vorburger

Description

@vorburger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions