Giter Club home page Giter Club logo

fhir_to_jsonld_context's Issues

Remove "R5" from the file name

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.

ShEx generator error

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.

context names should be all lower case.

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"

Recursion problem

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:

  1. Emit variation with a different name (e.g. Extension.context.jsonld#v1) or
  2. Generate the context inline when parts are omitted

vocab should be clearly visible

@vocab http://janeirodigital.github.io/nhs-care-plan/flat-FHIR.ttl# should be changed to something that is really visible in the RDF

Relative context URI's

Once the JSON-LD Playground gets fixed, context URI's should be changed to relative URI's. This will make Issue #1 moot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.