comparison env/lib/python3.7/site-packages/schema_salad/metaschema/field_name.yml @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
comparison
equal deleted inserted replaced
4:79f47841a781 5:9b1c78e6ba9c
1 - |
2 ## Field name resolution
3
4 The document schema declares the vocabulary of known field names. During
5 preprocessing traversal, field name in the document which are not part of
6 the schema vocabulary must be resolved to absolute URIs. Under "strict"
7 validation, it is an error for a document to include fields which are not
8 part of the vocabulary and not resolvable to absolute URIs. Fields names
9 which are not part of the vocabulary are resolved using the following
10 rules:
11
12 * If an field name URI begins with a namespace prefix declared in the
13 document context (`@context`) followed by a colon `:`, the prefix and
14 colon must be replaced by the namespace declared in `@context`.
15
16 * If there is a vocabulary term which maps to the URI of a resolved
17 field, the field name must be replace with the vocabulary term.
18
19 * If a field name URI is an absolute URI consisting of a scheme and path
20 and is not part of the vocabulary, no processing occurs.
21
22 Field name resolution is not relative. It must not be affected by the
23 base URI.
24
25 ### Field name resolution example
26
27 Given the following schema:
28
29 ```
30 - $include: field_name_schema.yml
31 - |
32 ```
33
34 Process the following example:
35
36 ```
37 - $include: field_name_src.yml
38 - |
39 ```
40
41 This becomes:
42
43 ```
44 - $include: field_name_proc.yml
45 - |
46 ```