Skip to content

Commit 12da28d

Browse files
committed
Proposal: Add string types for encoding document paths.
Partially addresses linkml/linkml#1470
1 parent c948de3 commit 12da28d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

linkml_model/model/schema/types.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,31 @@ types:
155155
base: NodeIdentifier
156156
repr: str
157157
description: A URI, CURIE or BNODE that represents a node in a model.
158+
159+
jsonpointer:
160+
uri: xsd:string
161+
base: str
162+
repr: str
163+
description: >-
164+
A string encoding a JSON Pointer. The value of the string MUST conform to JSON Point syntax and
165+
SHOULD dereference to a valid object within the current instance document when encoded in tree form.
166+
conforms_to: https://datatracker.ietf.org/doc/html/rfc6901
167+
168+
jsonpath:
169+
uri: xsd:string
170+
base: str
171+
repr: str
172+
description: >-
173+
A string encoding a JSON Path. The value of the string MUST conform to JSON Point syntax and
174+
SHOULD dereference to zero or more valid objects within the current instance document when encoded
175+
in tree form.
176+
conforms_to: https://www.ietf.org/archive/id/draft-goessner-dispatch-jsonpath-00.html
177+
178+
sparqlpath:
179+
uri: xsd:string
180+
base: str
181+
repr: str
182+
description: >-
183+
A string encoding a SPARQL Property Path. The value of the string MUST conform to SPARQL syntax and
184+
SHOULD dereference to zero or more valid objects within the current instance document when encoded as RDF.
185+
conforms_to: https://www.w3.org/TR/sparql11-query/#propertypaths

0 commit comments

Comments
 (0)