Skip to content

tests: add expand #t0132 (@base vs property keys) - #686

Open
anatoly-scherbakov wants to merge 4 commits into
mainfrom
expand-test-t0132-base-property-keys
Open

anatoly-scherbakov wants to merge 4 commits into
mainfrom
expand-test-t0132-base-property-keys

Conversation

@anatoly-scherbakov

@anatoly-scherbakov anatoly-scherbakov commented Apr 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds ExpandTest #t0132: with a context that sets only @base (and @version 1.1), an unmapped simple property key like name is dropped, while a relative @type token still resolves against that base (IRI Expansion).

Files

  • tests/expand/0132-in.jsonld, tests/expand/0132-out.jsonld
  • tests/expand-manifest.jsonld — new sequence entry after #t0131
  • tests/expand-manifest.html — regenerated (Haml + HtmlBeautifier; bundle exec rake was not runnable here without libyaml-dev; same pipeline as tests/Rakefile)

Preview | Diff

@anatoly-scherbakov

Copy link
Copy Markdown
Contributor Author

My agent fixed LoadDocumentOptions once again after #684, that commit can be easily removed while rebasing if that PR, or its predecessor, is merged.

Comment thread tests/expand-manifest.html Outdated
Comment thread tests/expand-manifest.jsonld Outdated
Comment thread tests/expand-manifest.html Outdated

@pchampin pchampin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My agent fixed LoadDocumentOptions once again after #684,

you should train it to behave!

that commit can be easily removed while rebasing if that PR, or its predecessor, is merged.

Please do make these changes before submitting the PR (like cherrypicking or rebasing locally). This may creates unnecessary friction when we decide to merge that.

Apart from this, the test looks good to me.

Comment thread index.html
@anatoly-scherbakov
anatoly-scherbakov force-pushed the expand-test-t0132-base-property-keys branch from 7a63bae to e00f4fc Compare August 29, 2026 17:10
@anatoly-scherbakov

Copy link
Copy Markdown
Contributor Author

Now that Specref is up, CI is green again! Perhaps we could merge? cc @niklasl

@niklasl niklasl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming behavior according to spec.

@anatoly-scherbakov

Copy link
Copy Markdown
Contributor Author

Thanks @niklasl! Can you please merge this then? I do not have the permissions. Thank you!

</dd>
</dl>
</dd>
<dt id='t0028'>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick to be sure: was this a previous discrepancy which got corrected when the HTML was regenerated?

@niklasl niklasl moved this to PRs in JSON-LD Management Sep 9, 2026
@niklasl
niklasl requested a review from TallTed September 9, 2026 16:41
</dl>
</dd>
<dt id='t0028'>
Test t0028 use native types flag with non-native values

@TallTed TallTed Sep 9, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe?

Suggested change
Test t0028 use native types flag with non-native values
Test t0028 `useNativeTypes` flag with non-native values

<dt>Type</dt>
<dd>jld:PositiveEvaluationTest, jld:FromRDFTest</dd>
<dt>Purpose</dt>
<dd>Ensure that useNativeTypes flag being true does not interfere with values that cannot be serialized into a native value.</dd>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<dd>Ensure that useNativeTypes flag being true does not interfere with values that cannot be serialized into a native value.</dd>
<dd>Ensure that `useNativeTypes` flag being true does not interfere with values that cannot be serialized into a native value.</dd>

@TallTed TallTed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Planned-to-Merge PRs

Development

Successfully merging this pull request may close these issues.

4 participants