Skip to content

JSON-LD to Turtle serialization eats up @id with no value #497

Closed

Description

@csarven

re: #496 (comment)

http://example.org/resourceA contains:
{ "@id": "http://example.net/note#foo", "http://schema.org/citation": { "@id": "http://example.org/article#results" } }

$ curl -H'Accept: text/turtle' http://example.org/resourceA
@prefix note: <http://example.net/note#>.
@prefix schem: <http://schema.org/>.
@prefix n0: <http://example.org/article#>.

   note:foo schem:citation n0:results .

Looks good to me.

http://example.org/resourceB contains:
{ "@id": "", "http://schema.org/citation": { "@id": "http://example.org/article#results" } }

$ curl -H'Accept: text/turtle' http://example.org/resourceB

No body.

Activity

  1. dmitrizagidulin commented on Mar 13, 2017

    @dmitrizagidulin
    Contributor

    I think I see what you're saying. There's a problem with translation code in the get handler. (The base uri is somehow getting lost for translation)

  2. dmitrizagidulin commented on Mar 14, 2017

    @dmitrizagidulin
    Contributor

    Filed upstream issue linkeddata/rdflib.js#177

  3. added this to the 4.0.0 milestone on Aug 16, 2017
  4. RubenVerborgh commented on Aug 16, 2017

    @RubenVerborgh
    Contributor

    This is an rdflib bug related to JSON-LD and base IRIs, which is fixed in linkeddata/rdflib.js#195. I'll wait for a new rdflib.js version to be released, and will then update package.json to fix this.

  5. added a commit that references this issue on Aug 17, 2017
    cdce213
  6. RubenVerborgh commented on Aug 17, 2017

    @RubenVerborgh
    Contributor

    Fixed by #548.

  7. added a commit that references this issue on Aug 17, 2017
    47c47e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions