Closed hsolbrig closed 4 years ago
I replaced nquads with Turtle a couple days ago. Is this saying that we need nquads back?
Would be handy to have both, assuming that the Turtle starts looking a bit more turtle-like. (namespaces, BNodes as brackets, lists as parens, ...
Actually, between "Normalized" and "Table", we're probably good without nquads. Never mind...
I didn't write a turtifier; i grabbed one from N3.js, so the odds that it gets []s is pretty small. I did, however, add some code to N3.js a while back to serialize lists. I just added that to playground so:
{
"@context": {
"ex": "http://example.org/vocab#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"ex:contains": {
"@container": "@list"
}
},
"@id": "http://example.org/smallInts",
"ex:contains": [1, 2, 3]
}
is rendered as an adequate list:
PREFIX ex: <http://example.org/vocab#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<http://example.org/smallInts> ex:contains ("1"^^xsd:integer "2"^^xsd:integer "3"^^xsd:integer).
Need the nquads tab on the playground