You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we add support for null in JSON-LD? There is a difference between a triple where the object is null to a non-existent triple. I think we should support that, but there are a number of issues:
we use null to specify something that has been 'framed' as non-existing.
a frame specifying output elements that don't exist is serialized using 'null'. e.g., foaf:homepage: "null"
helps programmers to not put in checks to ensure that a key exists, only need to check for 'null' value.
kind of strange in RDF too - a property that doesn't exist as null.
if JSON-LD treats null as rdf:nil, we may have a round-tripping issue.
Manu Sporny: application specific, empty set can be correct, others would say that database NULL is correct, others would use null in yet another different way.
Alternative would be to define something like jsonld:null or json:null to represent it or a new keyword @null (but most people, including myself, are reluctant to add a keyword for that).
Gregg Kellogg suggests "[]" as no value - RDF does something like that.
The text was updated successfully, but these errors were encountered:
I'm increasingly leaning toward not supporting type coercion for JavaScript's 'null' keyword. There is no use case for it and we already use null to mean something specific in the context of framing.
Should we add support for null in JSON-LD? There is a difference between a triple where the object is null to a non-existent triple. I think we should support that, but there are a number of issues:
Manu Sporny: application specific, empty set can be correct, others would say that database NULL is correct, others would use null in yet another different way.
Alternative would be to define something like jsonld:null or json:null to represent it or a new keyword @null (but most people, including myself, are reluctant to add a keyword for that).
Gregg Kellogg suggests "[]" as no value - RDF does something like that.
The text was updated successfully, but these errors were encountered: