Closed dbooth-boston closed 3 years ago
+1
Done! Not sure of the best URI for info, but here's something: https://hapifhir.io/hapi-fhir//apidocs/hapi-fhir-structures-dstu3/org/hl7/fhir/dstu3/utils/formats/Turtle.LineOutputStreamWriter.html
Done! Not sure of the best URI for info, but here's something: https://hapifhir.io/hapi-fhir//apidocs/hapi-fhir-structures-dstu3/org/hl7/fhir/dstu3/utils/formats/Turtle.LineOutputStreamWriter.html
That is a legacy DSTU3 Turtle writer. If someone wants to use RDF with DSTU3, I believe the best thing would be to use FhirContext.newRDFParser
, which (as for JSON and XML), both parses:
IBaseResource resource = ctx.newRDFParser().parseResource(inputStream);
and serializes:
String turtle = ctx.newRDFParser().encodeResourceToString(resource);
This parser ca.uhn.fhir.parser.RDFParser
has been tested with all R4
and R5
examples.
It is the most commonly used FHIR server, but it does not yet support Turtle. http://hapifhir.io/ https://github.com/jamesagnew/hapi-fhir/