Revisit empty string as term · Issue #584 · json-ld/json-ld.org · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit empty string as term #584

Closed
gkellogg opened this issue Feb 2, 2018 · 3 comments
Closed

Revisit empty string as term #584

gkellogg opened this issue Feb 2, 2018 · 3 comments
Labels
defer Issue deferred to future Working Group spec-editorial syntax

Comments

@gkellogg
Copy link
Member

gkellogg commented Feb 2, 2018

JSON-LD has a restriction that terms must not be the empty string

From JSON-LD Syntax 6.1:

Furthermore, the term MUST NOT be an empty string ("") as not all programming languages are able to handle empty JSON keys.

IIRC, this was added due to an issue in an earlier version of PHP, and I suspect it is no longer an issue. Furthermore, the use of empty prefixes is common in other RDF syntaxes, so allowing it here for 1.1 documents would be reasonable, if tooling supports it.

As evidence, consider this stackoverflow question.

Also, note that while the syntax document makes such a normative statement, the API algorithms don't call this out as an error condition.

@gkellogg gkellogg added this to the JSON-LD 1.1 milestone Feb 2, 2018
@azaroth42
Copy link
Contributor

@dlongley traced this issue back here:

#480 (comment)

I think the bigger question is around semantics of its use in the various places it might be used.

@gkellogg gkellogg added defer Issue deferred to future Working Group and removed under-review labels Apr 4, 2018
@gkellogg gkellogg removed this from the JSON-LD 1.1 milestone Apr 9, 2018
@gkellogg
Copy link
Member Author

gkellogg commented Apr 9, 2018

Deferred to WG due to https://json-ld.org/minutes/2018-04-10/#resolution-3.

@gkellogg
Copy link
Member Author

Closed in favor of w3c/json-ld-syntax#12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defer Issue deferred to future Working Group spec-editorial syntax
Projects
None yet
Development

No branches or pull requests

2 participants