Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions linkml_model/model/schema/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ prefixes:
xsd: http://www.w3.org/2001/XMLSchema#
shex: http://www.w3.org/ns/shex#
schema: http://schema.org/
xh11d: http://www.w3.org/1999/xhtml/datatypes/

default_prefix: linkml
default_range: string
Expand Down Expand Up @@ -129,6 +130,8 @@ types:
description: a URI or a CURIE
notes: >-
If you are authoring schemas in LinkML YAML, the type is referenced with the lower case "uriorcurie".
exact_mappings:
- xh11d:CURIEorIRI

curie:
uri: xsd:string
Expand All @@ -141,6 +144,8 @@ types:
notes: >-
If you are authoring schemas in LinkML YAML, the type is referenced with the lower case "curie".
conforms_to: https://www.w3.org/TR/curie/
exact_mappings:
- xh11d:CURIE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, not blocking: xh11d:CURIE makes the prefix and the colon optional (foo on its own is a valid CURIE there), while linkml-runtime's Curie needs the colon. conforms_to: https://www.w3.org/TR/curie/ above already has the same looseness, so I'm fine keeping this as exact.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then would you rather see this under broad_mappings? Is that a valid field in LinkML's metamodel?


uri:
uri: xsd:anyURI
Expand Down
Loading