FHIR Chat · Mime Type for Turtle · ontology

Stream: ontology

Topic: Mime Type for Turtle


view this post on Zulip Grahame Grieve (Jul 04 2016 at 20:10):

yo: @Eric Prud'hommeaux. We've just been reviewing mime type handling in FHIR. We're using text/turtle for RDF... but that has some corner cases that are less than optimal - for instance, it means that we can't handle Turtle in the Binary resource, which is an external content wrapper.

view this post on Zulip Grahame Grieve (Jul 04 2016 at 20:14):

it would be good if W3C registered a +ttl extension in the MIME type extensions registry

view this post on Zulip Grahame Grieve (Jul 04 2016 at 20:15):

then we could use application/fhir+ttl for the RDF format

view this post on Zulip Eric Prud'hommeaux (Jul 05 2016 at 12:36):

how are Binary resources with XML, JSON or ASN.1 handled?

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:36):

difference between mime type application/xml and application/fhir+xml

view this post on Zulip Eric Prud'hommeaux (Jul 05 2016 at 12:50):

i need to learn about Binary. it's XML or JSON on the outside with an binary center right?

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:51):

it's a reosurce that has a core that is 'something else'. It has a thin wrapper that allows you to embed the 'other stuff' inside a bundle in the API, or read or write the content in the wrapper - if you ask for it with a non-FHIR mime type

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:52):

e.g. POST /Binary mime-type = image/png

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:52):

GET /Binary/1234
Accept: image/png

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:52):

get the image back

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:52):

GET /BInary/1234
Accept: application/fhir+xml

view this post on Zulip Grahame Grieve (Jul 05 2016 at 12:53):

get back
<Binary>
<contentType value="image/png"/>
<content value="[base64 of image}/>
</Binary>


Last updated: Apr 12 2022 at 19:14 UTC