|
3 | 3 | ## 2.0.2 - 2020-04-20 |
4 | 4 |
|
5 | 5 | ### Fixed |
6 | | -* Fix inverse context cache indexing to use the uuid field. |
| 6 | +- Fix inverse context cache indexing to use the uuid field. |
7 | 7 |
|
8 | 8 | ## 2.0.1 - 2020-04-15 |
9 | 9 |
|
|
20 | 20 | spec and some of the defaults changed. |
21 | 21 |
|
22 | 22 | ### Changed |
23 | | -* **BREAKING**: Versions of Python before 3.6 are no longer supported. |
24 | | -* Update conformance docs. |
25 | | -* Add all keywords and update options. |
26 | | -* Default `processingMode` to `json-ld-1.1`. |
27 | | -* Implement logic for marking tests as pending, so that it will fail if a |
| 23 | +- **BREAKING**: Versions of Python before 3.6 are no longer supported. |
| 24 | +- Update conformance docs. |
| 25 | +- Add all keywords and update options. |
| 26 | +- Default `processingMode` to `json-ld-1.1`. |
| 27 | +- Implement logic for marking tests as pending, so that it will fail if a |
28 | 28 | pending test passes. |
29 | | -* Consolidate `documentLoader` option and defaults into a `load_document` method |
| 29 | +- Consolidate `documentLoader` option and defaults into a `load_document` method |
30 | 30 | to also handle JSON (eventually HTML) parsing. |
31 | | -* Add support for `rel=alternate` for non-JSON-LD docs. |
32 | | -* Use `lxml.html` to load HTML and parse in `load_html`. |
33 | | - * For HTML, the API base option can be updated from base element. |
34 | | -* Context processing: |
35 | | - * Support `@propagate` in context processing and propagate option. |
36 | | - * Support for `@import`. (Some issues confusing recursion errors for invalid |
| 31 | +- Add support for `rel=alternate` for non-JSON-LD docs. |
| 32 | +- Use `lxml.html` to load HTML and parse in `load_html`. |
| 33 | + - For HTML, the API base option can be updated from base element. |
| 34 | +- Context processing: |
| 35 | + - Support `@propagate` in context processing and propagate option. |
| 36 | + - Support for `@import`. (Some issues confusing recursion errors for invalid |
37 | 37 | contexts). |
38 | | - * Make `override_protected` and `propagate` optional arguments to |
| 38 | + - Make `override_protected` and `propagate` optional arguments to |
39 | 39 | `_create_term_definition` and `_process_context` instead of using option |
40 | 40 | argument. |
41 | | - * Improve management of previous contexts. |
42 | | - * Imported contexts must resolve to an object. |
43 | | - * Do remote context processing from within `_process_contexts`, as logic is |
| 41 | + - Improve management of previous contexts. |
| 42 | + - Imported contexts must resolve to an object. |
| 43 | + - Do remote context processing from within `_process_contexts`, as logic is |
44 | 44 | too complicated for pre-loading. Removes `_find_context_urls` and |
45 | 45 | `_retrieve_context_urls`. |
46 | | - * Added a `ContextResolver` which can use a shared LRU cache for storing |
| 46 | + - Added a `ContextResolver` which can use a shared LRU cache for storing |
47 | 47 | externally retrieved contexts, and the result of processing them relative |
48 | 48 | to a particular active context. |
49 | | - * Return a `frozendict` from context processing and reduce deepcopies. |
50 | | - * Store inverse context in an LRU cache rather than trying to modify a frozen context. |
51 | | - * Don't set `@base` in initial context and don't resolve a relative IRI |
| 49 | + - Return a `frozendict` from context processing and reduce deepcopies. |
| 50 | + - Store inverse context in an LRU cache rather than trying to modify a frozen context. |
| 51 | + - Don't set `@base` in initial context and don't resolve a relative IRI |
52 | 52 | when setting `@base` in a context, so that the document location can |
53 | 53 | be kept separate from the context itself. |
54 | | - * Use static initial contexts composed of just `mappings` and `processingMode` |
| 54 | + - Use static initial contexts composed of just `mappings` and `processingMode` |
55 | 55 | to enhance preprocessed context cachability. |
56 | | -* Create Term Definition: |
57 | | - * Allow `@type` as a term under certain circumstances. |
58 | | - * Reject and warn on keyword-like terms. |
59 | | - * Support protected term definitions. |
60 | | - * Look for keyword patterns and warn/return. |
61 | | - * Look for terms that are compact IRIs that don't expand to the same thing. |
62 | | - * Basic support for `@json` and `@none` as values of `@type`. |
63 | | - * If `@container` includes `@type`, `@type` must be `@id` or `@vocab`. |
64 | | - * Support `@index` and `@direction`. |
65 | | - * Corner-case checking for `@prefix`. |
66 | | - * Validate scoped contexts even if not used. |
67 | | - * Support relative vocabulary IRIs. |
68 | | - * Fix check that term has the form of an IRI. |
69 | | - * Delay adding mapping to end of `_create_term_definition`. |
70 | | - * If a scoped context is null, wrap it in an array so it doesn't seem to be |
| 56 | +- Create Term Definition: |
| 57 | + - Allow `@type` as a term under certain circumstances. |
| 58 | + - Reject and warn on keyword-like terms. |
| 59 | + - Support protected term definitions. |
| 60 | + - Look for keyword patterns and warn/return. |
| 61 | + - Look for terms that are compact IRIs that don't expand to the same thing. |
| 62 | + - Basic support for `@json` and `@none` as values of `@type`. |
| 63 | + - If `@container` includes `@type`, `@type` must be `@id` or `@vocab`. |
| 64 | + - Support `@index` and `@direction`. |
| 65 | + - Corner-case checking for `@prefix`. |
| 66 | + - Validate scoped contexts even if not used. |
| 67 | + - Support relative vocabulary IRIs. |
| 68 | + - Fix check that term has the form of an IRI. |
| 69 | + - Delay adding mapping to end of `_create_term_definition`. |
| 70 | + - If a scoped context is null, wrap it in an array so it doesn't seem to be |
71 | 71 | undefined. |
72 | | -* IRI Expansion: |
73 | | - * Find keyword patterns. |
74 | | - * Don't treat terms starting with a colon as IRIs. |
75 | | - * Only return a resulting IRI if it is absolute. |
76 | | - * Fix `_is_absolute_iri` to use a reasonable regular expression and some |
| 72 | +- IRI Expansion: |
| 73 | + - Find keyword patterns. |
| 74 | + - Don't treat terms starting with a colon as IRIs. |
| 75 | + - Only return a resulting IRI if it is absolute. |
| 76 | + - Fix `_is_absolute_iri` to use a reasonable regular expression and some |
77 | 77 | other `_expand_iri issues`. |
78 | | - * Fix to detecting relative IRIs. |
79 | | - * Fix special case where relative path should not have a leading '/' |
80 | | - * Pass in document location (through 'base' option) and use when resolving |
| 78 | + - Fix to detecting relative IRIs. |
| 79 | + - Fix special case where relative path should not have a leading '/' |
| 80 | + - Pass in document location (through 'base' option) and use when resolving |
81 | 81 | document-relative IRIs. |
82 | | -* IRI Compaction: |
83 | | - * Pass in document location (through 'base' option) and use when compacting |
| 82 | +- IRI Compaction: |
| 83 | + - Pass in document location (through 'base' option) and use when compacting |
84 | 84 | document-relative IRIs. |
85 | | -* Compaction: |
86 | | - * Compact `@direction`. |
87 | | - * Compact `@type`: `@none`. |
88 | | - * Compact `@included`. |
89 | | - * Honor `@container`: `@set` on `@type`. |
90 | | - * Lists of Lists. |
91 | | - * Improve handling of scoped contexts and propagate. |
92 | | - * Improve map compaction, including indexed properties. |
93 | | - * Catch Absolute IRI confused with prefix. |
94 | | -* Expansion: |
95 | | - * Updates to expansion algorithm. |
96 | | - * `_expand_value` adds `@direction` from term definition. |
97 | | - * JSON Literals. |
98 | | - * Support `@direction` when expanding. |
99 | | - * Support lists of lists. |
100 | | - * Support property indexes. |
101 | | - * Improve graph container expansion. |
102 | | - * Order types when applying scoped contexts. |
103 | | - * Use `type_scoped_ctx` when expanding values of `@type`. |
104 | | - * Use propagate and `override_protected` properly when creating expansion |
| 85 | +- Compaction: |
| 86 | + - Compact `@direction`. |
| 87 | + - Compact `@type`: `@none`. |
| 88 | + - Compact `@included`. |
| 89 | + - Honor `@container`: `@set` on `@type`. |
| 90 | + - Lists of Lists. |
| 91 | + - Improve handling of scoped contexts and propagate. |
| 92 | + - Improve map compaction, including indexed properties. |
| 93 | + - Catch Absolute IRI confused with prefix. |
| 94 | +- Expansion: |
| 95 | + - Updates to expansion algorithm. |
| 96 | + - `_expand_value` adds `@direction` from term definition. |
| 97 | + - JSON Literals. |
| 98 | + - Support `@direction` when expanding. |
| 99 | + - Support lists of lists. |
| 100 | + - Support property indexes. |
| 101 | + - Improve graph container expansion. |
| 102 | + - Order types when applying scoped contexts. |
| 103 | + - Use `type_scoped_ctx` when expanding values of `@type`. |
| 104 | + - Use propagate and `override_protected` properly when creating expansion |
105 | 105 | contexts. |
106 | | -* Flattening: |
107 | | - * Rewrite `_create_node_map` based on 1.1 algorithm. |
108 | | - * Flatten `@included`. |
109 | | - * Flatten lists of lists. |
110 | | - * Update `merge_node_maps` for `@type`. |
111 | | -* Framing: |
112 | | - * Change default for `requireAll` from True to False. |
113 | | - * Change default for 'embed' from '@last' to '@once'. |
114 | | - * Add defaults for `omitGraph` and `pruneBlankNodeIdentifiers` |
| 106 | +- Flattening: |
| 107 | + - Rewrite `_create_node_map` based on 1.1 algorithm. |
| 108 | + - Flatten `@included`. |
| 109 | + - Flatten lists of lists. |
| 110 | + - Update `merge_node_maps` for `@type`. |
| 111 | +- Framing: |
| 112 | + - Change default for `requireAll` from True to False. |
| 113 | + - Change default for 'embed' from '@last' to '@once'. |
| 114 | + - Add defaults for `omitGraph` and `pruneBlankNodeIdentifiers` |
115 | 115 | based on processing mode. |
116 | | - * Change `_remove_preserve` to `_cleanup_preserve` which happens before |
| 116 | + - Change `_remove_preserve` to `_cleanup_preserve` which happens before |
117 | 117 | compaction. |
118 | | - * Add `_cleanup_null` which happens after compaction. |
119 | | - * Update frame matching to 1.1 spec. |
120 | | - * Support `@included`. |
121 | | -* ToRdf: |
122 | | - * Support for I18N direction. |
123 | | - * Support for Lists of Lists. |
124 | | - * Partial support for JSON canonicalization of JSON literals. |
125 | | - * Includes local copy of JCS library, but doesn't load. |
126 | | - * Lists of Lists. |
127 | | - * Text Direction 'i18n-datatype'. |
128 | | -* Testing |
129 | | - * Switched to argparse. |
130 | | - * **BREAKING**: Removed `-d` and `-m` test runner options in favor of just |
| 118 | + - Add `_cleanup_null` which happens after compaction. |
| 119 | + - Update frame matching to 1.1 spec. |
| 120 | + - Support `@included`. |
| 121 | +- ToRdf: |
| 122 | + - Support for I18N direction. |
| 123 | + - Support for Lists of Lists. |
| 124 | + - Partial support for JSON canonicalization of JSON literals. |
| 125 | + - Includes local copy of JCS library, but doesn't load. |
| 126 | + - Lists of Lists. |
| 127 | + - Text Direction 'i18n-datatype'. |
| 128 | +- Testing |
| 129 | + - Switched to argparse. |
| 130 | + - **BREAKING**: Removed `-d` and `-m` test runner options in favor of just |
131 | 131 | listing as arguments. |
132 | | - * If no test manifests or directories are specified, default to sibling |
| 132 | + - If no test manifests or directories are specified, default to sibling |
133 | 133 | directories for json-ld-api, json-ld-framing, and normalization. |
134 | 134 |
|
135 | 135 | ## 1.0.5 - 2019-05-09 |
|
0 commit comments