Skip to content

Commit ceb2ad6

Browse files
authored
Merge pull request #149 from linkml/add-curies-to-types
Adding a curie type
2 parents b412e72 + d026d8a commit ceb2ad6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

linkml_model/model/schema/types.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,28 @@ types:
113113
repr: str
114114
description: a URI or a CURIE
115115

116+
curie:
117+
uri: xsd:string
118+
base: Curie
119+
repr: str
120+
description: a compact URI
121+
comments:
122+
- in RDF serializations this MUST be expanded to a URI
123+
- in non-RDF serializations MAY be serialized as the compact representation
124+
conforms_to: https://www.w3.org/TR/curie/
125+
116126
uri:
117127
uri: xsd:anyURI
118128
base: URI
119129
repr: str
120130
description: a complete URI
131+
comments:
132+
- >-
133+
in RDF serializations a slot with range of uri is treated as a literal or type xsd:anyURI unless it is an identifier or
134+
a reference to an identifier, in which case it is translated directly to a node
121135
close_mappings:
122136
- schema:URL
137+
conforms_to: https://www.ietf.org/rfc/rfc3987.txt
123138

124139
ncname:
125140
uri: xsd:string

0 commit comments

Comments
 (0)