Gregg Kellogg
Gregg Kellogg
FWIW, I have an ABNF to/from EBNF transpiler, validator and parser generator in Ruby I’ve thought could be ported to JavaScript sometime. https://github.com/dryruby/ebnf
As a workaround, `%TAG ! http://www.w3.org/2001/XMLSchema%23` works, but is not ideal, and shouldn't be required based on the grammar.
The scanning issue extends to inline-tags, as well. If you parse the following ```yaml %TAG !xsd! http://www.w3.org/2001/XMLSchema%23 --- date: !xsd!date 2022-08-08 ``` and re-serialize without the %TAG directive, you'll get...
I have a script in the Structured-data Linter which does just this; get them from guha's repo and parse; they're all in a text file. http://github.com/structured-data/linter http://linter.structured-data.org/ Gregg On Wednesday,...
I extract them all in the linter, it is pretty simple. I have code which both extracts the examples, and creates a view placing them in the class hierarchy. http://github.com/structured-data/linter....
It would be nice to have in the playground. In the mean time, check out http://rdf.greggkellogg.net/distiller.
Please provide an example. Issues should be filed at github,com/w3c/json-ld-api, -syntax, or -framing depending on the nature of the issue.
I've noticed that the URL does not always update after content or tab state is changed. It often requires a reload and paste of content to update. At least on...
Can't do that, I'm afraid. You can use [Property Nesting](https://www.w3.org/TR/json-ld11/#nested-properties) to expand to that form, [more or less](https://json-ld.org/playground/#startTab=tab-expanded&json-ld=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22http%3A%2F%2Fexample.org%2F%22%2C%22minutes%22%3A%7B%22%40nest%22%3A%22wake%22%7D%2C%22wake%22%3A%22%40nest%22%7D%2C%22wake%22%3A%7B%22minutes%22%3A15%7D%7D). ``` { "@context": { "@vocab": "http://example.org/", "minutes": {"@nest": "wake"}, "wake": "@nest" },...
IIRC, we discussed a default context to set things like this in the WG. It may be a likely entry in the [JSON-LD Best Practices](https://w3c.github.io/json-ld-bp/) document. Otherwise, the group could...