Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Relative URLs in an @list can produce bad RDF #382

Copy link
Copy link
@dlongley

Description

@dlongley
Issue body actions

Because the _objectToRDF returns null for objects that are relative URLs, and the following code within _listToRDF does not check for this, it's possible that quads are added to the dataset that have null objects, which is invalid. Checks for null objects need to be added here:

https://github.com/digitalbazaar/jsonld.js/blob/master/lib/toRdf.js#L169
https://github.com/digitalbazaar/jsonld.js/blob/master/lib/toRdf.js#L188

To avoid later potential crashes/problems when the dataset is processed (by whatever code).

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.