Skip to content

Handle unknown identifier when converting data #288

Open

Description

@jvherweg

As discussed in #279 (comment).

It can happen that a RepresentationConverter is called before the ResourceIdentifier of a resource is known, even though it is required as input parameter. In most cases this is not going to be relevant, but it is an issue if the representation is for example a turtle document containing <> and no base iri has been set in the document.

We could use some sort of dummy URI constant of which it is known that it needs to be replaced with the identifier once that one is known. This would require string matching though, since we can have URIs relative to the base (e.g., <#id>).

Another solution would be to somehow call ahead to the store and ask what the identifier would be if this resource would be created.

This is mostly relevant for the sparql store (and other future stores that do not support binary input), since the file and memory store will just store the original turtle, thereby avoiding this problem.

Activity

  1. added
    🐛 bug
    on Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty:high🐛 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions