fhircat / FHIRCat

Enabling the Semantics of FHIR and Terminologies for Clinical and Translational Research
5 stars 0 forks source link

Playground Clone needs nquads output #25

Closed hsolbrig closed 4 years ago

hsolbrig commented 4 years ago

Need the nquads tab on the playground

ericprud commented 4 years ago

I replaced nquads with Turtle a couple days ago. Is this saying that we need nquads back?

hsolbrig commented 4 years ago

Would be handy to have both, assuming that the Turtle starts looking a bit more turtle-like. (namespaces, BNodes as brackets, lists as parens, ...

hsolbrig commented 4 years ago

Actually, between "Normalized" and "Table", we're probably good without nquads. Never mind...

ericprud commented 4 years ago

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).