A collection of changes to generated code required to validate Turtle examples
Here's a list of edits that got this validating
- add
^^xsd:anyURI
to thefhir:v
for eachfhir:url
and for eachfhir:system
that isn't in a ContactPoint (heuristically implemented with perl -pi) (commit)
Here are some ways to execute the validation.
Use the manifest.yaml in shex-simple.
- pick someplace for ShEx.js and clone it:
git clone git@github.com:shexjs/shex.js --branch main --depth 1
- add
shex.js/packages/shex-cli
to PATH - validate by
manifest.yaml
or individual command line args:
validate --yaml-manifest manifest.yaml
validate -x ShExSchemas/R5/Patient.shex -d FHIR_RDF_Examples/R5/patient-example.ttl -m '{FOCUS a fhir:Patient}@<Patient>'