GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Expanded bnode list Option by daltontc · Pull Request #335 · jsonld-java/jsonld-java

Conversation

@daltontc

@daltontc daltontc commented Oct 25, 2022

Copy link
Copy Markdown

Created an option to write blank node lists as full objects in order to preserve blank node identifiers in the chain.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daltontc
Expanded bnode list Option
6c54dcb
@dr0i dr0i self-assigned this Oct 28, 2022
@dr0i

dr0i commented Oct 28, 2022

Copy link
Copy Markdown
Member

Thx @daltontc for a pull request!
We would need an issue, though, which describes what and_why_ should be achieved.

I ask your assistance in understanding this.

Basically you want to have to "not convert list" to @list.

Your desired outcome from the java test in a more readable form:

[
   {
      "@id" : "_:b0",
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#first" : [ { "@id" : "Arnold" } ],
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" : [ { "@id" : "_:b1" } ]
   },
   {
      "@id" : "_:b1",
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#first" : [ { "@id" : "Bob" } ],
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" : [ { "@id" : "_:b2" } ]
   },
   {
      "@id" : "_:b2",
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#first" : [ { "@id" : "Catherine" } ],
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" : [ { "@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" } ]
   }
]

This seems to come close to the one already in our tests at https://github.com/jsonld-java/jsonld-java/blob/master/core/src/test/resources/json-ld.org/fromRdf-0010-out.jsonld which implements https://w3c.github.io/json-ld-api/tests/fromRdf-manifest.html section "Test t0010 List pattern without rdf:nil".(for embedded view see also https://json-ld.org/test-suite/reports/ "Test 0010: List pattern without rdf:nil").
The corresponding input to that test differs from your input only by your adding of

_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .

As this rdf:nil seems to correspond to the title of the test ("Test t0010 List pattern without rdf:nil") it seems that it's a desired outcome to not have a @list by leaving out that rdf:nil , which implies that it is desired to have a @list if that rdf:nil is added.

There are some other tests related to your case, namely t0010,t0013,t0014 and t0015 (respectively see https://json-ld.org/test-suite/reports/ : Test 0010 etc.)

If you could point me to a jsonld spec which covers your implementation (I may well have overseen it) this would be very helpful.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dr0i dr0i

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@daltontc @dr0i
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.