Skip to content

Commit

Permalink
Merge pull request #149 from linkml/add-curies-to-types
Browse files Browse the repository at this point in the history
Adding a curie type
  • Loading branch information
cmungall authored Feb 4, 2023
2 parents b412e72 + d026d8a commit ceb2ad6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions linkml_model/model/schema/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,28 @@ types:
repr: str
description: a URI or a CURIE

curie:
uri: xsd:string
base: Curie
repr: str
description: a compact URI
comments:
- in RDF serializations this MUST be expanded to a URI
- in non-RDF serializations MAY be serialized as the compact representation
conforms_to: https://www.w3.org/TR/curie/

uri:
uri: xsd:anyURI
base: URI
repr: str
description: a complete URI
comments:
- >-
in RDF serializations a slot with range of uri is treated as a literal or type xsd:anyURI unless it is an identifier or
a reference to an identifier, in which case it is translated directly to a node
close_mappings:
- schema:URL
conforms_to: https://www.ietf.org/rfc/rfc3987.txt

ncname:
uri: xsd:string
Expand Down

0 comments on commit ceb2ad6

Please sign in to comment.