use of org.hl7.fhir.rdf.ShExValidator in project kindling by HL7.
the class ExampleInspector method prepare.
public void prepare() throws Exception {
validator = new InstanceValidator(context, hostServices, null);
validator.setSuppressLoincSnomedMessages(true);
validator.setResourceIdRule(IdStatus.REQUIRED);
validator.setBestPracticeWarningLevel(BestPracticeWarningLevel.Warning);
validator.getExtensionDomains().add("http://hl7.org/fhir/us");
validator.setFetcher(this);
validator.setAllowExamples(true);
validator.setDebug(false);
xml = new XmlValidator(errorsInt, loadSchemas(), loadTransforms());
if (VALIDATE_BY_JSON_SCHEMA) {
String source = TextFile.fileToString(Utilities.path(rootDir, "fhir.schema.json"));
JSONObject rawSchema = new JSONObject(new JSONTokener(source));
jschema = SchemaLoader.load(rawSchema);
}
if (VALIDATE_RDF) {
shex = new ShExValidator(Utilities.path(rootDir, "fhir.shex"));
}
fpe = new FHIRPathEngine(context);
checkJsonLd();
}
Aggregations