fhircat / fhir_to_jsonld_context Goto Github PK
View Code? Open in Web Editor NEWPrototype FHIR to JSONLD Context converter
Prototype FHIR to JSONLD Context converter
We don't need (or want) the FHIR version identifier in the file name. "account.context.jsonld" is good. Also, would recommend using entirely lower case. Mixed case can cause issues with some partial case sensitive servers.
The generated shex does not put the datatypes on the terminal nodes:
# Primitive Type dateTime
<dateTime> CLOSED {
fhir:Element.id @<string>?; # xml:id (or equivalent in JSON)
fhir:Element.extension @<Extension>*; # Additional content defined by
# implementations
fhir:value @<dateTime>?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
The fhir:value should be xsd:dateTime
rather than recursively referencing the FHIR definition. The fhir.ttl
generator gets it right, so it can be referenced to get the correct types.
The context file names should probably be all in lower case -- the current camelcase, while readable, causes problems w/ case insensitive servers. One can pass all tests using "foo.context.jsonld" on a test server and then fail on one that differentiates "foo" from "Foo"
The context suffixes should be ".context.jsonld" -- there are no suffixes at the moment
The JSON LD 1.1 specification does not allow recursive references to contexts.
We need to detect recursion when generating the contexts and, if the referenced context is already in the containing document, emit a variation that doesn't have the reference. Options might include:
Extension.context.jsonld#v1
) or@vocab http://janeirodigital.github.io/nhs-care-plan/flat-FHIR.ttl#
should be changed to something that is really visible in the RDF
Currently the converter produces expanded JSON and nquads. We need a turtle output as well.
Once the JSON-LD Playground gets fixed, context URI's should be changed to relative URI's. This will make Issue #1 moot
All of the context bases should begin with at "https://raw.githubusercontent.com/fhircat/fhir_to_jsonld_context/master/jsonldc/contexts/r5/" instead of uu3.org
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.