Skip to content

RDFJS compliance: blank node values should not be prepended by _: #244

Closed
@pietercolpaert

Description

@pietercolpaert

RDFJS defines in its specification that:

value blank node name as a string, without any serialization specific prefixes, e.g. when parsing, if the data was sourced from Turtle, remove "_:", if it was sourced from RDF/XML, do not change the blank node name (example: "blank3")

However, jsonld.js does not remove _: when executing the toRDF code. This can be found in multiple places. One example:

termType: id.startsWith('_:') ? 'BlankNode' : 'NamedNode',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions