Skip to content

Commit

Permalink
Merge pull request #167 from filip26/fix/issue-165
Browse files Browse the repository at this point in the history
Fix property-based indices compaction
  • Loading branch information
filip26 authored May 21, 2021
2 parents 1314587 + fcaf0a0 commit 011db50
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The goal is to pass the [official test suite](https://github.com/w3c/json-ld-api
| Feature | Tests | Pass | Status | Notes |
| --- | ---: | ---: | ---: | --- |
| [Expansion](https://www.w3.org/TR/json-ld/#expanded-document-form) | 371 | 371 | 100% | |
| [Compaction](https://www.w3.org/TR/json-ld/#compacted-document-form) | 240 | 240 | 100% | |
| [Compaction](https://www.w3.org/TR/json-ld/#compacted-document-form) | 242 | 242 | 100% | |
| [Flattening](https://www.w3.org/TR/json-ld/#flattened-document-form) | 55 | 55 | 100% | |
| [JSON-LD to RDF](https://www.w3.org/TR/json-ld/#relationship-to-rdf) | 451 | 449 | 99.5% | <ul><li>[te075 - @vocab as blank node identifier](https://w3c.github.io/json-ld-api/tests/toRdf-manifest#te075)</li><li>[tli12 - List with bad @base](https://w3c.github.io/json-ld-api/tests/toRdf-manifest#tli12)</li></ul> |
| [RDF to JSON-LD](https://www.w3.org/TR/json-ld/#relationship-to-rdf) | 51 | 51 | 100% | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,12 +683,12 @@ public JsonValue compact(final String activeProperty, final JsonValue element) t
// 12.8.9.6.
} else if (container.contains(Keywords.INDEX)
&& !Keywords.INDEX.equals(indexKey)) {

// 12.8.9.6.1.
containerKey = activeContext
.uriCompaction()
.vocab(true)
.compact(indexKey);
.compact(activeContext.uriExpansion().expand(indexKey));

// 12.8.9.6.2.
if (JsonUtils.isObject(compactedItem) && compactedItem.asJsonObject().containsKey(containerKey)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

public final class JsonLdManifestLoader {

public static final String JSON_LD_API_BASE = "zip://json-ld-test-suite-20210428.zip/com/github/w3c/json-ld-api/tests/";
public static final String JSON_LD_API_BASE = "zip://json-ld-test-suite-20210520.zip/com/github/w3c/json-ld-api/tests/";
public static final String JSON_LD_FRAMING_BASE = "zip://json-ld-framing-test-suite-20200609.zip/com/github/w3c/json-ld-framing/tests/";

private final String manifestName;
Expand Down
Binary file not shown.

0 comments on commit 011db50

Please sign in to comment.