comparison env/lib/python3.9/site-packages/cwltool/schemas/v1.1/salad/schema_salad/metaschema/ident_res.yml @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 - |
2 ## Identifier resolution
3
4 The schema may designate one or more fields as identifier fields to identify
5 specific objects. Processing must resolve relative identifiers to absolute
6 identifiers using the following rules:
7
8 * If an identifier URI is prefixed with `#` it is a URI relative
9 fragment identifier. It is resolved relative to the base URI by setting
10 or replacing the fragment portion of the base URI.
11
12 * If an identifier URI does not contain a scheme and is not prefixed `#` it
13 is a parent relative fragment identifier. It is resolved relative to the
14 base URI by the following rule: if the base URI does not contain a
15 document fragment, set the fragment portion of the base URI. If the base
16 URI does contain a document fragment, append a slash `/` followed by the
17 identifier field to the fragment portion of the base URI.
18
19 * If an identifier URI begins with a namespace prefix declared in
20 `$namespaces` followed by a colon `:`, the prefix and colon must be
21 replaced by the namespace declared in `$namespaces`.
22
23 * If an identifier URI is an absolute URI consisting of a scheme and path,
24 no processing occurs.
25
26 When preprocessing visits a node containing an identifier, that identifier
27 must be used as the base URI to process child nodes.
28
29 It is an error for more than one object in a document to have the same
30 absolute URI.
31
32 ### Identifier resolution example
33
34 Given the following schema:
35
36 ```
37 - $include: ident_res_schema.yml
38 - |
39 ```
40
41 Process the following example:
42
43 ```
44 - $include: ident_res_src.yml
45 - |
46 ```
47
48 This becomes:
49
50 ```
51 - $include: ident_res_proc.yml
52 - |
53 ```