diff --git a/.gitignore b/.gitignore index 835adee93..744673c31 100644 --- a/.gitignore +++ b/.gitignore @@ -151,3 +151,5 @@ local.properties # TeXlipse plugin .texlipse +/org.hl7.fhir.r4/src/test/resources/gen +/org.hl7.fhir.r4/src/test/resources/graphql/*.out diff --git a/org.hl7.fhir.convertors/.classpath b/org.hl7.fhir.convertors/.classpath index 9781132cf..1ddf83a39 100644 --- a/org.hl7.fhir.convertors/.classpath +++ b/org.hl7.fhir.convertors/.classpath @@ -1,40 +1,39 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java index d4d3d591f..7c7f3d1d5 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/context/BaseWorkerContext.java @@ -422,7 +422,7 @@ public abstract class BaseWorkerContext implements IWorkerContext { throw new Error("no url in expand value set 2"); res = new ValueSetExpansionOutcome(result).setTxLink(txLog.getLastId()); } catch (Exception e) { - res = new ValueSetExpansionOutcome(e.getMessage() == null ? e.getClass().getName() : e.getMessage(), TerminologyServiceErrorClass.UNKNOWN).setTxLink(txLog.getLastId()); + res = new ValueSetExpansionOutcome(e.getMessage() == null ? e.getClass().getName() : e.getMessage(), TerminologyServiceErrorClass.UNKNOWN).setTxLink(txLog == null ? null : txLog.getLastId()); } txCache.cacheExpansion(cacheToken, res, TerminologyCache.PERMANENT); return res; diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/AllTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/AllTests.java index 80724f839..d65464fd5 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/AllTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/AllTests.java @@ -5,7 +5,18 @@ import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) -@SuiteClasses({ FHIRPathTests.class, NarrativeGeneratorTests.class, /*ShexGeneratorTests.class, StructureMapTests.class, */ TurtleTests.class, GraphQLParserTests.class }) +@SuiteClasses({ + SnomedExpressionsTests.class, + GraphQLParserTests.class, + TurtleTests.class, + ProfileUtilitiesTests.class, + ResourceRoundTripTests.class, + GraphQLEngineTests.class, + LiquidEngineTests.class, + FHIRPathTests.class, + NarrativeGeneratorTests.class, + ShexGeneratorTests.class, + SnapShotGenerationTests.class}) public class AllTests { } diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ClientUtilsTest.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ClientUtilsTest.java deleted file mode 100644 index 5e9744d08..000000000 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ClientUtilsTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.hl7.fhir.r4.test; - -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; - -public class ClientUtilsTest { - - @BeforeClass - public static void setUpBeforeClass() { - } - - @AfterClass - public static void tearDownAfterClass() { - } - - @Before - public void setUp() { - } - - @After - public void tearDown() { - } -} diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/FHIRPathTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/FHIRPathTests.java index 8b1419cdb..7b825dcdd 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/FHIRPathTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/FHIRPathTests.java @@ -24,7 +24,7 @@ import org.hl7.fhir.r4.model.PrimitiveType; import org.hl7.fhir.r4.model.Quantity; import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r4.model.TypeDetails; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.FHIRPathEngine; import org.hl7.fhir.r4.utils.FHIRPathEngine.IEvaluationContext; import org.hl7.fhir.utilities.Utilities; @@ -96,7 +96,7 @@ public class FHIRPathTests { @Parameters(name = "{index}: file {0}") public static Iterable data() throws ParserConfigurationException, SAXException, IOException { - Document dom = XMLUtil.parseFileToDom(Utilities.path(TestingUtilities.home(), "tests", "resources", "tests-fhir-r4.xml")); + Document dom = XMLUtil.parseFileToDom(TestingUtilities.resourceNameToFile("fhirpath", "tests-fhir-r4.xml")); List list = new ArrayList(); List groups = new ArrayList(); @@ -144,14 +144,8 @@ public class FHIRPathTests { @SuppressWarnings("deprecation") @Test public void test() throws FileNotFoundException, IOException, FHIRException, org.hl7.fhir.exceptions.FHIRException, UcumException { - if (TestingUtilities.context == null) { - SimpleWorkerContext wc = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - TestingUtilities.context = wc; - } - if (TestingUtilities.context.getUcumService() == null) - TestingUtilities.context.setUcumService(new UcumEssenceService(Utilities.path(TestingUtilities.home(), "tests", "ucum-essence.xml"))); if (fp == null) - fp = new FHIRPathEngine(TestingUtilities.context); + fp = new FHIRPathEngine(TestingUtilities.context()); fp.setHostServices(new FHIRPathTestEvaluationServices()); String input = test.getAttribute("inputfile"); String expression = XMLUtil.getNamedChild(test, "expression").getTextContent(); @@ -167,7 +161,7 @@ public class FHIRPathTests { else { res = resources.get(input); if (res == null) { - res = new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.content(), input))); + res = new XmlParser().parse(new FileInputStream(TestingUtilities.resourceNameToFile(input))); resources.put(input, res); } fp.check(res, res.getResourceType().toString(), res.getResourceType().toString(), node); diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java index f37f70d1c..73f42124b 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLEngineTests.java @@ -18,10 +18,10 @@ import org.hl7.fhir.r4.model.Bundle; import org.hl7.fhir.r4.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r4.model.Bundle.BundleLinkComponent; import org.hl7.fhir.r4.model.Bundle.SearchEntryMode; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.model.DomainResource; import org.hl7.fhir.r4.model.Reference; import org.hl7.fhir.r4.model.Resource; -import org.hl7.fhir.r4.test.support.TestingUtilities; import org.hl7.fhir.r4.utils.GraphQLEngine; import org.hl7.fhir.r4.utils.GraphQLEngine.IGraphQLStorageServices; import org.hl7.fhir.utilities.TextFile; @@ -43,7 +43,7 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { @Parameters(name = "{index}: {0}") public static Iterable data() throws FileNotFoundException, IOException, ParserConfigurationException, SAXException { - Document tests = XMLUtil.parseFileToDom(Utilities.path(TestingUtilities.home(), "tests", "graphql", "manifest.xml")); + Document tests = XMLUtil.parseFileToDom(TestingUtilities.resourceNameToFile("graphql", "manifest.xml")); Element test = XMLUtil.getFirstChild(tests.getDocumentElement()); List objects = new ArrayList(); while (test != null && test.getNodeName().equals("test")) { @@ -78,19 +78,16 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { if (parts.length != 3) throw new Exception("not done yet "+source+" "+output+" "+context); if (!Utilities.noString(resource)) - filename = Utilities.path(TestingUtilities.content(), resource+".xml"); + filename = TestingUtilities.resourceNameToFile(resource+".xml"); else - filename = Utilities.path(TestingUtilities.content(), parts[0].toLowerCase()+"-"+parts[1].toLowerCase()+".xml"); + filename = TestingUtilities.resourceNameToFile(parts[0].toLowerCase()+"-"+parts[1].toLowerCase()+".xml"); } - if (TestingUtilities.context == null) - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - - GraphQLEngine gql = new GraphQLEngine(TestingUtilities.context); + GraphQLEngine gql = new GraphQLEngine(TestingUtilities.context()); gql.setServices(this); if (!Utilities.noString(filename)) gql.setFocus(new XmlParser().parse(new FileInputStream(filename))); - gql.setGraphQL(Parser.parseFile(Utilities.path(TestingUtilities.home(), "tests", "graphql", source))); + gql.setGraphQL(Parser.parseFile(TestingUtilities.resourceNameToFile("graphql", source))); gql.getGraphQL().setOperationName(operation); gql.getGraphQL().getVariables().add(new Argument("var", new NameValue("true"))); boolean ok = false; @@ -108,8 +105,8 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { assertTrue("Expected to fail, but didn't", !output.equals("$error")); StringBuilder str = new StringBuilder(); gql.getOutput().write(str, 0); - TextFile.stringToFile(str.toString(), Utilities.path(TestingUtilities.home(), "tests", "graphql", output+".out")); - msg = TestingUtilities.checkJsonIsSame(Utilities.path(TestingUtilities.home(), "tests", "graphql", output+".out"),Utilities.path(TestingUtilities.home(), "tests", "graphql", output)); + TextFile.stringToFile(str.toString(), TestingUtilities.resourceNameToFile("graphql", output+".out")); + msg = TestingUtilities.checkJsonIsSame(TestingUtilities.resourceNameToFile("graphql", output+".out"), TestingUtilities.resourceNameToFile("graphql", output)); assertTrue(msg, Utilities.noString(msg)); } else @@ -119,7 +116,7 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { @Override public Resource lookup(Object appInfo, String type, String id) throws FHIRException { try { - String filename = Utilities.path(TestingUtilities.content(), type.toLowerCase()+'-'+id.toLowerCase()+".xml"); + String filename = TestingUtilities.resourceNameToFile(type.toLowerCase()+'-'+id.toLowerCase()+".xml"); if (new File(filename).exists()) return new XmlParser().parse(new FileInputStream(filename)); else @@ -142,7 +139,7 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { } } else { String[] parts = reference.getReference().split("/"); - String filename = Utilities.path(TestingUtilities.content(), parts[0].toLowerCase()+'-'+parts[1].toLowerCase()+".xml"); + String filename = TestingUtilities.resourceNameToFile(parts[0].toLowerCase()+'-'+parts[1].toLowerCase()+".xml"); if (new File(filename).exists()) return new ReferenceResolution(null, new XmlParser().parse(new FileInputStream(filename))); } @@ -156,10 +153,10 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { public void listResources(Object appInfo, String type, List searchParams, List matches) throws FHIRException { try { if (type.equals("Condition")) - matches.add(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.content(), "condition-example.xml")))); + matches.add(new XmlParser().parse(new FileInputStream(TestingUtilities.resourceNameToFile("condition-example.xml")))); else if (type.equals("Patient")) { - matches.add(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.content(), "patient-example.xml")))); - matches.add(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.content(), "patient-example-xds.xml")))); + matches.add(new XmlParser().parse(new FileInputStream(TestingUtilities.resourceNameToFile("patient-example.xml")))); + matches.add(new XmlParser().parse(new FileInputStream(TestingUtilities.resourceNameToFile("patient-example-xds.xml")))); } } catch (Exception e) { throw new FHIRException(e); @@ -178,10 +175,10 @@ public class GraphQLEngineTests implements IGraphQLStorageServices { bl.setUrl("http://test.fhir.org/r4/Patient?_format=text/xhtml&search-id=77c97e03-8a6c-415f-a63d-11c80cf73f&&active=true&_sort=_id&search-offset=0&_count=50"); BundleEntryComponent be = bnd.addEntry(); be.setFullUrl("http://hl7.org/fhir/Patient/example"); - be.setResource(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.content(), "patient-example.xml")))); + be.setResource(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.resourceNameToFile("patient-example.xml"))))); be = bnd.addEntry(); be.setFullUrl("http://hl7.org/fhir/Patient/example"); - be.setResource(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.content(), "patient-example-xds.xml")))); + be.setResource(new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.resourceNameToFile("patient-example-xds.xml"))))); be.getSearch().setScore(0.5); be.getSearch().setMode(SearchEntryMode.MATCH); bnd.setTotal(50); diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLParserTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLParserTests.java index 345db650f..ca5b794ca 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLParserTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/GraphQLParserTests.java @@ -7,7 +7,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.graphql.EGraphEngine; @@ -24,7 +24,7 @@ public class GraphQLParserTests { @Parameters(name = "{index}: {0}") public static Iterable data() throws FileNotFoundException, IOException { - String src = TextFile.fileToString(Utilities.path(TestingUtilities.home(), "tests", "graphql", "parser-tests.gql")); + String src = TextFile.fileToString(TestingUtilities.resourceNameToFile("graphql", "parser-tests.gql")); String[] tests = src.split("###"); int i = 0; for (String s : tests) diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/LiquidEngineTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/LiquidEngineTests.java index 2c5a0ff16..ae63db3de 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/LiquidEngineTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/LiquidEngineTests.java @@ -14,7 +14,7 @@ import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.r4.context.SimpleWorkerContext; import org.hl7.fhir.r4.formats.XmlParser; import org.hl7.fhir.r4.model.Resource; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.LiquidEngine; import org.hl7.fhir.r4.utils.LiquidEngine.ILiquidEngineIcludeResolver; import org.hl7.fhir.r4.utils.LiquidEngine.LiquidDocument; @@ -44,7 +44,7 @@ public class LiquidEngineTests implements ILiquidEngineIcludeResolver { @Parameters(name = "{index}: file{0}") public static Iterable data() throws ParserConfigurationException, SAXException, IOException { - testdoc = (JsonObject) new com.google.gson.JsonParser().parse(TextFile.fileToString(Utilities.path(TestingUtilities.home(), "tests", "resources", "liquid-tests.json"))); + testdoc = (JsonObject) new com.google.gson.JsonParser().parse(TextFile.fileToString(TestingUtilities.resourceNameToFile("liquid", "liquid-tests.json"))); JsonArray tests = testdoc.getAsJsonArray("tests"); List objects = new ArrayList(tests.size()); for (JsonElement n : tests) { @@ -61,12 +61,7 @@ public class LiquidEngineTests implements ILiquidEngineIcludeResolver { @Before public void setUp() throws Exception { - if (TestingUtilities.context == null) { - SimpleWorkerContext wc = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - wc.setUcumService(new UcumEssenceService(Utilities.path(TestingUtilities.home(), "tests", "ucum-essence.xml"))); - TestingUtilities.context = wc; - } - engine = new LiquidEngine(TestingUtilities.context, null); + engine = new LiquidEngine(TestingUtilities.context(), null); engine.setIncludeResolver(this); } @@ -81,7 +76,7 @@ public class LiquidEngineTests implements ILiquidEngineIcludeResolver { private Resource loadResource() throws IOException, FHIRFormatError { String name = test.get("focus").getAsString(); if (!resources.containsKey(name)) { - String fn = Utilities.path(TestingUtilities.content(), name.replace("/", "-")+".xml"); + String fn = TestingUtilities.resourceNameToFile(name.replace("/", "-")+".xml"); resources.put(name, new XmlParser().parse(new FileInputStream(fn))); } return resources.get(test.get("focus").getAsString()); diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/MessageTest.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/MessageTest.java deleted file mode 100644 index 7b775a27a..000000000 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/MessageTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.hl7.fhir.r4.test; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; - -import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.formats.IParser; -import org.hl7.fhir.r4.formats.JsonParser; -import org.hl7.fhir.r4.model.Bundle; -import org.hl7.fhir.r4.model.Resource; -import org.junit.Test; - -public class MessageTest { - - @Test - public void test() throws FHIRException, IOException { - // Create new Atom Feed - Bundle feed = new Bundle(); - - // Serialize Atom Feed - IParser comp = new JsonParser(); - ByteArrayOutputStream os = new ByteArrayOutputStream(); - comp.compose(os, feed); - os.close(); - String json = os.toString(); - - // Deserialize Atom Feed - JsonParser parser = new JsonParser(); - InputStream is = new ByteArrayInputStream(json.getBytes("UTF-8")); - Resource result = parser.parse(is); - if (result == null) - throw new FHIRException("Bundle was null"); - } - -} diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/NarrativeGeneratorTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/NarrativeGeneratorTests.java index ef48d1926..81a9fdcff 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/NarrativeGeneratorTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/NarrativeGeneratorTests.java @@ -5,11 +5,12 @@ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; +import org.fhir.ucum.UcumException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.context.SimpleWorkerContext; import org.hl7.fhir.r4.formats.XmlParser; import org.hl7.fhir.r4.model.DomainResource; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.EOperationOutcome; import org.hl7.fhir.r4.utils.NarrativeGenerator; import org.hl7.fhir.utilities.Utilities; @@ -23,11 +24,9 @@ public class NarrativeGeneratorTests { private NarrativeGenerator gen; @Before - public void setUp() throws FileNotFoundException, IOException, FHIRException { - if (TestingUtilities.context == null) - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); + public void setUp() throws FileNotFoundException, IOException, FHIRException, UcumException { if (gen == null) - gen = new NarrativeGenerator("", null, TestingUtilities.context); + gen = new NarrativeGenerator("", null, TestingUtilities.context()); } @After @@ -36,14 +35,14 @@ public class NarrativeGeneratorTests { @Test public void test() throws FileNotFoundException, IOException, XmlPullParserException, EOperationOutcome, FHIRException { - process(Utilities.path(TestingUtilities.home(), "source", "questionnaireresponse", "questionnaireresponse-example-f201-lifelines.xml")); + process(TestingUtilities.resourceNameToFile("questionnaireresponse-example-f201-lifelines.xml")); } private void process(String path) throws FileNotFoundException, IOException, XmlPullParserException, EOperationOutcome, FHIRException { XmlParser p = new XmlParser(); DomainResource r = (DomainResource) p.parse(new FileInputStream(path)); gen.generate(r, null); - FileOutputStream s = new FileOutputStream(Utilities.path(TestingUtilities.temp(), "gen.xml")); + FileOutputStream s = new FileOutputStream(TestingUtilities.resourceNameToFile("gen", "gen.xml")); new XmlParser().compose(s, r, true); s.close(); diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ProfileUtilitiesTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ProfileUtilitiesTests.java index f8684c0df..d57b5a19f 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ProfileUtilitiesTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ProfileUtilitiesTests.java @@ -6,6 +6,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.fhir.ucum.UcumException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.conformance.ProfileUtilities; import org.hl7.fhir.r4.context.SimpleWorkerContext; @@ -15,7 +16,7 @@ import org.hl7.fhir.r4.model.Base; import org.hl7.fhir.r4.model.ElementDefinition; import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.EOperationOutcome; import org.hl7.fhir.utilities.CSFile; import org.hl7.fhir.utilities.Utilities; @@ -25,117 +26,6 @@ import org.junit.Test; public class ProfileUtilitiesTests { -// private String root; -// private SimpleWorkerContext context; -// private ProfileComparer comp; -// -//// public ProfileUtilitiesTests(String root) { -//// super(); -//// this.root = root; -//// } -// -//// public ProfileUtilitiesTests() { -//// super(); -//// root = TestingUtilities.home(); -//// -//// } -// -// public static void main(String[] args) throws EOperationOutcome, Exception { -// // new ProfileUtilitiesTests().execute(args); -// ProfileUtilitiesTests put = new ProfileUtilitiesTests(); -// put.root = "C:\\work\\org.hl7.fhir\\build\\publish"; -// put.testSnapshotGeneration(); -// // StructureDefinition p = (StructureDefinition) new XmlParser().parse(new FileInputStream("C:\\work\\org.hl7.fhir\\build\\publish\\lipid-report-cholesterol.profile.xml")); -// // new ProfileUtilities(context, messages, null).generateSchematrons(new FileOutputStream("c:\\temp\\test.sch"), p); -// } -// -// public void execute(String[] args) throws FileNotFoundException, IOException, FHIRException { -// System.out.println("loading context"); -// context = SimpleWorkerContext.fromPack(Utilities.path(root, "validation.zip")); -// comp = new ProfileComparer(context); -// -// compare("patient-daf-dafpatient.profile.xml", "patient-qicore-qicore-patient.profile.xml"); -// compare("encounter-daf-dafencounter.profile.xml", "encounter-qicore-qicore-encounter.profile.xml"); -// compare("substance-daf-dafsubstance.profile.xml", "substance-qicore-qicore-substance.profile.xml"); -// compare("medication-daf-dafmedication.profile.xml", "medication-qicore-qicore-medication.profile.xml"); -// compare("procedure-daf-dafprocedure.profile.xml", "procedure-qicore-qicore-procedure.profile.xml"); -// compare("familymemberhistory-daf-daffamilymemberhistory.profile.xml", "familymemberhistory-qicore-qicore-familymemberhistory.profile.xml"); -// compare("immunization-daf-dafimmunization.profile.xml", "immunization-qicore-qicore-immunization.profile.xml"); -// compare("condition-daf-dafcondition.profile.xml", "condition-qicore-qicore-condition.profile.xml"); -// compare("allergyintolerance-daf-dafallergyintolerance.profile.xml", "allergyintolerance-qicore-qicore-allergyintolerance.profile.xml"); -// compare("medicationadministration-daf-dafmedicationadministration.profile.xml", "medicationadministration-qicore-qicore-medicationadministration.profile.xml"); -// compare("medicationdispense-daf-dafmedicationdispense.profile.xml", "medicationdispense-qicore-qicore-medicationdispense.profile.xml"); -// compare("medicationprescription-daf-dafmedicationprescription.profile.xml", "medicationprescription-qicore-qicore-medicationprescription.profile.xml"); -// compare("medicationstatement-daf-dafmedicationstatement.profile.xml", "medicationstatement-qicore-qicore-medicationstatement.profile.xml"); -// compare("observation-daf-smokingstatus-dafsmokingstatus.profile.xml", "observation-qicore-qicore-observation.profile.xml"); -// compare("observation-daf-vitalsigns-dafvitalsigns.profile.xml", "observation-qicore-qicore-observation.profile.xml"); -//// compare("observation-daf-results-dafresultobs.profile.xml", "observation-qicore-qicore-observation.profile.xml"); -//// compare("diagnosticorder-daf-dafdiagnosticorder.profile.xml", "diagnosticorder-qicore-qicore-diagnosticorder.profile.xml"); -//// compare("diagnosticreport-daf-dafdiagnosticreport.profile.xml", "diagnosticreport-qicore-qicore-diagnosticreport.profile.xml"); -// -// System.out.println("processing output"); -// for (ProfileComparison outcome : comp.getComparisons()) { -// if (outcome.getSubset() != null) -// new XmlParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream("C:\\temp\\intersection-"+outcome.getId()+".xml"), outcome.getSubset()); -// if (outcome.getSuperset() != null) -// new XmlParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream("C:\\temp\\union-"+outcome.getId()+".xml"), outcome.getSuperset()); -// -// System.out.println("\r\n"+outcome.getId()+": Comparison of "+outcome.getLeft().getUrl()+" and "+outcome.getRight().getUrl()); -// for (ValidationMessage vm : outcome.getMessages()) -// if (vm.getLevel() == IssueSeverity.INFORMATION) -// System.out.println(vm.summary()); -// for (ValidationMessage vm : outcome.getMessages()) -// if (vm.getLevel() == IssueSeverity.WARNING) -// System.out.println(vm.summary()); -// for (ValidationMessage vm : outcome.getMessages()) -// if (vm.getLevel() == IssueSeverity.ERROR) -// System.out.println(vm.summary()); -// for (ValidationMessage vm : outcome.getMessages()) -// if (vm.getLevel() == IssueSeverity.FATAL) -// System.out.println(vm.summary()); -// System.out.println("done. "+Integer.toString(outcome.getMessages().size())+" messages"); -// System.out.println("================================================================="); -// } -// } -// -// private void compare(String fn1, String fn2) throws FHIRFormatError, FileNotFoundException, IOException, DefinitionException { -// System.out.println("Compare "+fn1+" to "+fn2); -// System.out.println(" .. load"); -// StructureDefinition left = (StructureDefinition) new XmlParser().parse(new FileInputStream(Utilities.path(root, fn1))); -// StructureDefinition right = (StructureDefinition) new XmlParser().parse(new FileInputStream(Utilities.path(root, fn2))); -// System.out.println(" .. compare"); -// comp.compareProfiles(left, right); -// -// } -// -// public void testSnapshotGeneration() throws EOperationOutcome, Exception { -// System.out.println("Loading"); -// context = SimpleWorkerContext.fromPack(Utilities.path(root, "definitions.xml.zip")); -// System.out.println("Loaded "+Integer.toString(context.totalCount())+" resources"); -// -// // simple tests -// testSimple(); -// testSimple2(); -// testCardinalityChange(); -// testDocumentationAppend(); -// textTypeNarrowing1(); -// textTypeNarrowing2(); -// testMapping(); -// -// // ok, now we test walking into a new type: -// testTypeWalk(); -// // todo: testTypeWalk2(); -// -// // slicing tests -// testSlicingSimple(); -// testSlicingExtension(false); -// testSlicingExtension(true); -// testSlicingExtensionComplex(true); -// testSlicingExtensionComplex(false); -// testSlicingTask8742(); -// System.out.println("Success"); -// } -// // /** // * This is simple: we just create an empty differential, generate the snapshot, and then insist it must match the base // * @@ -144,18 +34,16 @@ public class ProfileUtilitiesTests { // * @throws EOperationOutcome // */ @Test - public void testSimple() throws FHIRException, FileNotFoundException, IOException { - if (TestingUtilities.context == null) - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); + public void testSimple() throws FHIRException, FileNotFoundException, IOException, UcumException { StructureDefinition focus = new StructureDefinition(); - StructureDefinition base = TestingUtilities.context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/Patient").copy(); + StructureDefinition base = TestingUtilities.context().fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/Patient").copy(); focus.setUrl(Utilities.makeUuidUrn()); focus.setBaseDefinition(base.getUrl()); focus.setType("Patient"); focus.setDerivation(TypeDerivationRule.CONSTRAINT); List messages = new ArrayList(); - new ProfileUtilities(TestingUtilities.context, messages, null).generateSnapshot(base, focus, focus.getUrl(), "Simple Test"); + new ProfileUtilities(TestingUtilities.context(), messages, null).generateSnapshot(base, focus, focus.getUrl(), "Simple Test"); boolean ok = base.getSnapshot().getElement().size() == focus.getSnapshot().getElement().size(); for (int i = 0; i < base.getSnapshot().getElement().size(); i++) { @@ -192,16 +80,13 @@ public class ProfileUtilitiesTests { // */ @Test public void testSimple2() throws EOperationOutcome, Exception { - if (TestingUtilities.context == null) - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - - StructureDefinition base = TestingUtilities.context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/ValueSet").copy(); + StructureDefinition base = TestingUtilities.context().fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/ValueSet").copy(); StructureDefinition focus = base.copy(); focus.setUrl(Utilities.makeUuidUrn()); focus.setSnapshot(null); focus.setDifferential(null); List messages = new ArrayList(); - new ProfileUtilities(TestingUtilities.context, messages, null).generateSnapshot(base, focus, focus.getUrl(), "Simple Test" ); + new ProfileUtilities(TestingUtilities.context(), messages, null).generateSnapshot(base, focus, focus.getUrl(), "Simple Test" ); boolean ok = base.getSnapshot().getElement().size() == focus.getSnapshot().getElement().size(); for (int i = 0; i < base.getSnapshot().getElement().size(); i++) { diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceRoundTripTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceRoundTripTests.java index 7f29c89a4..230b584a8 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceRoundTripTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceRoundTripTests.java @@ -1,17 +1,24 @@ package org.hl7.fhir.r4.test; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; +import java.io.InputStream; +import org.fhir.ucum.UcumException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.context.SimpleWorkerContext; import org.hl7.fhir.r4.formats.IParser.OutputStyle; +import org.hl7.fhir.r4.formats.IParser; +import org.hl7.fhir.r4.formats.JsonParser; import org.hl7.fhir.r4.formats.XmlParser; +import org.hl7.fhir.r4.model.Bundle; import org.hl7.fhir.r4.model.DomainResource; import org.hl7.fhir.r4.model.Resource; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.EOperationOutcome; import org.hl7.fhir.r4.utils.NarrativeGenerator; import org.hl7.fhir.utilities.Utilities; @@ -25,12 +32,31 @@ public class ResourceRoundTripTests { } @Test - public void test() throws FileNotFoundException, IOException, FHIRException, EOperationOutcome { - if (TestingUtilities.context == null) - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - Resource res = new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.home(), "tests", "resources", "unicode.xml"))); - new NarrativeGenerator("", "", TestingUtilities.context).generate((DomainResource) res, null); - new XmlParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.path(TestingUtilities.home(), "tests", "resources","unicode.out.xml")), res); + public void test() throws FileNotFoundException, IOException, FHIRException, EOperationOutcome, UcumException { + Resource res = new XmlParser().parse(new FileInputStream(TestingUtilities.resourceNameToFile("unicode.xml"))); + new NarrativeGenerator("", "", TestingUtilities.context()).generate((DomainResource) res, null); + new XmlParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(TestingUtilities.resourceNameToFile("gen", "unicode.out.xml")), res); + } + + + @Test + public void testBundle() throws FHIRException, IOException { + // Create new Atom Feed + Bundle feed = new Bundle(); + + // Serialize Atom Feed + IParser comp = new JsonParser(); + ByteArrayOutputStream os = new ByteArrayOutputStream(); + comp.compose(os, feed); + os.close(); + String json = os.toString(); + + // Deserialize Atom Feed + JsonParser parser = new JsonParser(); + InputStream is = new ByteArrayInputStream(json.getBytes("UTF-8")); + Resource result = parser.parse(is); + if (result == null) + throw new FHIRException("Bundle was null"); } } diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ShexGeneratorTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ShexGeneratorTests.java index 1bb128d1d..c07038352 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ShexGeneratorTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ShexGeneratorTests.java @@ -5,82 +5,78 @@ import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.Path; +import org.fhir.ucum.UcumException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.conformance.ProfileUtilities; import org.hl7.fhir.r4.conformance.ShExGenerator; import org.hl7.fhir.r4.conformance.ShExGenerator.HTMLLinkPolicy; import org.hl7.fhir.r4.context.SimpleWorkerContext; import org.hl7.fhir.r4.model.StructureDefinition; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.utilities.TextFile; import org.junit.Test; public class ShexGeneratorTests { - private void doTest(String name) throws FileNotFoundException, IOException, FHIRException { + private void doTest(String name) throws FileNotFoundException, IOException, FHIRException, UcumException { String workingDirectory = "C:\\work\\org.hl7.fhir\\build\\publish"; // FileSystems.getDefault().getPath(System.getProperty("user.dir"), "data").toString(); // String workingDirectory = FileSystems.getDefault().getPath(System.getProperty("user.dir"), "..", "..", "..", "publish").toString(); - if (TestingUtilities.context == null) { - // For the time being, put the validation entry in org/hl7/fhir/r4/data - Path path = FileSystems.getDefault().getPath(workingDirectory, "definitions.xml.zip"); - TestingUtilities.context = SimpleWorkerContext.fromPack(path.toString()); - } - StructureDefinition sd = TestingUtilities.context.fetchResource(StructureDefinition.class, ProfileUtilities.sdNs(name, null)); + StructureDefinition sd = TestingUtilities.context().fetchResource(StructureDefinition.class, ProfileUtilities.sdNs(name, null)); if(sd == null) { throw new FHIRException("StructuredDefinition for " + name + "was null"); } Path outPath = FileSystems.getDefault().getPath(workingDirectory, name.toLowerCase()+".shex"); - TextFile.stringToFile(new ShExGenerator(TestingUtilities.context).generate(HTMLLinkPolicy.NONE, sd), outPath.toString()); + TextFile.stringToFile(new ShExGenerator(TestingUtilities.context()).generate(HTMLLinkPolicy.NONE, sd), outPath.toString()); } @Test - public void testId() throws FHIRException, IOException { + public void testId() throws FHIRException, IOException, UcumException { doTest("id"); } @Test - public void testUri() throws FHIRException, IOException { + public void testUri() throws FHIRException, IOException, UcumException { doTest("uri"); } @Test - public void testObservation() throws FHIRException, IOException { + public void testObservation() throws FHIRException, IOException, UcumException { doTest("Observation"); } @Test - public void testRef() throws FHIRException, IOException { + public void testRef() throws FHIRException, IOException, UcumException { doTest("Reference"); } @Test - public void testAccount() throws FHIRException, IOException { + public void testAccount() throws FHIRException, IOException, UcumException { doTest("Account"); } @Test - public void testMedicationOrder() throws FHIRException, IOException { - doTest("MedicationOrder"); + public void testMedicationRequest() throws FHIRException, IOException, UcumException { + doTest("MedicationRequest"); } @Test - public void testAllergyIntolerance() throws FHIRException, IOException { + public void testAllergyIntolerance() throws FHIRException, IOException, UcumException { doTest("AllergyIntolerance"); } @Test - public void testCoding() throws FHIRException, IOException { + public void testCoding() throws FHIRException, IOException, UcumException { doTest("Coding"); } @Test - public void testTiming() throws FHIRException, IOException { + public void testTiming() throws FHIRException, IOException, UcumException { doTest("Timing"); } @Test - public void testSignature() throws FHIRException, IOException { + public void testSignature() throws FHIRException, IOException, UcumException { doTest("Signature"); } } diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SnapShotGenerationTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SnapShotGenerationTests.java index cd113f41d..1f7984b2b 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SnapShotGenerationTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SnapShotGenerationTests.java @@ -37,8 +37,8 @@ import org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent; import org.hl7.fhir.r4.model.TestScript.TestActionComponent; import org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent; import org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.model.TypeDetails; -import org.hl7.fhir.r4.test.support.TestingUtilities; import org.hl7.fhir.r4.utils.CodingUtilities; import org.hl7.fhir.r4.utils.FHIRPathEngine; import org.hl7.fhir.r4.utils.FHIRPathEngine.IEvaluationContext; @@ -60,13 +60,13 @@ public class SnapShotGenerationTests { @Override public boolean isDatatype(String name) { - StructureDefinition sd = TestingUtilities.context.fetchTypeDefinition(name); + StructureDefinition sd = TestingUtilities.context().fetchTypeDefinition(name); return (sd != null) && (sd.getDerivation() == TypeDerivationRule.SPECIALIZATION) && (sd.getKind() == StructureDefinitionKind.PRIMITIVETYPE || sd.getKind() == StructureDefinitionKind.COMPLEXTYPE); } @Override public boolean isResource(String typeSimple) { - StructureDefinition sd = TestingUtilities.context.fetchTypeDefinition(name); + StructureDefinition sd = TestingUtilities.context().fetchTypeDefinition(name); return (sd != null) && (sd.getDerivation() == TypeDerivationRule.SPECIALIZATION) && (sd.getKind() == StructureDefinitionKind.RESOURCE); } @@ -90,7 +90,7 @@ public class SnapShotGenerationTests { @Override public String getLinkForProfile(StructureDefinition profile, String url) { - StructureDefinition sd = TestingUtilities.context.fetchResource(StructureDefinition.class, url); + StructureDefinition sd = TestingUtilities.context().fetchResource(StructureDefinition.class, url); if (sd == null) return url+"|"+url; else @@ -229,7 +229,7 @@ public class SnapShotGenerationTests { @Override public TypeDetails checkFunction(Object appContext, String functionName, List parameters) throws PathEngineException { if ("fixture".equals(functionName)) - return new TypeDetails(CollectionStatus.SINGLETON, TestingUtilities.context.getResourceNamesAsSet()); + return new TypeDetails(CollectionStatus.SINGLETON, TestingUtilities.context().getResourceNamesAsSet()); return null; } @@ -255,7 +255,7 @@ public class SnapShotGenerationTests { @Override public boolean conformsToProfile(Object appContext, Base item, String url) throws FHIRException { - IResourceValidator val = TestingUtilities.context.newValidator(); + IResourceValidator val = TestingUtilities.context().newValidator(); List valerrors = new ArrayList(); if (item instanceof Resource) { val.validate(appContext, valerrors, (Resource) item, url); @@ -275,7 +275,7 @@ public class SnapShotGenerationTests { @Parameters(name = "{index}: file {0}") public static Iterable data() throws ParserConfigurationException, IOException, FHIRFormatError { SnapShotGenerationTestsContext context = new SnapShotGenerationTestsContext(); - context.tests = (TestScript) new XmlParser().parse(new FileInputStream(Utilities.path(TestingUtilities.home(), "tests", "resources", "snapshot-generation-tests.xml"))); + context.tests = (TestScript) new XmlParser().parse(new FileInputStream(TestingUtilities.resourceNameToFile("snapshot-generation-tests.xml"))); context.checkTestsDetails(); @@ -302,24 +302,21 @@ public class SnapShotGenerationTests { @Test public void test() throws FHIRException { try { - if (TestingUtilities.context == null) { - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - } for (Resource cr : context.tests.getContained()) { if (cr instanceof StructureDefinition) { StructureDefinition sd = (StructureDefinition) cr; if (sd.getType().equals("Extension")) { - if (TestingUtilities.context.fetchResource(StructureDefinition.class, sd.getUrl()) == null) { + if (TestingUtilities.context().fetchResource(StructureDefinition.class, sd.getUrl()) == null) { sd.setUserData("path", "test-"+sd.getId()+".html"); - StructureDefinition extd = TestingUtilities.context.fetchResource(StructureDefinition.class, sd.getBaseDefinition()); - new ProfileUtilities(TestingUtilities.context, null, null).generateSnapshot(extd, sd, sd.getUrl(), sd.getName()); - TestingUtilities.context.cacheResource(sd); + StructureDefinition extd = TestingUtilities.context().fetchResource(StructureDefinition.class, sd.getBaseDefinition()); + new ProfileUtilities(TestingUtilities.context(), null, null).generateSnapshot(extd, sd, sd.getUrl(), sd.getName()); + TestingUtilities.context().cacheResource(sd); } } } } if (fp == null) - fp = new FHIRPathEngine(TestingUtilities.context); + fp = new FHIRPathEngine(TestingUtilities.context()); fp.setHostServices(context); resolveFixtures(); @@ -333,7 +330,7 @@ public class SnapShotGenerationTests { StructureDefinition source = (StructureDefinition) context.fetchFixture(op.getSourceId()); StructureDefinition base = getSD(source.getBaseDefinition()); StructureDefinition output = source.copy(); - ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context, null, new TestPKP()); + ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(), null, new TestPKP()); pu.setIds(source, false); if ("sort=true".equals(op.getParams())) { List errors = new ArrayList(); @@ -347,14 +344,14 @@ public class SnapShotGenerationTests { new XmlParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.path(System.getProperty("java.io.tmpdir"), op.getResponseId()+".xml")), output); if (output.getDifferential().hasElement()) - new NarrativeGenerator("", "http://hl7.org/fhir", TestingUtilities.context).setPkp(new TestPKP()).generate(output, null); + new NarrativeGenerator("", "http://hl7.org/fhir", TestingUtilities.context()).setPkp(new TestPKP()).generate(output, null); new XmlParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.path(System.getProperty("java.io.tmpdir"), op.getResponseId()+"-d.xml")), output); } else if (opType.getSystem().equals("http://hl7.org/fhir/testscript-operation-codes") && opType.getCode().equals("sortDifferential")) { StructureDefinition source = (StructureDefinition) context.fetchFixture(op.getSourceId()); StructureDefinition base = getSD(source.getBaseDefinition()); StructureDefinition output = source.copy(); - ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context, null, null); + ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(), null, null); pu.setIds(source, false); List errors = new ArrayList(); pu.sortDifferential(base, output, output.getUrl(), errors); @@ -386,7 +383,7 @@ public class SnapShotGenerationTests { if (sd == null) sd = findContainedProfile(url); if (sd == null) - sd = TestingUtilities.context.fetchResource(StructureDefinition.class, url); + sd = TestingUtilities.context().fetchResource(StructureDefinition.class, url); return sd; } @@ -396,7 +393,7 @@ public class SnapShotGenerationTests { StructureDefinition sd = (StructureDefinition) r; if (sd.getUrl().equals(url)) { StructureDefinition p = sd.copy(); - ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context, null, null); + ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(), null, null); pu.setIds(p, false); List errors = new ArrayList(); pu.sortDifferential(getSD(p.getBaseDefinition()), p, url, errors); @@ -414,7 +411,7 @@ public class SnapShotGenerationTests { if (context.fixtures == null) { context.fixtures = new HashMap(); for (TestScriptFixtureComponent fd : context.tests.getFixture()) { - Resource r = TestingUtilities.context.fetchResource(Resource.class, fd.getResource().getReference()); + Resource r = TestingUtilities.context().fetchResource(Resource.class, fd.getResource().getReference()); context.fixtures.put(fd.getId(), r); } } diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/TurtleTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/TurtleTests.java index 22056432f..66ca0bd40 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/TurtleTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/TurtleTests.java @@ -3,7 +3,7 @@ package org.hl7.fhir.r4.test; import java.io.FileNotFoundException; import java.io.IOException; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.formats.Turtle; import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; @@ -28,3519 +28,1561 @@ public class TurtleTests { @Test public void test_double_lower_case_e1() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "double_lower_case_e.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "double_lower_case_e.nt"), true); } @Test public void test_double_lower_case_e2() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "double_lower_case_e.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "double_lower_case_e.ttl"), true); } @Test public void test_empty_collection1() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "empty_collection.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "empty_collection.nt"), true); } @Test public void test_empty_collection2() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "empty_collection.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "empty_collection.ttl"), true); } @Test public void test_first1() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "first.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "first.nt"), true); } // @Test // public void test_first2() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "first.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "first.ttl"), true); // } // @Test public void test_HYPHEN_MINUS_in_localNameNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "HYPHEN_MINUS_in_localName.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "HYPHEN_MINUS_in_localName.nt"), true); } @Test public void test_HYPHEN_MINUS_in_localName() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "HYPHEN_MINUS_in_localName.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "HYPHEN_MINUS_in_localName.ttl"), true); } @Test public void test_IRI_spoNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRI_spo.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRI_spo.nt"), true); } @Test public void test_IRI_subject() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRI_subject.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRI_subject.ttl"), true); } @Test public void test_IRI_with_all_punctuationNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRI_with_all_punctuation.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRI_with_all_punctuation.nt"), true); } @Test public void test_IRI_with_all_punctuation() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRI_with_all_punctuation.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRI_with_all_punctuation.ttl"), true); } @Test public void test_IRI_with_eight_digit_numeric_escape() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRI_with_eight_digit_numeric_escape.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRI_with_eight_digit_numeric_escape.ttl"), true); } @Test public void test_IRI_with_four_digit_numeric_escape() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRI_with_four_digit_numeric_escape.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRI_with_four_digit_numeric_escape.ttl"), true); } @Test public void test_IRIREF_datatypeNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRIREF_datatype.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRIREF_datatype.nt"), true); } @Test public void test_IRIREF_datatype() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "IRIREF_datatype.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "IRIREF_datatype.ttl"), true); } @Test public void test_labeled_blank_node_objectNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_object.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_object.nt"), true); } @Test public void test_labeled_blank_node_object() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_object.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_object.ttl"), true); } @Test public void test_labeled_blank_node_subjectNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_subject.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_subject.nt"), true); } @Test public void test_labeled_blank_node_subject() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_subject.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_subject.ttl"), true); } @Test public void test_labeled_blank_node_with_leading_digit() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_with_leading_digit.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_with_leading_digit.ttl"), true); } @Test public void test_labeled_blank_node_with_leading_underscore() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_with_leading_underscore.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_with_leading_underscore.ttl"), true); } @Test public void test_labeled_blank_node_with_non_leading_extras() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_with_non_leading_extras.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_with_non_leading_extras.ttl"), true); } @Test public void test_labeled_blank_node_with_PN_CHARS_BASE_character_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl"), false); } @Test public void test_langtagged_LONG() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "langtagged_LONG.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "langtagged_LONG.ttl"), true); } @Test public void test_langtagged_LONG_with_subtagNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "langtagged_LONG_with_subtag.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "langtagged_LONG_with_subtag.nt"), true); } @Test public void test_langtagged_LONG_with_subtag() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "langtagged_LONG_with_subtag.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "langtagged_LONG_with_subtag.ttl"), true); } @Test public void test_langtagged_non_LONGNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "langtagged_non_LONG.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "langtagged_non_LONG.nt"), true); } @Test public void test_langtagged_non_LONG() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "langtagged_non_LONG.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "langtagged_non_LONG.ttl"), true); } @Test public void test_lantag_with_subtagNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "lantag_with_subtag.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "lantag_with_subtag.nt"), true); } @Test public void test_lantag_with_subtag() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "lantag_with_subtag.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "lantag_with_subtag.ttl"), true); } @Test public void test_lastNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "last.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "last.nt"), true); } @Test public void test_last() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "last.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "last.ttl"), false); } @Test public void test_literal_falseNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_false.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_false.nt"), true); } @Test public void test_literal_false() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_false.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_false.ttl"), true); } @Test public void test_LITERAL_LONG1() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1.ttl"), true); } @Test public void test_LITERAL_LONG1_ascii_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_ascii_boundaries.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_ascii_boundaries.nt"), false); } @Test public void test_LITERAL_LONG1_ascii_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_ascii_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_ascii_boundaries.ttl"), true); } @Test public void test_LITERAL_LONG1_with_1_squoteNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_with_1_squote.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_with_1_squote.nt"), true); } @Test public void test_LITERAL_LONG1_with_1_squote() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_with_1_squote.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_with_1_squote.ttl"), true); } @Test public void test_LITERAL_LONG1_with_2_squotesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_with_2_squotes.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_with_2_squotes.nt"), true); } @Test public void test_LITERAL_LONG1_with_2_squotes() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_with_2_squotes.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_with_2_squotes.ttl"), true); } @Test public void test_LITERAL_LONG1_with_UTF8_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG1_with_UTF8_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG1_with_UTF8_boundaries.ttl"), true); } @Test public void test_LITERAL_LONG2() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2.ttl"), true); } @Test public void test_LITERAL_LONG2_ascii_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_ascii_boundaries.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_ascii_boundaries.nt"), false); } @Test public void test_LITERAL_LONG2_ascii_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_ascii_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_ascii_boundaries.ttl"), true); } @Test public void test_LITERAL_LONG2_with_1_squoteNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_1_squote.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_1_squote.nt"), true); } @Test public void test_LITERAL_LONG2_with_1_squote() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_1_squote.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_1_squote.ttl"), true); } @Test public void test_LITERAL_LONG2_with_2_squotesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_2_squotes.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_2_squotes.nt"), true); } @Test public void test_LITERAL_LONG2_with_2_squotes() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_2_squotes.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_2_squotes.ttl"), true); } @Test public void test_LITERAL_LONG2_with_REVERSE_SOLIDUSNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_REVERSE_SOLIDUS.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_REVERSE_SOLIDUS.nt"), false); } @Test public void test_LITERAL_LONG2_with_REVERSE_SOLIDUS() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl"), false); } @Test public void test_LITERAL_LONG2_with_UTF8_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_LONG2_with_UTF8_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_LONG2_with_UTF8_boundaries.ttl"), true); } @Test public void test_literal_trueNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_true.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_true.nt"), true); } @Test public void test_literal_true() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_true.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_true.ttl"), true); } @Test public void test_literal_with_BACKSPACENT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_BACKSPACE.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_BACKSPACE.nt"), false); } @Test public void test_literal_with_BACKSPACE() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_BACKSPACE.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_BACKSPACE.ttl"), true); } @Test public void test_literal_with_CARRIAGE_RETURNNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_CARRIAGE_RETURN.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_CARRIAGE_RETURN.nt"), true); } @Test public void test_literal_with_CARRIAGE_RETURN() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_CARRIAGE_RETURN.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_CARRIAGE_RETURN.ttl"), true); } @Test public void test_literal_with_CHARACTER_TABULATIONNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_CHARACTER_TABULATION.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_CHARACTER_TABULATION.nt"), true); } @Test public void test_literal_with_CHARACTER_TABULATION() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_CHARACTER_TABULATION.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_CHARACTER_TABULATION.ttl"), true); } @Test public void test_literal_with_escaped_BACKSPACE() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_escaped_BACKSPACE.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_escaped_BACKSPACE.ttl"), false); } @Test public void test_literal_with_escaped_CARRIAGE_RETURN() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_escaped_CARRIAGE_RETURN.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_escaped_CARRIAGE_RETURN.ttl"), true); } @Test public void test_literal_with_escaped_CHARACTER_TABULATION() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_escaped_CHARACTER_TABULATION.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_escaped_CHARACTER_TABULATION.ttl"), true); } @Test public void test_literal_with_escaped_FORM_FEED() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_escaped_FORM_FEED.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_escaped_FORM_FEED.ttl"), true); } @Test public void test_literal_with_escaped_LINE_FEED() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_escaped_LINE_FEED.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_escaped_LINE_FEED.ttl"), true); } // @Test // public void test_literal_with_FORM_FEEDNT() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_FORM_FEED.nt"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_FORM_FEED.nt"), true); // } @Test public void test_literal_with_FORM_FEED() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_FORM_FEED.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_FORM_FEED.ttl"), true); } @Test public void test_literal_with_LINE_FEEDNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_LINE_FEED.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_LINE_FEED.nt"), true); } @Test public void test_literal_with_LINE_FEED() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_LINE_FEED.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_LINE_FEED.ttl"), true); } @Test public void test_literal_with_numeric_escape4NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_numeric_escape4.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_numeric_escape4.nt"), true); } @Test public void test_literal_with_numeric_escape4() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_numeric_escape4.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_numeric_escape4.ttl"), true); } @Test public void test_literal_with_numeric_escape8() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_numeric_escape8.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_numeric_escape8.ttl"), true); } @Test public void test_literal_with_REVERSE_SOLIDUSNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_REVERSE_SOLIDUS.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_REVERSE_SOLIDUS.nt"), false); } @Test public void test_literal_with_REVERSE_SOLIDUS() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "literal_with_REVERSE_SOLIDUS.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "literal_with_REVERSE_SOLIDUS.ttl"), true); } @Test public void test_LITERAL_with_UTF8_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL_with_UTF8_boundaries.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL_with_UTF8_boundaries.nt"), true); } @Test public void test_LITERAL1NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1.nt"), true); } @Test public void test_LITERAL1() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1.ttl"), true); } @Test public void test_LITERAL1_all_controlsNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_all_controls.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_all_controls.nt"), false); } @Test public void test_LITERAL1_all_controls() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_all_controls.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_all_controls.ttl"), true); } @Test public void test_LITERAL1_all_punctuationNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_all_punctuation.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_all_punctuation.nt"), true); } @Test public void test_LITERAL1_all_punctuation() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_all_punctuation.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_all_punctuation.ttl"), true); } // @Test // public void test_LITERAL1_ascii_boundariesNT() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_ascii_boundaries.nt"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_ascii_boundaries.nt"), true); // } @Test public void test_LITERAL1_ascii_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_ascii_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_ascii_boundaries.ttl"), true); } @Test public void test_LITERAL1_with_UTF8_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL1_with_UTF8_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL1_with_UTF8_boundaries.ttl"), true); } @Test public void test_LITERAL2() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL2.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL2.ttl"), true); } @Test public void test_LITERAL2_ascii_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL2_ascii_boundaries.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL2_ascii_boundaries.nt"), false); } @Test public void test_LITERAL2_ascii_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL2_ascii_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL2_ascii_boundaries.ttl"), true); } @Test public void test_LITERAL2_with_UTF8_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "LITERAL2_with_UTF8_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "LITERAL2_with_UTF8_boundaries.ttl"), true); } @Test public void test_localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt"), true); } @Test public void test_localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl"), true); } @Test public void test_localName_with_assigned_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt"), true); } @Test public void test_localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl"), false); } // don't need to support property names with ':' // @Test // public void test_localname_with_COLONNT() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localname_with_COLON.nt"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "localname_with_COLON.nt"), true); // } // @Test // public void test_localname_with_COLON() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localname_with_COLON.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "localname_with_COLON.ttl"), true); // } @Test public void test_localName_with_leading_digitNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_leading_digit.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_leading_digit.nt"), true); } @Test public void test_localName_with_leading_digit() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_leading_digit.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_leading_digit.ttl"), true); } @Test public void test_localName_with_leading_underscoreNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_leading_underscore.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_leading_underscore.nt"), true); } @Test public void test_localName_with_leading_underscore() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_leading_underscore.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_leading_underscore.ttl"), true); } @Test public void test_localName_with_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt"), true); } @Test public void test_localName_with_nfc_PN_CHARS_BASE_character_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl"), false); } @Test public void test_localName_with_non_leading_extrasNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_non_leading_extras.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_non_leading_extras.nt"), true); } @Test public void test_localName_with_non_leading_extras() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "localName_with_non_leading_extras.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_non_leading_extras.ttl"), true); } @Test public void test_negative_numericNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "negative_numeric.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "negative_numeric.nt"), true); } @Test public void test_negative_numeric() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "negative_numeric.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "negative_numeric.ttl"), true); } @Test public void test_nested_blankNodePropertyListsNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "nested_blankNodePropertyLists.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "nested_blankNodePropertyLists.nt"), true); } @Test public void test_nested_blankNodePropertyLists() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "nested_blankNodePropertyLists.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "nested_blankNodePropertyLists.ttl"), true); } @Test public void test_nested_collectionNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "nested_collection.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "nested_collection.nt"), true); } @Test public void test_nested_collection() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "nested_collection.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "nested_collection.ttl"), false); } @Test public void test_number_sign_following_localNameNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "number_sign_following_localName.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "number_sign_following_localName.nt"), true); } @Test public void test_number_sign_following_localName() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "number_sign_following_localName.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "number_sign_following_localName.ttl"), true); } @Test public void test_number_sign_following_PNAME_NSNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "number_sign_following_PNAME_NS.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "number_sign_following_PNAME_NS.nt"), true); } // @Test // public void test_number_sign_following_PNAME_NS() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "number_sign_following_PNAME_NS.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "number_sign_following_PNAME_NS.ttl"), true); // } @Test public void test_numeric_with_leading_0NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "numeric_with_leading_0.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "numeric_with_leading_0.nt"), true); } @Test public void test_numeric_with_leading_0() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "numeric_with_leading_0.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "numeric_with_leading_0.ttl"), true); } @Test public void test_objectList_with_two_objectsNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "objectList_with_two_objects.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "objectList_with_two_objects.nt"), true); } @Test public void test_objectList_with_two_objects() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "objectList_with_two_objects.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "objectList_with_two_objects.ttl"), true); } @Test public void test_old_style_base() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "old_style_base.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "old_style_base.ttl"), true); } @Test public void test_old_style_prefix() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "old_style_prefix.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "old_style_prefix.ttl"), true); } @Test public void test_percent_escaped_localNameNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "percent_escaped_localName.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "percent_escaped_localName.nt"), true); } // @Test // public void test_percent_escaped_localName() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "percent_escaped_localName.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "percent_escaped_localName.ttl"), true); // } @Test public void test_positive_numericNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "positive_numeric.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "positive_numeric.nt"), true); } @Test public void test_positive_numeric() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "positive_numeric.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "positive_numeric.ttl"), true); } @Test public void test_predicateObjectList_with_two_objectListsNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "predicateObjectList_with_two_objectLists.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "predicateObjectList_with_two_objectLists.nt"), true); } @Test public void test_predicateObjectList_with_two_objectLists() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "predicateObjectList_with_two_objectLists.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "predicateObjectList_with_two_objectLists.ttl"), true); } // @Test // public void test_prefix_only_IRI() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefix_only_IRI.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "prefix_only_IRI.ttl"), true); // } @Test public void test_prefix_reassigned_and_usedNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefix_reassigned_and_used.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefix_reassigned_and_used.nt"), true); } @Test public void test_prefix_reassigned_and_used() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefix_reassigned_and_used.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefix_reassigned_and_used.ttl"), true); } @Test public void test_prefix_with_non_leading_extras() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefix_with_non_leading_extras.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefix_with_non_leading_extras.ttl"), true); } @Test public void test_prefix_with_PN_CHARS_BASE_character_boundaries() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefix_with_PN_CHARS_BASE_character_boundaries.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefix_with_PN_CHARS_BASE_character_boundaries.ttl"), true); } @Test public void test_prefixed_IRI_object() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefixed_IRI_object.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefixed_IRI_object.ttl"), true); } @Test public void test_prefixed_IRI_predicate() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefixed_IRI_predicate.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefixed_IRI_predicate.ttl"), true); } @Test public void test_prefixed_name_datatype() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "prefixed_name_datatype.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "prefixed_name_datatype.ttl"), true); } @Test public void test_repeated_semis_at_end() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "repeated_semis_at_end.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "repeated_semis_at_end.ttl"), true); } @Test public void test_repeated_semis_not_at_endNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "repeated_semis_not_at_end.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "repeated_semis_not_at_end.nt"), true); } @Test public void test_repeated_semis_not_at_end() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "repeated_semis_not_at_end.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "repeated_semis_not_at_end.ttl"), true); } @Test public void test_reserved_escaped_localNameNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "reserved_escaped_localName.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "reserved_escaped_localName.nt"), true); } // @Test // public void test_reserved_escaped_localName() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "reserved_escaped_localName.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "reserved_escaped_localName.ttl"), true); // } @Test public void test_sole_blankNodePropertyList() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "sole_blankNodePropertyList.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "sole_blankNodePropertyList.ttl"), true); } @Test public void test_SPARQL_style_base() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "SPARQL_style_base.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "SPARQL_style_base.ttl"), true); } @Test public void test_SPARQL_style_prefix() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "SPARQL_style_prefix.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "SPARQL_style_prefix.ttl"), true); } @Test public void test_turtle_eval_bad_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-bad-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-bad-01.ttl"), false); } @Test public void test_turtle_eval_bad_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-bad-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-bad-02.ttl"), false); } @Test public void test_turtle_eval_bad_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-bad-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-bad-03.ttl"), false); } // @Test // public void test_turtle_eval_bad_04() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-bad-04.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-bad-04.ttl"), false); // } @Test public void test_turtle_eval_struct_01NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-struct-01.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-struct-01.nt"), true); } @Test public void test_turtle_eval_struct_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-struct-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-struct-01.ttl"), true); } @Test public void test_turtle_eval_struct_02NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-struct-02.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-struct-02.nt"), true); } @Test public void test_turtle_eval_struct_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-eval-struct-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-eval-struct-02.ttl"), true); } @Test public void test_turtle_subm_01NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-01.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-01.nt"), true); } @Test public void test_turtle_subm_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-01.ttl"), true); } @Test public void test_turtle_subm_02NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-02.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-02.nt"), true); } @Test public void test_turtle_subm_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-02.ttl"), true); } @Test public void test_turtle_subm_03NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-03.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-03.nt"), true); } @Test public void test_turtle_subm_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-03.ttl"), false); } @Test public void test_turtle_subm_04NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-04.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-04.nt"), true); } @Test public void test_turtle_subm_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-04.ttl"), true); } @Test public void test_turtle_subm_05NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-05.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-05.nt"), true); } @Test public void test_turtle_subm_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-05.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-05.ttl"), true); } @Test public void test_turtle_subm_06NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-06.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-06.nt"), true); } @Test public void test_turtle_subm_06() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-06.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-06.ttl"), true); } @Test public void test_turtle_subm_07NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-07.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-07.nt"), true); } @Test public void test_turtle_subm_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-07.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-07.ttl"), false); } @Test public void test_NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-08.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-08.nt"), true); } @Test public void test_turtle_subm_08() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-08.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-08.ttl"), true); } @Test public void test_turtle_subm_09NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-09.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-09.nt"), true); } @Test public void test_turtle_subm_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-09.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-09.ttl"), true); } @Test public void test_turtle_subm_10NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-10.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-10.nt"), true); } @Test public void test_turtle_subm_10() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-10.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-10.ttl"), true); } @Test public void test_turtle_subm_11NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-11.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-11.nt"), true); } @Test public void test_turtle_subm_11() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-11.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-11.ttl"), true); } @Test public void test_turtle_subm_12NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-12.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-12.nt"), true); } @Test public void test_turtle_subm_12() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-12.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-12.ttl"), true); } @Test public void test_turtle_subm_13NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-13.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-13.nt"), true); } @Test public void test_turtle_subm_13() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-13.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-13.ttl"), true); } @Test public void test_turtle_subm_14NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-14.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-14.nt"), true); } @Test public void test_turtle_subm_14() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-14.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-14.ttl"), false); } @Test public void test_turtle_subm_15NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-15.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-15.nt"), true); } @Test public void test_turtle_subm_15() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-15.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-15.ttl"), true); } @Test public void test_turtle_subm_16NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-16.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-16.nt"), true); } @Test public void test_turtle_subm_16() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-16.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-16.ttl"), true); } @Test public void test_turtle_subm_17NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-17.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-17.nt"), true); } @Test public void test_turtle_subm_17() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-17.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-17.ttl"), true); } @Test public void test_turtle_subm_18NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-18.nt"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-18.nt"), false); } @Test public void test_turtle_subm_18() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-18.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-18.ttl"), false); } @Test public void test_turtle_subm_19NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-19.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-19.nt"), true); } @Test public void test_turtle_subm_19() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-19.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-19.ttl"), true); } @Test public void test_turtle_subm_20NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-20.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-20.nt"), true); } @Test public void test_turtle_subm_20() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-20.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-20.ttl"), true); } @Test public void test_turtle_subm_21NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-21.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-21.nt"), true); } @Test public void test_turtle_subm_21() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-21.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-21.ttl"), true); } @Test public void test_turtle_subm_22NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-22.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-22.nt"), true); } @Test public void test_turtle_subm_22() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-22.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-22.ttl"), true); } @Test public void test_turtle_subm_23NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-23.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-23.nt"), true); } @Test public void test_turtle_subm_23() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-23.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-23.ttl"), false); } @Test public void test_turtle_subm_24NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-24.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-24.nt"), true); } @Test public void test_turtle_subm_24() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-24.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-24.ttl"), true); } @Test public void test_turtle_subm_25NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-25.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-25.nt"), true); } @Test public void test_turtle_subm_25() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-25.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-25.ttl"), true); } @Test public void test_turtle_subm_26NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-26.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-26.nt"), true); } @Test public void test_turtle_subm_26() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-26.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-26.ttl"), true); } @Test public void test_turtle_subm_27NT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-27.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-27.nt"), true); } @Test public void test_turtle_subm_27() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-subm-27.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-subm-27.ttl"), false); } @Test public void test_turtle_syntax_bad_base_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-base-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-base-01.ttl"), false); } @Test public void test_turtle_syntax_bad_base_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-base-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-base-02.ttl"), false); } @Test public void test_turtle_syntax_bad_base_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-base-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-base-03.ttl"), false); } // @Test // public void test_turtle_syntax_bad_blank_label_dot_end() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-blank-label-dot-end.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-blank-label-dot-end.ttl"), false); // } @Test public void test_turtle_syntax_bad_esc_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-esc-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-esc-01.ttl"), false); } @Test public void test_turtle_syntax_bad_esc_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-esc-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-esc-02.ttl"), false); } @Test public void test_turtle_syntax_bad_esc_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-esc-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-esc-03.ttl"), false); } @Test public void test_turtle_syntax_bad_esc_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-esc-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-esc-04.ttl"), false); } @Test public void test_turtle_syntax_bad_kw_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-kw-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-kw-01.ttl"), false); } @Test public void test_turtle_syntax_bad_kw_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-kw-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-kw-02.ttl"), false); } @Test public void test_turtle_syntax_bad_kw_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-kw-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-kw-03.ttl"), false); } @Test public void test_turtle_syntax_bad_kw_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-kw-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-kw-04.ttl"), false); } @Test public void test_turtle_syntax_bad_kw_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-kw-05.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-kw-05.ttl"), false); } @Test public void test_turtle_syntax_bad_lang_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-lang-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-lang-01.ttl"), false); } @Test public void test_turtle_syntax_bad_LITERAL2_with_langtag_and_datatype() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl"), false); } @Test public void test_turtle_syntax_bad_ln_dash_start() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-ln-dash-start.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-ln-dash-start.ttl"), true); } @Test public void test_turtle_syntax_bad_ln_escape() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-ln-escape.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-ln-escape.ttl"), false); } @Test public void test_turtle_syntax_bad_ln_escape_start() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-ln-escape-start.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-ln-escape-start.ttl"), false); } @Test public void test_turtle_syntax_bad_missing_ns_dot_end() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-missing-ns-dot-end.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-missing-ns-dot-end.ttl"), false); } @Test public void test_turtle_syntax_bad_missing_ns_dot_start() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-missing-ns-dot-start.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-missing-ns-dot-start.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-01.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-02.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-03.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-04.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-05.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-05.ttl"), false); } // @Test // public void test_turtle_syntax_bad_n3_extras_06() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-06.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-06.ttl"), false); // } @Test public void test_turtle_syntax_bad_n3_extras_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-07.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-07.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_08() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-08.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-08.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-09.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-09.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_10() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-10.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-10.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_11() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-11.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-11.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_12() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-12.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-12.ttl"), false); } @Test public void test_turtle_syntax_bad_n3_extras_13() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-n3-extras-13.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-n3-extras-13.ttl"), false); } @Test public void test_turtle_syntax_bad_ns_dot_end() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-ns-dot-end.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-ns-dot-end.ttl"), true); } @Test public void test_turtle_syntax_bad_ns_dot_start() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-ns-dot-start.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-ns-dot-start.ttl"), false); } @Test public void test_turtle_syntax_bad_num_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-num-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-num-01.ttl"), false); } @Test public void test_turtle_syntax_bad_num_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-num-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-num-02.ttl"), false); } @Test public void test_turtle_syntax_bad_num_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-num-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-num-03.ttl"), false); } @Test public void test_turtle_syntax_bad_num_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-num-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-num-04.ttl"), false); } @Test public void test_turtle_syntax_bad_num_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-num-05.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-num-05.ttl"), false); } @Test public void test_turtle_syntax_bad_number_dot_in_anon() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-number-dot-in-anon.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-number-dot-in-anon.ttl"), true); } @Test public void test_turtle_syntax_bad_pname_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-pname-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-pname-01.ttl"), false); } @Test public void test_turtle_syntax_bad_pname_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-pname-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-pname-02.ttl"), false); } // @Test // public void test_turtle_syntax_bad_pname_03() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-pname-03.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-pname-03.ttl"), false); // } @Test public void test_turtle_syntax_bad_prefix_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-prefix-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-prefix-01.ttl"), false); } @Test public void test_turtle_syntax_bad_prefix_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-prefix-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-prefix-02.ttl"), false); } @Test public void test_turtle_syntax_bad_prefix_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-prefix-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-prefix-03.ttl"), false); } @Test public void test_turtle_syntax_bad_prefix_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-prefix-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-prefix-04.ttl"), false); } @Test public void test_turtle_syntax_bad_prefix_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-prefix-05.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-prefix-05.ttl"), false); } @Test public void test_turtle_syntax_bad_string_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-01.ttl"), false); } @Test public void test_turtle_syntax_bad_string_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-02.ttl"), false); } @Test public void test_turtle_syntax_bad_string_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-03.ttl"), false); } @Test public void test_turtle_syntax_bad_string_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-04.ttl"), false); } @Test public void test_turtle_syntax_bad_string_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-05.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-05.ttl"), false); } @Test public void test_turtle_syntax_bad_string_06() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-06.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-06.ttl"), false); } @Test public void test_turtle_syntax_bad_string_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-string-07.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-string-07.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-01.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-02.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-03.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-04.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-04.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-05.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-05.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_06() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-06.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-06.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-07.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-07.ttl"), true); } @Test public void test_turtle_syntax_bad_struct_08() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-08.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-08.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-09.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-09.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_10() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-10.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-10.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_11() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-11.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-11.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_12() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-12.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-12.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_13() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-13.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-13.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_14() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-14.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-14.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_15() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-15.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-15.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_16() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-16.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-16.ttl"), false); } @Test public void test_turtle_syntax_bad_struct_17() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-struct-17.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-struct-17.ttl"), true); } // @Test // public void test_turtle_syntax_bad_uri_01() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-uri-01.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-uri-01.ttl"), false); // } @Test public void test_turtle_syntax_bad_uri_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-uri-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-uri-02.ttl"), false); } @Test public void test_turtle_syntax_bad_uri_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-uri-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-uri-03.ttl"), false); } // @Test // public void test_turtle_syntax_bad_uri_04() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-uri-04.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-uri-04.ttl"), false); // } // @Test // public void test_turtle_syntax_bad_uri_05() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bad-uri-05.ttl"), false); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bad-uri-05.ttl"), false); // } @Test public void test_turtle_syntax_base_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-base-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-base-01.ttl"), true); } @Test public void test_turtle_syntax_base_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-base-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-base-02.ttl"), true); } @Test public void test_turtle_syntax_base_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-base-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-base-03.ttl"), true); } @Test public void test_turtle_syntax_base_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-base-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-base-04.ttl"), true); } @Test public void test_turtle_syntax_blank_label() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-blank-label.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-blank-label.ttl"), true); } @Test public void test_turtle_syntax_bnode_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-01.ttl"), true); } @Test public void test_turtle_syntax_bnode_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-02.ttl"), true); } @Test public void test_turtle_syntax_bnode_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-03.ttl"), true); } @Test public void test_turtle_syntax_bnode_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-04.ttl"), true); } @Test public void test_turtle_syntax_bnode_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-05.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-05.ttl"), true); } @Test public void test_turtle_syntax_bnode_06() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-06.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-06.ttl"), true); } @Test public void test_turtle_syntax_bnode_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-07.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-07.ttl"), true); } @Test public void test_turtle_syntax_bnode_08() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-08.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-08.ttl"), true); } @Test public void test_turtle_syntax_bnode_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-09.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-09.ttl"), true); } @Test public void test_turtle_syntax_bnode_10() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-bnode-10.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-bnode-10.ttl"), true); } @Test public void test_turtle_syntax_datatypes_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-datatypes-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-datatypes-01.ttl"), true); } @Test public void test_turtle_syntax_datatypes_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-datatypes-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-datatypes-02.ttl"), true); } @Test public void test_turtle_syntax_file_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-file-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-file-01.ttl"), true); } @Test public void test_turtle_syntax_file_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-file-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-file-02.ttl"), true); } @Test public void test_turtle_syntax_file_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-file-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-file-03.ttl"), true); } @Test public void test_turtle_syntax_kw_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-kw-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-kw-01.ttl"), true); } @Test public void test_turtle_syntax_kw_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-kw-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-kw-02.ttl"), true); } @Test public void test_turtle_syntax_kw_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-kw-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-kw-03.ttl"), false); } @Test public void test_turtle_syntax_lists_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-lists-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-lists-01.ttl"), true); } @Test public void test_turtle_syntax_lists_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-lists-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-lists-02.ttl"), true); } // @Test // public void test_turtle_syntax_lists_03() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-lists-03.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-lists-03.ttl"), true); // } // @Test // public void test_turtle_syntax_lists_04() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-lists-04.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-lists-04.ttl"), true); // } // @Test // public void test_turtle_syntax_lists_05() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-lists-05.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-lists-05.ttl"), true); // } // @Test // public void test_turtle_syntax_ln_colons() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-ln-colons.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-ln-colons.ttl"), true); // } @Test public void test_turtle_syntax_ln_dots() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-ln-dots.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-ln-dots.ttl"), false); } @Test public void test_turtle_syntax_ns_dots() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-ns-dots.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-ns-dots.ttl"), true); } @Test public void test_turtle_syntax_number_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-01.ttl"), true); } @Test public void test_turtle_syntax_number_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-02.ttl"), true); } @Test public void test_turtle_syntax_number_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-03.ttl"), true); } @Test public void test_turtle_syntax_number_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-04.ttl"), true); } // @Test // public void test_turtle_syntax_number_05() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-05.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-05.ttl"), true); // } @Test public void test_turtle_syntax_number_06() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-06.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-06.ttl"), true); } @Test public void test_turtle_syntax_number_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-07.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-07.ttl"), true); } // @Test // public void test_turtle_syntax_number_08() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-08.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-08.ttl"), true); // } @Test public void test_turtle_syntax_number_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-09.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-09.ttl"), true); } @Test public void test_turtle_syntax_number_10() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-10.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-10.ttl"), true); } @Test public void test_turtle_syntax_number_11() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-number-11.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-number-11.ttl"), true); } @Test public void test_turtle_syntax_pname_esc_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-pname-esc-01.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-pname-esc-01.ttl"), false); } @Test public void test_turtle_syntax_pname_esc_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-pname-esc-02.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-pname-esc-02.ttl"), false); } @Test public void test_turtle_syntax_pname_esc_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-pname-esc-03.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-pname-esc-03.ttl"), false); } @Test public void test_turtle_syntax_prefix_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-01.ttl"), true); } // @Test // public void test_turtle_syntax_prefix_02() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-02.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-02.ttl"), true); // } @Test public void test_turtle_syntax_prefix_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-03.ttl"), true); } @Test public void test_turtle_syntax_prefix_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-04.ttl"), true); } // @Test // public void test_turtle_syntax_prefix_05() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-05.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-05.ttl"), true); // } // @Test // public void test_turtle_syntax_prefix_06() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-06.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-06.ttl"), true); // } @Test public void test_turtle_syntax_prefix_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-07.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-07.ttl"), true); } @Test public void test_turtle_syntax_prefix_08() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-08.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-08.ttl"), true); } @Test public void test_turtle_syntax_prefix_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-prefix-09.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-prefix-09.ttl"), true); } @Test public void test_turtle_syntax_str_esc_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-str-esc-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-str-esc-01.ttl"), true); } @Test public void test_turtle_syntax_str_esc_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-str-esc-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-str-esc-02.ttl"), true); } @Test public void test_turtle_syntax_str_esc_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-str-esc-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-str-esc-03.ttl"), true); } @Test public void test_turtle_syntax_string_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-01.ttl"), true); } @Test public void test_turtle_syntax_string_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-02.ttl"), true); } @Test public void test_turtle_syntax_string_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-03.ttl"), true); } @Test public void test_turtle_syntax_string_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-04.ttl"), true); } @Test public void test_turtle_syntax_string_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-05.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-05.ttl"), true); } @Test public void test_turtle_syntax_string_06() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-06.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-06.ttl"), true); } @Test public void test_turtle_syntax_string_07() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-07.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-07.ttl"), true); } @Test public void test_turtle_syntax_string_08() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-08.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-08.ttl"), true); } @Test public void test_turtle_syntax_string_09() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-09.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-09.ttl"), true); } @Test public void test_turtle_syntax_string_10() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-10.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-10.ttl"), true); } @Test public void test_turtle_syntax_string_11() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-string-11.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-string-11.ttl"), true); } @Test public void test_turtle_syntax_struct_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-struct-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-struct-01.ttl"), true); } @Test public void test_turtle_syntax_struct_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-struct-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-struct-02.ttl"), true); } @Test public void test_turtle_syntax_struct_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-struct-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-struct-03.ttl"), true); } @Test public void test_turtle_syntax_struct_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-struct-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-struct-04.ttl"), true); } @Test public void test_turtle_syntax_struct_05() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-struct-05.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-struct-05.ttl"), true); } @Test public void test_turtle_syntax_uri_01() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-uri-01.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-uri-01.ttl"), true); } @Test public void test_turtle_syntax_uri_02() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-uri-02.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-uri-02.ttl"), true); } @Test public void test_turtle_syntax_uri_03() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-uri-03.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-uri-03.ttl"), true); } @Test public void test_turtle_syntax_uri_04() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "turtle-syntax-uri-04.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "turtle-syntax-uri-04.ttl"), true); } @Test public void test_two_LITERAL_LONG2sNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "two_LITERAL_LONG2s.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "two_LITERAL_LONG2s.nt"), true); } @Test public void test_two_LITERAL_LONG2s() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "two_LITERAL_LONG2s.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "two_LITERAL_LONG2s.ttl"), true); } @Test public void test_underscore_in_localNameNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "underscore_in_localName.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "underscore_in_localName.nt"), true); } @Test public void test_underscore_in_localName() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "underscore_in_localName.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "underscore_in_localName.ttl"), true); } @Test public void test_anonymous_blank_node_object() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "anonymous_blank_node_object.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "anonymous_blank_node_object.ttl"), true); } @Test public void test_anonymous_blank_node_subject() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "anonymous_blank_node_subject.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "anonymous_blank_node_subject.ttl"), true); } @Test public void test_bareword_a_predicateNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_a_predicate.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_a_predicate.nt"), true); } @Test public void test_bareword_a_predicate() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_a_predicate.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_a_predicate.ttl"), true); } @Test public void test_bareword_decimalNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_decimal.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_decimal.nt"), true); } @Test public void test_bareword_decimal() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_decimal.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_decimal.ttl"), true); } @Test public void test_bareword_doubleNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_double.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_double.nt"), true); } @Test public void test_bareword_double() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_double.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_double.ttl"), true); } @Test public void test_bareword_integer() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "bareword_integer.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "bareword_integer.ttl"), true); } @Test public void test_blankNodePropertyList_as_objectNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_as_object.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_as_object.nt"), true); } @Test public void test_blankNodePropertyList_as_object() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_as_object.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_as_object.ttl"), true); } @Test public void test_blankNodePropertyList_as_subjectNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_as_subject.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_as_subject.nt"), true); } // @Test // public void test_blankNodePropertyList_as_subject() throws Exception { -// doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_as_subject.ttl"), true); +// doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_as_subject.ttl"), true); // } @Test public void test_blankNodePropertyList_containing_collectionNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_containing_collection.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_containing_collection.nt"), true); } @Test public void test_blankNodePropertyList_containing_collection() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_containing_collection.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_containing_collection.ttl"), true); } @Test public void test_blankNodePropertyList_with_multiple_triplesNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_with_multiple_triples.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_with_multiple_triples.nt"), true); } @Test public void test_blankNodePropertyList_with_multiple_triples() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "blankNodePropertyList_with_multiple_triples.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "blankNodePropertyList_with_multiple_triples.ttl"), true); } @Test public void test_collection_objectNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "collection_object.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "collection_object.nt"), true); } @Test public void test_collection_object() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "collection_object.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "collection_object.ttl"), true); } @Test public void test_collection_subjectNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "collection_subject.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "collection_subject.nt"), true); } @Test public void test_collection_subject() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "collection_subject.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "collection_subject.ttl"), false); } @Test public void test_comment_following_localName() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "comment_following_localName.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "comment_following_localName.ttl"), true); } @Test public void test_comment_following_PNAME_NSNT() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "comment_following_PNAME_NS.nt"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "comment_following_PNAME_NS.nt"), true); } @Test public void test_comment_following_PNAME_NS() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "comment_following_PNAME_NS.ttl"), false); + doTest(TestingUtilities.resourceNameToFile("turtle", "comment_following_PNAME_NS.ttl"), false); } @Test public void test__default_namespace_IRI() throws Exception { - doTest(Utilities.path(TestingUtilities.home(), "tests", "turtle", "default_namespace_IRI.ttl"), true); + doTest(TestingUtilities.resourceNameToFile("turtle", "default_namespace_IRI.ttl"), true); } // - @Test - public void test_audit_event_example_pixQuery() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("audit-event-example-pixQuery.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "audit-event-example-pixQuery.ttl"))); - } - @Test - public void test_audit_event_example_media() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("audit-event-example-media.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "audit-event-example-media.ttl"))); - } - @Test - public void test_audit_event_example_logout() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("audit-event-example-logout.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "audit-event-example-logout.ttl"))); - } - @Test - public void test_audit_event_example_login() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("audit-event-example-login.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "audit-event-example-login.ttl"))); - } - @Test - public void test_appointmentresponse_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("appointmentresponse-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "appointmentresponse-example.ttl"))); - } - @Test - public void test_appointmentresponse_example_req() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("appointmentresponse-example-req.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "appointmentresponse-example-req.ttl"))); - } - @Test - public void test_appointment_example2doctors() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("appointment-example2doctors.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "appointment-example2doctors.ttl"))); - } - @Test - public void test_appointment_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("appointment-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "appointment-example.ttl"))); - } - @Test - public void test_appointment_example_request() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("appointment-example-request.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "appointment-example-request.ttl"))); - } - @Test - public void test_allergyintolerance_medication() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("allergyintolerance-medication.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "allergyintolerance-medication.ttl"))); - } - @Test - public void test_allergyintolerance_fishallergy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("allergyintolerance-fishallergy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "allergyintolerance-fishallergy.ttl"))); - } - @Test - public void test_allergyintolerance_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("allergyintolerance-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "allergyintolerance-example.ttl"))); - } - @Test - public void test_account_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("account-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "account-example.ttl"))); - } - @Test - public void test_xds_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("xds-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "xds-example.ttl"))); - } - @Test - public void test_visionprescription_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("visionprescription-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "visionprescription-example.ttl"))); - } - @Test - public void test_visionprescription_example_1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("visionprescription-example-1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "visionprescription-example-1.ttl"))); - } - @Test - public void test_valueset_ucum_common() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-ucum-common.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-ucum-common.ttl"))); - } - @Test - public void test_valueset_nhin_purposeofuse() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-nhin-purposeofuse.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-nhin-purposeofuse.ttl"))); - } - @Test - public void test_valueset_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-example.ttl"))); - } - @Test - public void test_valueset_example_yesnodontknow() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-example-yesnodontknow.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-example-yesnodontknow.ttl"))); - } - @Test - public void test_valueset_example_intensional() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-example-intensional.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-example-intensional.ttl"))); - } - @Test - public void test_valueset_example_expansion() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-example-expansion.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-example-expansion.ttl"))); - } - @Test - public void test_valueset_cpt_all() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("valueset-cpt-all.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "valueset-cpt-all.ttl"))); - } - @Test - public void test_testscript_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("testscript-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "testscript-example.ttl"))); - } - @Test - public void test_testscript_example_rule() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("testscript-example-rule.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "testscript-example-rule.ttl"))); - } - @Test - public void test_supplydelivery_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("supplydelivery-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "supplydelivery-example.ttl"))); - } - @Test - public void test_substance_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("substance-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "substance-example.ttl"))); - } - @Test - public void test_substance_example_silver_nitrate_product() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("substance-example-silver-nitrate-product.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "substance-example-silver-nitrate-product.ttl"))); - } - @Test - public void test_substance_example_f203_potassium() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("substance-example-f203-potassium.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "substance-example-f203-potassium.ttl"))); - } - @Test - public void test_substance_example_f202_staphylococcus() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("substance-example-f202-staphylococcus.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "substance-example-f202-staphylococcus.ttl"))); - } - @Test - public void test_substance_example_f201_dust() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("substance-example-f201-dust.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "substance-example-f201-dust.ttl"))); - } - @Test - public void test_substance_example_amoxicillin_clavulanate() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("substance-example-amoxicillin-clavulanate.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "substance-example-amoxicillin-clavulanate.ttl"))); - } - @Test - public void test_subscription_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("subscription-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "subscription-example.ttl"))); - } - @Test - public void test_subscription_example_error() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("subscription-example-error.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "subscription-example-error.ttl"))); - } - @Test - public void test_structuremap_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("structuremap-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "structuremap-example.ttl"))); - } - @Test - public void test_structuredefinition_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("structuredefinition-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "structuredefinition-example.ttl"))); - } - @Test - public void test_specimen_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("specimen-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "specimen-example.ttl"))); - } - @Test - public void test_specimen_example_urine() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("specimen-example-urine.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "specimen-example-urine.ttl"))); - } - @Test - public void test_specimen_example_isolate() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("specimen-example-isolate.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "specimen-example-isolate.ttl"))); - } - @Test - public void test_slot_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("slot-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "slot-example.ttl"))); - } - @Test - public void test_slot_example_unavailable() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("slot-example-unavailable.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "slot-example-unavailable.ttl"))); - } - @Test - public void test_slot_example_tentative() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("slot-example-tentative.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "slot-example-tentative.ttl"))); - } - @Test - public void test_slot_example_busy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("slot-example-busy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "slot-example-busy.ttl"))); - } - @Test - public void test_sequence_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("sequence-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "sequence-example.ttl"))); - } - @Test - public void test_searchparameter_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("searchparameter-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "searchparameter-example.ttl"))); - } - @Test - public void test_searchparameter_example_extension() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("searchparameter-example-extension.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "searchparameter-example-extension.ttl"))); - } - @Test - public void test_schedule_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("schedule-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "schedule-example.ttl"))); - } - @Test - public void test_riskassessment_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("riskassessment-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "riskassessment-example.ttl"))); - } - @Test - public void test_riskassessment_example_prognosis() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("riskassessment-example-prognosis.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "riskassessment-example-prognosis.ttl"))); - } - @Test - public void test_riskassessment_example_population() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("riskassessment-example-population.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "riskassessment-example-population.ttl"))); - } - @Test - public void test_riskassessment_example_cardiac() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("riskassessment-example-cardiac.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "riskassessment-example-cardiac.ttl"))); - } - @Test - public void test_relatedperson_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("relatedperson-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "relatedperson-example.ttl"))); - } - @Test - public void test_relatedperson_example_peter() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("relatedperson-example-peter.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "relatedperson-example-peter.ttl"))); - } - @Test - public void test_relatedperson_example_f002_ariadne() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("relatedperson-example-f002-ariadne.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "relatedperson-example-f002-ariadne.ttl"))); - } - @Test - public void test_relatedperson_example_f001_sarah() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("relatedperson-example-f001-sarah.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "relatedperson-example-f001-sarah.ttl"))); - } - @Test - public void test_provenance_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("provenance-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "provenance-example.ttl"))); - } - @Test - public void test_provenance_example_sig() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("provenance-example-sig.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "provenance-example-sig.ttl"))); - } - @Test - public void test_processresponse_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processresponse-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processresponse-example.ttl"))); - } - @Test - public void test_processrequest_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example.ttl"))); - } - @Test - public void test_processrequest_example_status() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-status.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-status.ttl"))); - } - @Test - public void test_processrequest_example_reverse() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-reverse.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-reverse.ttl"))); - } - @Test - public void test_processrequest_example_reprocess() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-reprocess.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-reprocess.ttl"))); - } - @Test - public void test_processrequest_example_poll_specific() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-poll-specific.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-poll-specific.ttl"))); - } - @Test - public void test_processrequest_example_poll_payrec() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-poll-payrec.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-poll-payrec.ttl"))); - } - @Test - public void test_processrequest_example_poll_inclusive() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-poll-inclusive.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-poll-inclusive.ttl"))); - } - @Test - public void test_processrequest_example_poll_exclusive() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-poll-exclusive.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-poll-exclusive.ttl"))); - } - @Test - public void test_processrequest_example_poll_eob() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("processrequest-example-poll-eob.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "processrequest-example-poll-eob.ttl"))); - } - @Test - public void test_procedurerequest_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("servicerequest-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "servicerequest-example.ttl"))); - } - @Test - public void test_procedure_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example.ttl"))); - } - @Test - public void test_procedure_example_implant() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-implant.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-implant.ttl"))); - } - @Test - public void test_procedure_example_f201_tpf() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-f201-tpf.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-f201-tpf.ttl"))); - } - @Test - public void test_procedure_example_f004_tracheotomy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-f004-tracheotomy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-f004-tracheotomy.ttl"))); - } - @Test - public void test_procedure_example_f003_abscess() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-f003-abscess.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-f003-abscess.ttl"))); - } - @Test - public void test_procedure_example_f002_lung() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-f002-lung.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-f002-lung.ttl"))); - } - @Test - public void test_procedure_example_f001_heart() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-f001-heart.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-f001-heart.ttl"))); - } - @Test - public void test_procedure_example_biopsy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("procedure-example-biopsy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "procedure-example-biopsy.ttl"))); - } - @Test - public void test_practitionerrole_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitionerrole-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitionerrole-example.ttl"))); - } - @Test - public void test_practitioner_examples_general() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-examples-general.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-examples-general.ttl"))); - } - @Test - public void test_practitioner_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example.ttl"))); - } - @Test - public void test_practitioner_example_xcda1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-xcda1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-xcda1.ttl"))); - } - @Test - public void test_practitioner_example_xcda_author() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-xcda-author.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-xcda-author.ttl"))); - } - @Test - public void test_practitioner_example_f204_ce() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f204-ce.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f204-ce.ttl"))); - } - @Test - public void test_practitioner_example_f203_jvg() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f203-jvg.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f203-jvg.ttl"))); - } - @Test - public void test_practitioner_example_f202_lm() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f202-lm.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f202-lm.ttl"))); - } - @Test - public void test_practitioner_example_f201_ab() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f201-ab.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f201-ab.ttl"))); - } - @Test - public void test_practitioner_example_f007_sh() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f007-sh.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f007-sh.ttl"))); - } - @Test - public void test_practitioner_example_f006_rvdb() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f006-rvdb.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f006-rvdb.ttl"))); - } - @Test - public void test_practitioner_example_f005_al() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f005-al.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f005-al.ttl"))); - } - @Test - public void test_practitioner_example_f004_rb() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f004-rb.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f004-rb.ttl"))); - } - @Test - public void test_practitioner_example_f003_mv() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f003-mv.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f003-mv.ttl"))); - } - @Test - public void test_practitioner_example_f002_pv() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f002-pv.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f002-pv.ttl"))); - } - @Test - public void test_practitioner_example_f001_evdb() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("practitioner-example-f001-evdb.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "practitioner-example-f001-evdb.ttl"))); - } - @Test - public void test_person_provider_directory() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("person-provider-directory.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "person-provider-directory.ttl"))); - } - @Test - public void test_person_patient_portal() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("person-patient-portal.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "person-patient-portal.ttl"))); - } - @Test - public void test_person_grahame() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("person-grahame.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "person-grahame.ttl"))); - } - @Test - public void test_person_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("person-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "person-example.ttl"))); - } - @Test - public void test_person_example_f002_ariadne() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("person-example-f002-ariadne.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "person-example-f002-ariadne.ttl"))); - } - @Test - public void test_paymentreconciliation_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("paymentreconciliation-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "paymentreconciliation-example.ttl"))); - } - @Test - public void test_paymentnotice_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("paymentnotice-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "paymentnotice-example.ttl"))); - } - @Test - public void test_patient_glossy_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-glossy-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-glossy-example.ttl"))); - } - @Test - public void test_patient_examples_general() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-examples-general.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-examples-general.ttl"))); - } - @Test - public void test_patient_examples_cypress_template() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-examples-cypress-template.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-examples-cypress-template.ttl"))); - } - @Test - public void test_patient_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example.ttl"))); - } - @Test - public void test_patient_example_xds() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-xds.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-xds.ttl"))); - } - @Test - public void test_patient_example_xcda() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-xcda.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-xcda.ttl"))); - } - @Test - public void test_patient_example_proband() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-proband.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-proband.ttl"))); - } - @Test - public void test_patient_example_ihe_pcd() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-ihe-pcd.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-ihe-pcd.ttl"))); - } - @Test - public void test_patient_example_f201_roel() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-f201-roel.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-f201-roel.ttl"))); - } - @Test - public void test_patient_example_f001_pieter() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-f001-pieter.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-f001-pieter.ttl"))); - } - @Test - public void test_patient_example_dicom() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-dicom.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-dicom.ttl"))); - } - @Test - public void test_patient_example_d() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-d.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-d.ttl"))); - } - @Test - public void test_patient_example_c() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-c.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-c.ttl"))); - } - @Test - public void test_patient_example_b() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-b.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-b.ttl"))); - } - @Test - public void test_patient_example_animal() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-animal.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-animal.ttl"))); - } - @Test - public void test_patient_example_a() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("patient-example-a.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "patient-example-a.ttl"))); - } - @Test - public void test_parameters_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("parameters-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "parameters-example.ttl"))); - } - @Test - public void test_organization_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example.ttl"))); - } - @Test - public void test_organization_example_lab() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-lab.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-lab.ttl"))); - } - @Test - public void test_organization_example_insurer() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-insurer.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-insurer.ttl"))); - } - @Test - public void test_organization_example_good_health_care() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-good-health-care.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-good-health-care.ttl"))); - } - @Test - public void test_organization_example_gastro() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-gastro.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-gastro.ttl"))); - } - @Test - public void test_organization_example_f203_bumc() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-f203-bumc.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-f203-bumc.ttl"))); - } - @Test - public void test_organization_example_f201_aumc() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-f201-aumc.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-f201-aumc.ttl"))); - } - @Test - public void test_organization_example_f003_burgers_ENT() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-f003-burgers-ENT.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-f003-burgers-ENT.ttl"))); - } - @Test - public void test_organization_example_f002_burgers_card() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-f002-burgers-card.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-f002-burgers-card.ttl"))); - } - @Test - public void test_organization_example_f001_burgers() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("organization-example-f001-burgers.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "organization-example-f001-burgers.ttl"))); - } - @Test - public void test_operationoutcome_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationoutcome-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationoutcome-example.ttl"))); - } - @Test - public void test_operationoutcome_example_validationfail() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationoutcome-example-validationfail.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationoutcome-example-validationfail.ttl"))); - } - @Test - public void test_operationoutcome_example_searchfail() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationoutcome-example-searchfail.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationoutcome-example-searchfail.ttl"))); - } - @Test - public void test_operationoutcome_example_exception() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationoutcome-example-exception.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationoutcome-example-exception.ttl"))); - } - @Test - public void test_operationoutcome_example_break_the_glass() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationoutcome-example-break-the-glass.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationoutcome-example-break-the-glass.ttl"))); - } - @Test - public void test_operationoutcome_example_allok() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationoutcome-example-allok.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationoutcome-example-allok.ttl"))); - } - @Test - public void test_operationdefinition_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("operationdefinition-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "operationdefinition-example.ttl"))); - } - @Test - public void test_observation_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example.ttl"))); - } - @Test - public void test_observation_example_unsat() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-unsat.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-unsat.ttl"))); - } - @Test - public void test_observation_example_satO2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-satO2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-satO2.ttl"))); - } - @Test - public void test_observation_example_sample_data() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-sample-data.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-sample-data.ttl"))); - } - @Test - public void test_observation_example_glasgow() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-glasgow.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-glasgow.ttl"))); - } - @Test - public void test_observation_example_glasgow_qa() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-glasgow-qa.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-glasgow-qa.ttl"))); - } - @Test - public void test_observation_example_genetics_5() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-genetics-5.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-genetics-5.ttl"))); - } - @Test - public void test_observation_example_genetics_4() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-genetics-4.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-genetics-4.ttl"))); - } - @Test - public void test_observation_example_genetics_3() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-genetics-3.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-genetics-3.ttl"))); - } - @Test - public void test_observation_example_genetics_2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-genetics-2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-genetics-2.ttl"))); - } - @Test - public void test_observation_example_genetics_1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-genetics-1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-genetics-1.ttl"))); - } - @Test - public void test_observation_example_f206_staphylococcus() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f206-staphylococcus.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f206-staphylococcus.ttl"))); - } - @Test - public void test_observation_example_f205_egfr() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f205-egfr.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f205-egfr.ttl"))); - } - @Test - public void test_observation_example_f204_creatinine() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f204-creatinine.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f204-creatinine.ttl"))); - } - @Test - public void test_observation_example_f203_bicarbonate() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f203-bicarbonate.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f203-bicarbonate.ttl"))); - } - @Test - public void test_observation_example_f202_temperature() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f202-temperature.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f202-temperature.ttl"))); - } - @Test - public void test_observation_example_f005_hemoglobin() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f005-hemoglobin.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f005-hemoglobin.ttl"))); - } - @Test - public void test_observation_example_f004_erythrocyte() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f004-erythrocyte.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f004-erythrocyte.ttl"))); - } - @Test - public void test_observation_example_f003_co2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f003-co2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f003-co2.ttl"))); - } - @Test - public void test_observation_example_f002_excess() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f002-excess.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f002-excess.ttl"))); - } - @Test - public void test_observation_example_f001_glucose() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-f001-glucose.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-f001-glucose.ttl"))); - } - @Test - public void test_observation_example_bloodpressure() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-bloodpressure.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-bloodpressure.ttl"))); - } - @Test - public void test_observation_example_bloodpressure_cancel() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("observation-example-bloodpressure-cancel.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "observation-example-bloodpressure-cancel.ttl"))); - } - @Test - public void test_nutritionorder_example_texture_modified() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-texture-modified.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-texture-modified.ttl"))); - } - @Test - public void test_nutritionorder_example_renaldiet() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-renaldiet.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-renaldiet.ttl"))); - } - @Test - public void test_nutritionorder_example_pureeddiet() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-pureeddiet.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-pureeddiet.ttl"))); - } - @Test - public void test_nutritionorder_example_pureeddiet_simple() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-pureeddiet-simple.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-pureeddiet-simple.ttl"))); - } - @Test - public void test_nutritionorder_example_proteinsupplement() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-proteinsupplement.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-proteinsupplement.ttl"))); - } - @Test - public void test_nutritionorder_example_infantenteral() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-infantenteral.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-infantenteral.ttl"))); - } - @Test - public void test_nutritionorder_example_fiberrestricteddiet() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-fiberrestricteddiet.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-fiberrestricteddiet.ttl"))); - } - @Test - public void test_nutritionorder_example_enteralcontinuous() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-enteralcontinuous.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-enteralcontinuous.ttl"))); - } - @Test - public void test_nutritionorder_example_enteralbolus() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-enteralbolus.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-enteralbolus.ttl"))); - } - @Test - public void test_nutritionorder_example_energysupplement() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-energysupplement.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-energysupplement.ttl"))); - } - @Test - public void test_nutritionorder_example_diabeticsupplement() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-diabeticsupplement.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-diabeticsupplement.ttl"))); - } - @Test - public void test_nutritionorder_example_diabeticdiet() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-diabeticdiet.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-diabeticdiet.ttl"))); - } - @Test - public void test_nutritionorder_example_cardiacdiet() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("nutritionorder-example-cardiacdiet.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "nutritionorder-example-cardiacdiet.ttl"))); - } - @Test - public void test_namingsystem_registry() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("namingsystem-registry.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "namingsystem-registry.ttl"))); - } - @Test - public void test_namingsystem_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("namingsystem-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "namingsystem-example.ttl"))); - } - @Test - public void test_namingsystem_example_id() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("namingsystem-example-id.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "namingsystem-example-id.ttl"))); - } - @Test - public void test_messageheader_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("messageheader-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "messageheader-example.ttl"))); - } - @Test - public void test_message_response_link() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("message-response-link.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "message-response-link.ttl"))); - } - @Test - public void test_message_request_link() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("message-request-link.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "message-request-link.ttl"))); - } - @Test - public void test_medicationstatementexample7() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationstatementexample7.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationstatementexample7.ttl"))); - } - @Test - public void test_medicationstatementexample6() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationstatementexample6.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationstatementexample6.ttl"))); - } - @Test - public void test_medicationstatementexample5() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationstatementexample5.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationstatementexample5.ttl"))); - } - @Test - public void test_medicationstatementexample4() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationstatementexample4.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationstatementexample4.ttl"))); - } - @Test - public void test_medicationstatementexample2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationstatementexample2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationstatementexample2.ttl"))); - } - @Test - public void test_medicationstatementexample1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationstatementexample1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationstatementexample1.ttl"))); - } - @Test - public void test_medicationrequestexample2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationrequestexample2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationrequestexample2.ttl"))); - } - @Test - public void test_medicationrequestexample1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationrequestexample1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationrequestexample1.ttl"))); - } - @Test - public void test_medicationexample15() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationexample15.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationexample15.ttl"))); - } - @Test - public void test_medicationexample1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationexample1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationexample1.ttl"))); - } - @Test - public void test_medicationdispenseexample8() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationdispenseexample8.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationdispenseexample8.ttl"))); - } - @Test - public void test_medicationadministrationexample3() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationadministrationexample3.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationadministrationexample3.ttl"))); - } - @Test - public void test_medication_example_f203_paracetamol() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("medicationexample0312.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "medicationexample0312.ttl"))); - } - @Test - public void test_media_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("media-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "media-example.ttl"))); - } - @Test - public void test_media_example_sound() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("media-example-sound.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "media-example-sound.ttl"))); - } - @Test - public void test_media_example_dicom() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("media-example-dicom.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "media-example-dicom.ttl"))); - } - @Test - public void test_measurereport_cms146_cat3_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("measurereport-cms146-cat3-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "measurereport-cms146-cat3-example.ttl"))); - } - @Test - public void test_measurereport_cms146_cat2_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("measurereport-cms146-cat2-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "measurereport-cms146-cat2-example.ttl"))); - } - @Test - public void test_measurereport_cms146_cat1_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("measurereport-cms146-cat1-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "measurereport-cms146-cat1-example.ttl"))); - } - @Test - public void test_measure_exclusive_breastfeeding() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("measure-exclusive-breastfeeding.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "measure-exclusive-breastfeeding.ttl"))); - } - @Test - public void test_location_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("location-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "location-example.ttl"))); - } - @Test - public void test_location_example_ukpharmacy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("location-example-ukpharmacy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "location-example-ukpharmacy.ttl"))); - } - @Test - public void test_location_example_room() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("location-example-room.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "location-example-room.ttl"))); - } - @Test - public void test_location_example_patients_home() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("location-example-patients-home.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "location-example-patients-home.ttl"))); - } - @Test - public void test_location_example_hl7hq() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("location-example-hl7hq.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "location-example-hl7hq.ttl"))); - } - @Test - public void test_location_example_ambulance() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("location-example-ambulance.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "location-example-ambulance.ttl"))); - } - @Test - public void test_list_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("list-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "list-example.ttl"))); - } - @Test - public void test_list_example_medlist() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("list-example-medlist.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "list-example-medlist.ttl"))); - } - @Test - public void test_list_example_familyhistory_f201_roel() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("list-example-familyhistory-f201-roel.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "list-example-familyhistory-f201-roel.ttl"))); - } - @Test - public void test_list_example_empty() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("list-example-empty.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "list-example-empty.ttl"))); - } - @Test - public void test_list_example_allergies() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("list-example-allergies.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "list-example-allergies.ttl"))); - } - @Test - public void test_linkage_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("linkage-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "linkage-example.ttl"))); - } - @Test - public void test_library_exclusive_breastfeeding_cqm_logic() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("library-exclusive-breastfeeding-cqm-logic.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "library-exclusive-breastfeeding-cqm-logic.ttl"))); - } - @Test - public void test_library_exclusive_breastfeeding_cds_logic() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("library-exclusive-breastfeeding-cds-logic.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "library-exclusive-breastfeeding-cds-logic.ttl"))); - } - @Test - public void test_library_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("library-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "library-example.ttl"))); - } - @Test - public void test_library_cms146_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("library-cms146-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "library-cms146-example.ttl"))); - } - @Test - public void test_implementationguide_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("implementationguide-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "implementationguide-example.ttl"))); - } - @Test - public void test_immunizationrecommendation_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("immunizationrecommendation-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "immunizationrecommendation-example.ttl"))); - } - @Test - public void test_immunization_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("immunization-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "immunization-example.ttl"))); - } - @Test - public void test_immunization_example_refused() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("immunization-example-refused.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "immunization-example-refused.ttl"))); - } - @Test - public void test_imagingstudy_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("imagingstudy-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "imagingstudy-example.ttl"))); - } - @Test - public void test_healthcareservice_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("healthcareservice-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "healthcareservice-example.ttl"))); - } - @Test - public void test_guidanceresponse_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("guidanceresponse-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "guidanceresponse-example.ttl"))); - } - @Test - public void test_group_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("group-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "group-example.ttl"))); - } - @Test - public void test_group_example_member() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("group-example-member.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "group-example-member.ttl"))); - } - @Test - public void test_goal_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("goal-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "goal-example.ttl"))); - } - @Test - public void test_flag_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("flag-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "flag-example.ttl"))); - } - @Test - public void test_flag_example_encounter() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("flag-example-encounter.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "flag-example-encounter.ttl"))); - } - @Test - public void test_familymemberhistory_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("familymemberhistory-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "familymemberhistory-example.ttl"))); - } - @Test - public void test_familymemberhistory_example_mother() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("familymemberhistory-example-mother.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "familymemberhistory-example-mother.ttl"))); - } - @Test - public void test_explanationofbenefit_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("explanationofbenefit-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "explanationofbenefit-example.ttl"))); - } - @Test - public void test_episodeofcare_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("episodeofcare-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "episodeofcare-example.ttl"))); - } - @Test - public void test_enrollmentresponse_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("enrollmentresponse-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "enrollmentresponse-example.ttl"))); - } - @Test - public void test_enrollmentrequest_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("enrollmentrequest-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "enrollmentrequest-example.ttl"))); - } - @Test - public void test_endpoint_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("endpoint-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "endpoint-example.ttl"))); - } - @Test - public void test_encounter_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example.ttl"))); - } - @Test - public void test_encounter_example_xcda() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-xcda.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-xcda.ttl"))); - } - @Test - public void test_encounter_example_home() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-home.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-home.ttl"))); - } - @Test - public void test_encounter_example_f203_20130311() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-f203-20130311.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-f203-20130311.ttl"))); - } - @Test - public void test_encounter_example_f202_20130128() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-f202-20130128.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-f202-20130128.ttl"))); - } - @Test - public void test_encounter_example_f201_20130404() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-f201-20130404.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-f201-20130404.ttl"))); - } - @Test - public void test_encounter_example_f003_abscess() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-f003-abscess.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-f003-abscess.ttl"))); - } - @Test - public void test_encounter_example_f002_lung() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-f002-lung.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-f002-lung.ttl"))); - } - @Test - public void test_encounter_example_f001_heart() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("encounter-example-f001-heart.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "encounter-example-f001-heart.ttl"))); - } - @Test - public void test_eligibilityresponse_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("eligibilityresponse-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "eligibilityresponse-example.ttl"))); - } - @Test - public void test_eligibilityrequest_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("eligibilityrequest-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "eligibilityrequest-example.ttl"))); - } - @Test - public void test_documentreference_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("documentreference-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "documentreference-example.ttl"))); - } - @Test - public void test_documentmanifest_fm_attachment() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("documentmanifest-fm-attachment.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "documentmanifest-fm-attachment.ttl"))); - } - @Test - public void test_document_example_dischargesummary() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("document-example-dischargesummary.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "document-example-dischargesummary.ttl"))); - } - @Test - public void test_diagnosticreport_micro1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-micro1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-micro1.ttl"))); - } - @Test - public void test_diagnosticreport_hla_genetics_results_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-hla-genetics-results-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-hla-genetics-results-example.ttl"))); - } - - @Test - public void test_diagnosticreport_genetics_comprehensive_bone_marrow_report() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-genetics-comprehensive-bone-marrow-report.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-genetics-comprehensive-bone-marrow-report.ttl"))); - } - @Test - public void test_diagnosticreport_examples_general() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-examples-general.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-examples-general.ttl"))); - } - @Test - public void test_diagnosticreport_example_ultrasound() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-ultrasound.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-ultrasound.ttl"))); - } - @Test - public void test_diagnosticreport_example_lipids() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-lipids.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-lipids.ttl"))); - } - @Test - public void test_diagnosticreport_example_ghp() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-ghp.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-ghp.ttl"))); - } - @Test - public void test_diagnosticreport_example_f202_bloodculture() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-f202-bloodculture.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-f202-bloodculture.ttl"))); - } - @Test - public void test_diagnosticreport_example_f201_brainct() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-f201-brainct.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-f201-brainct.ttl"))); - } - @Test - public void test_diagnosticreport_example_f001_bloodexam() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-f001-bloodexam.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-f001-bloodexam.ttl"))); - } - @Test - public void test_diagnosticreport_example_dxa() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("diagnosticreport-example-dxa.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "diagnosticreport-example-dxa.ttl"))); - } - @Test - public void test_deviceusestatement_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("deviceusestatement-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "deviceusestatement-example.ttl"))); - } - @Test - public void test_devicemetric_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("devicemetric-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "devicemetric-example.ttl"))); - } - @Test - public void test_devicecomponent_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("devicecomponent-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "devicecomponent-example.ttl"))); - } - @Test - public void test_devicecomponent_example_prodspec() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("devicecomponent-example-prodspec.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "devicecomponent-example-prodspec.ttl"))); - } - @Test - public void test_device_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("device-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "device-example.ttl"))); - } - @Test - public void test_device_example_udi1() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("device-example-udi1.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "device-example-udi1.ttl"))); - } - @Test - public void test_device_example_software() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("device-example-software.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "device-example-software.ttl"))); - } - @Test - public void test_device_example_pacemaker() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("device-example-pacemaker.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "device-example-pacemaker.ttl"))); - } - @Test - public void test_device_example_ihe_pcd() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("device-example-ihe-pcd.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "device-example-ihe-pcd.ttl"))); - } - @Test - public void test_device_example_f001_feedingtube() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("device-example-f001-feedingtube.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "device-example-f001-feedingtube.ttl"))); - } - @Test - public void test_detectedissue_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("detectedissue-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "detectedissue-example.ttl"))); - } - @Test - public void test_detectedissue_example_lab() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("detectedissue-example-lab.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "detectedissue-example-lab.ttl"))); - } - @Test - public void test_detectedissue_example_dup() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("detectedissue-example-dup.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "detectedissue-example-dup.ttl"))); - } - @Test - public void test_detectedissue_example_allergy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("detectedissue-example-allergy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "detectedissue-example-allergy.ttl"))); - } - @Test - public void test_coverage_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("coverage-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "coverage-example.ttl"))); - } - @Test - public void test_coverage_example_2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("coverage-example-2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "coverage-example-2.ttl"))); - } - @Test - public void test_contract_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("contract-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "contract-example.ttl"))); - } - @Test - public void test_condition_example2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example2.ttl"))); - } - @Test - public void test_condition_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example.ttl"))); - } - @Test - public void test_condition_example_stroke() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-stroke.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-stroke.ttl"))); - } - @Test - public void test_condition_example_f205_infection() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f205-infection.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f205-infection.ttl"))); - } - @Test - public void test_condition_example_f204_renal() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f204-renal.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f204-renal.ttl"))); - } - @Test - public void test_condition_example_f203_sepsis() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f203-sepsis.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f203-sepsis.ttl"))); - } - @Test - public void test_condition_example_f202_malignancy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f202-malignancy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f202-malignancy.ttl"))); - } - @Test - public void test_condition_example_f201_fever() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f201-fever.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f201-fever.ttl"))); - } - @Test - public void test_condition_example_f003_abscess() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f003-abscess.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f003-abscess.ttl"))); - } - @Test - public void test_condition_example_f002_lung() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f002-lung.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f002-lung.ttl"))); - } - @Test - public void test_condition_example_f001_heart() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("condition-example-f001-heart.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "condition-example-f001-heart.ttl"))); - } - @Test - public void test_conceptmap_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("conceptmap-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "conceptmap-example.ttl"))); - } - @Test - public void test_conceptmap_example_specimen_type() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("conceptmap-example-specimen-type.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "conceptmap-example-specimen-type.ttl"))); - } - @Test - public void test_conceptmap_103() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("conceptmap-103.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "conceptmap-103.ttl"))); - } - @Test - public void test_composition_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("composition-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "composition-example.ttl"))); - } - @Test - public void test_communicationrequest_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("communicationrequest-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "communicationrequest-example.ttl"))); - } - @Test - public void test_communication_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("communication-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "communication-example.ttl"))); - } - @Test - public void test_codesystem_nhin_purposeofuse() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("codesystem-nhin-purposeofuse.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "codesystem-nhin-purposeofuse.ttl"))); - } - @Test - public void test_codesystem_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("codesystem-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "codesystem-example.ttl"))); - } - @Test - public void test_clinicalimpression_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("clinicalimpression-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "clinicalimpression-example.ttl"))); - } - @Test - public void test_claimresponse_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claimresponse-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claimresponse-example.ttl"))); - } - @Test - public void test_claim_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example.ttl"))); - } - @Test - public void test_claim_example_vision() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-vision.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-vision.ttl"))); - } - @Test - public void test_claim_example_vision_glasses() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-vision-glasses.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-vision-glasses.ttl"))); - } - @Test - public void test_claim_example_professional() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-professional.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-professional.ttl"))); - } - @Test - public void test_claim_example_pharmacy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-pharmacy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-pharmacy.ttl"))); - } - @Test - public void test_claim_example_oral_orthoplan() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-oral-orthoplan.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-oral-orthoplan.ttl"))); - } - @Test - public void test_claim_example_oral_identifier() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-oral-identifier.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-oral-identifier.ttl"))); - } - @Test - public void test_claim_example_oral_contained() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-oral-contained.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-oral-contained.ttl"))); - } - @Test - public void test_claim_example_oral_contained_identifier() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-oral-contained-identifier.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-oral-contained-identifier.ttl"))); - } - @Test - public void test_claim_example_oral_average() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-oral-average.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-oral-average.ttl"))); - } - @Test - public void test_claim_example_institutional() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("claim-example-institutional.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "claim-example-institutional.ttl"))); - } - @Test - public void test_careteam_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careteam-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careteam-example.ttl"))); - } - @Test - public void test_careplan_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example.ttl"))); - } - @Test - public void test_careplan_example_pregnancy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-pregnancy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-pregnancy.ttl"))); - } - @Test - public void test_careplan_example_integrated() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-integrated.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-integrated.ttl"))); - } - @Test - public void test_careplan_example_GPVisit() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-GPVisit.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-GPVisit.ttl"))); - } - @Test - public void test_careplan_example_f203_sepsis() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-f203-sepsis.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-f203-sepsis.ttl"))); - } - @Test - public void test_careplan_example_f202_malignancy() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-f202-malignancy.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-f202-malignancy.ttl"))); - } - @Test - public void test_careplan_example_f201_renal() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-f201-renal.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-f201-renal.ttl"))); - } - @Test - public void test_careplan_example_f003_pharynx() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-f003-pharynx.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-f003-pharynx.ttl"))); - } - @Test - public void test_careplan_example_f002_lung() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-f002-lung.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-f002-lung.ttl"))); - } - @Test - public void test_careplan_example_f001_heart() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("careplan-example-f001-heart.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "careplan-example-f001-heart.ttl"))); - } - @Test - public void test_bundle_transaction() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("bundle-transaction.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "bundle-transaction.ttl"))); - } - @Test - public void test_bundle_response() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("bundle-response.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "bundle-response.ttl"))); - } @Test public void test_bundle_example() throws FileNotFoundException, IOException, Exception { if (!TestingUtilities.silent) System.out.println("bundle-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "bundle-example.ttl"))); + new Turtle().parse(TextFile.fileToString(TestingUtilities.resourceNameToFile("bundle-example.ttl"))); } - @Test - public void test_binary_f006() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("binary-f006.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "binary-f006.ttl"))); - } - @Test - public void test_binary_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("binary-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "binary-example.ttl"))); - } - @Test - public void test_basic_example2() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("basic-example2.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "basic-example2.ttl"))); - } - @Test - public void test_basic_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("basic-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "basic-example.ttl"))); - } - @Test - public void test_basic_example_narrative() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("basic-example-narrative.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "basic-example-narrative.ttl"))); - } - @Test - public void test_auditevent_example() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("auditevent-example.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "auditevent-example.ttl"))); - } - @Test - public void test_auditevent_example_disclosure() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("auditevent-example-disclosure.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "auditevent-example-disclosure.ttl"))); - } - @Test - public void test_audit_event_example_vread() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("audit-event-example-vread.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "audit-event-example-vread.ttl"))); - } - @Test - public void test_audit_event_example_search() throws FileNotFoundException, IOException, Exception { - if (!TestingUtilities.silent) - System.out.println("audit-event-example-search.ttl"); - new Turtle().parse(TextFile.fileToString(Utilities.path(TestingUtilities.content(), "audit-event-example-search.ttl"))); - } - } diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceTest.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/ResourceTest.java similarity index 80% rename from org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceTest.java rename to org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/ResourceTest.java index 8534a01da..3adc4e32b 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ResourceTest.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/ResourceTest.java @@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -package org.hl7.fhir.r4.test; +package org.hl7.fhir.r4.test.misc; import java.io.File; import java.io.FileInputStream; @@ -44,7 +44,7 @@ import org.hl7.fhir.r4.formats.IParser.OutputStyle; import org.hl7.fhir.r4.formats.JsonParser; import org.hl7.fhir.r4.formats.XmlParser; import org.hl7.fhir.r4.model.Resource; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; public class ResourceTest { @@ -87,11 +87,9 @@ public class ResourceTest { } public Element testEM() throws Exception { - if (TestingUtilities.context == null) - TestingUtilities.context = SimpleWorkerContext.fromPack("C:\\work\\org.hl7.fhir\\build\\publish\\definitions.xml.zip"); - Element resource = Manager.parse(TestingUtilities.context, new FileInputStream(source), isJson() ? FhirFormat.JSON : FhirFormat.XML); - Manager.compose(TestingUtilities.context, resource, new FileOutputStream(source.getAbsoluteFile()+".out.json"), FhirFormat.JSON, OutputStyle.PRETTY, null); - Manager.compose(TestingUtilities.context, resource, new FileOutputStream(source.getAbsoluteFile()+".out.json"), FhirFormat.XML, OutputStyle.PRETTY, null); + Element resource = Manager.parse(TestingUtilities.context(), new FileInputStream(source), isJson() ? FhirFormat.JSON : FhirFormat.XML); + Manager.compose(TestingUtilities.context(), resource, new FileOutputStream(source.getAbsoluteFile()+".out.json"), FhirFormat.JSON, OutputStyle.PRETTY, null); + Manager.compose(TestingUtilities.context(), resource, new FileOutputStream(source.getAbsoluteFile()+".out.json"), FhirFormat.XML, OutputStyle.PRETTY, null); return resource; } diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SingleTest.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/SingleTest.java similarity index 91% rename from org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SingleTest.java rename to org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/SingleTest.java index cc2179cd0..272a64e50 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/SingleTest.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/SingleTest.java @@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -package org.hl7.fhir.r4.test; +package org.hl7.fhir.r4.test.misc; import java.io.File; @@ -39,7 +39,7 @@ public class SingleTest { public static void main(String[] args) { try { ResourceTest r = new ResourceTest(); - r.setSource(new File("C:\\work\\org.hl7.fhir\\build\\publish\\patient-example.xml")); + r.setSource(new File("src\\test\\resources\\patient-example.xml")); r.test(); System.out.println("Completed OK"); } catch (Exception e) { diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/StructureMapTests.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/StructureMapTests.java similarity index 80% rename from org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/StructureMapTests.java rename to org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/StructureMapTests.java index 825b682b3..899858a46 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/StructureMapTests.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/StructureMapTests.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r4.test; +package org.hl7.fhir.r4.test.misc; import java.io.File; import java.io.FileNotFoundException; @@ -12,7 +12,7 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.r4.context.SimpleWorkerContext; import org.hl7.fhir.r4.model.StructureMap; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.StructureMapUtilities; import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; @@ -30,19 +30,19 @@ public class StructureMapTests { public static Iterable data() throws ParserConfigurationException, IOException, FHIRFormatError { List files = new ArrayList<>(); - File dir = new File(Utilities.path(TestingUtilities.home(), "implementations", "r3maps", "R3toR4")); - for (File f : dir.listFiles()) - if (f.getName().endsWith(".map")) - files.add(f.getAbsolutePath()); - dir = new File(Utilities.path(TestingUtilities.home(), "implementations", "r3maps", "R4toR3")); - for (File f : dir.listFiles()) - if (f.getName().endsWith(".map")) - files.add(f.getAbsolutePath()); +// File dir = new File(Utilities.path(TestingUtilities.home(), "implementations", "r3maps", "R3toR4")); +// for (File f : dir.listFiles()) +// if (f.getName().endsWith(".map")) +// files.add(f.getAbsolutePath()); +// dir = new File(Utilities.path(TestingUtilities.home(), "implementations", "r3maps", "R4toR3")); +// for (File f : dir.listFiles()) +// if (f.getName().endsWith(".map")) +// files.add(f.getAbsolutePath()); List objects = new ArrayList(files.size()); - - for (String fn : files) { - objects.add(new Object[] { new File(fn).getName(), fn }); - } +// +// for (String fn : files) { +// objects.add(new Object[] { new File(fn).getName(), fn }); +// } return objects; } private String filename; @@ -54,19 +54,19 @@ public class StructureMapTests { @SuppressWarnings("deprecation") @Test public void test() throws FHIRException, FileNotFoundException, IOException { - if (TestingUtilities.context == null) { - TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); - } - - String source = TextFile.fileToString(filename); - StructureMapUtilities utils = new StructureMapUtilities(TestingUtilities.context); - StructureMap map = utils.parse(source, filename); - String output = utils.render(map); - - source = source.replace("\t", " ").replace(" ", " ").replace(" \r\n", "\r\n").replace("\r\n\r\n", "\r\n"); - output = output.replace("\t", " ").replace(" ", " ").replace(" \r\n", "\r\n").replace("\r\n\r\n", "\r\n"); - String s = TestingUtilities.checkTextIsSame(source, output); - Assert.assertTrue(s, s == null); +// if (TestingUtilities.context == null) { +// TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.content(), "definitions.xml.zip")); +// } +// +// String source = TextFile.fileToString(filename); +// StructureMapUtilities utils = new StructureMapUtilities(TestingUtilities.context); +// StructureMap map = utils.parse(source, filename); +// String output = utils.render(map); +// +// source = source.replace("\t", " ").replace(" ", " ").replace(" \r\n", "\r\n").replace("\r\n\r\n", "\r\n"); +// output = output.replace("\t", " ").replace(" ", " ").replace(" \r\n", "\r\n").replace("\r\n\r\n", "\r\n"); +// String s = TestingUtilities.checkTextIsSame(source, output); +// Assert.assertTrue(s, s == null); } // private void testParse(String path) throws FileNotFoundException, IOException, FHIRException { diff --git a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ToolsHelper.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/ToolsHelper.java similarity index 97% rename from org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ToolsHelper.java rename to org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/ToolsHelper.java index c275c70c6..77a13ca5b 100644 --- a/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/ToolsHelper.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/misc/ToolsHelper.java @@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -package org.hl7.fhir.r4.test; +package org.hl7.fhir.r4.test.misc; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/test/support/TestingUtilities.java b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/utils/TestingUtilities.java similarity index 92% rename from org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/test/support/TestingUtilities.java rename to org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/utils/TestingUtilities.java index 501be5a50..d18e57f30 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/test/support/TestingUtilities.java +++ b/org.hl7.fhir.r4/src/test/java/org/hl7/fhir/r4/test/utils/TestingUtilities.java @@ -1,4 +1,4 @@ -package org.hl7.fhir.r4.test.support; +package org.hl7.fhir.r4.test.utils; /*- * #%L @@ -33,10 +33,17 @@ import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.apache.commons.codec.binary.Base64; +import org.fhir.ucum.UcumEssenceService; +import org.fhir.ucum.UcumException; +import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.context.IWorkerContext; +import org.hl7.fhir.r4.context.SimpleWorkerContext; +import org.hl7.fhir.r4.model.Parameters; import org.hl7.fhir.utilities.CSFile; import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.cache.PackageCacheManager; +import org.hl7.fhir.utilities.cache.ToolsVersion; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; @@ -52,7 +59,23 @@ import com.google.gson.JsonSyntaxException; public class TestingUtilities { private static final boolean SHOW_DIFF = true; - static public IWorkerContext context; + static public IWorkerContext fcontext; + + public static IWorkerContext context() { + if (fcontext == null) { + PackageCacheManager pcm; + try { + pcm = new PackageCacheManager(true, ToolsVersion.TOOLS_VERSION); + fcontext = SimpleWorkerContext.fromPackage(pcm.loadPackageCache("hl7.fhir.core", "4.0.0")); + fcontext.setUcumService(new UcumEssenceService(TestingUtilities.resourceNameToFile("ucum", "ucum-essence.xml"))); + fcontext.setExpansionProfile(new Parameters()); + } catch (Exception e) { + throw new Error(e); + } + + } + return fcontext; + } static public boolean silent; static public String fixedpath; @@ -416,4 +439,14 @@ public class TestingUtilities { return null; } + + public static String resourceNameToFile(String name) throws IOException { + return Utilities.path(System.getProperty("user.dir"), "src", "test", "resources", name); + } + + + public static String resourceNameToFile(String subFolder, String name) throws IOException { + return Utilities.path(System.getProperty("user.dir"), "src", "test", "resources", subFolder, name); + } + } diff --git a/org.hl7.fhir.r4/src/test/resources/bundle-example.ttl b/org.hl7.fhir.r4/src/test/resources/bundle-example.ttl new file mode 100644 index 000000000..fb792fc90 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/bundle-example.ttl @@ -0,0 +1,77 @@ +@prefix fhir: . +@prefix owl: . +@prefix rdfs: . +@prefix xsd: . + +# - resource ------------------------------------------------------------------- + + a fhir:Bundle; + fhir:nodeRole fhir:treeRoot; + fhir:Resource.id [ fhir:value "bundle-example"]; + fhir:Resource.meta [ + fhir:Meta.lastUpdated [ fhir:value "2014-08-18T01:43:30Z"^^xsd:dateTime ] + ]; + fhir:Bundle.type [ fhir:value "searchset"]; + fhir:Bundle.total [ fhir:value "3"^^xsd:nonNegativeInteger]; + fhir:Bundle.link [ + fhir:index 0; + fhir:Bundle.link.relation [ fhir:value "self" ]; + fhir:Bundle.link.url [ fhir:value "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2" ] + ], [ + fhir:index 1; + fhir:Bundle.link.relation [ fhir:value "next" ]; + fhir:Bundle.link.url [ fhir:value "https://example.com/base/MedicationRequest?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2" ] + ]; + fhir:Bundle.entry [ + fhir:index 0; + fhir:Bundle.entry.fullUrl [ fhir:value "https://example.com/base/MedicationRequest/3123" ]; + fhir:Bundle.entry.resource ; + fhir:Bundle.entry.search [ + fhir:Bundle.entry.search.mode [ fhir:value "match" ]; + fhir:Bundle.entry.search.score [ fhir:value "1"^^xsd:decimal ] + ] + ], [ + fhir:index 1; + fhir:Bundle.entry.fullUrl [ fhir:value "https://example.com/base/Medication/example" ]; + fhir:Bundle.entry.resource ; + fhir:Bundle.entry.search [ + fhir:Bundle.entry.search.mode [ fhir:value "include" ] + ] + ] . + + a fhir:MedicationRequest; + fhir:Resource.id [ fhir:value "3123"]; + fhir:DomainResource.text [ + fhir:Narrative.status [ fhir:value "generated" ]; + fhir:Narrative.div "

Generated Narrative with Details

id: 3123

status: unknown

intent: order

medication: Medication/example

subject: Patient/347

" + ]; + fhir:MedicationRequest.status [ fhir:value "unknown"]; + fhir:MedicationRequest.intent [ fhir:value "order"]; + fhir:MedicationRequest.medicationReference [ + fhir:link ; + fhir:Reference.reference [ fhir:value "Medication/example" ] + ]; + fhir:MedicationRequest.subject [ + fhir:link ; + fhir:Reference.reference [ fhir:value "Patient/347" ] + ] . + + a fhir:Medication . + + a fhir:Patient . + + a fhir:Medication; + fhir:Resource.id [ fhir:value "example"]; + fhir:DomainResource.text [ + fhir:Narrative.status [ fhir:value "generated" ]; + fhir:Narrative.div "

Generated Narrative with Details

id: example

" + ] . + +# - ontology header ------------------------------------------------------------ + + a owl:Ontology; + owl:imports fhir:fhir.ttl; + owl:versionIRI . + +# ------------------------------------------------------------------------------------- + diff --git a/org.hl7.fhir.r4/src/test/resources/condition-example.xml b/org.hl7.fhir.r4/src/test/resources/condition-example.xml new file mode 100644 index 000000000..4df644663 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/condition-example.xml @@ -0,0 +1,60 @@ + + + + +
Severe burn of left ear (Date: 24-May 2012)
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/fhirpath/tests-fhir-r4.xml b/org.hl7.fhir.r4/src/test/resources/fhirpath/tests-fhir-r4.xml new file mode 100644 index 000000000..d6e190431 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/fhirpath/tests-fhir-r4.xml @@ -0,0 +1,973 @@ + + + + + + birthDate + 1974-12-25 + + + birthDate + true + + + telecom.use + home + work + mobile + old + + + + + + + + name.given + Peter + James + Jim + Peter + James + + + + + name.suffix + + + + + name."given" + Peter + James + Jim + Peter + James + + + + + name.given1 + + + + + Patient.name.given + Peter + James + Jim + Peter + James + + + + + Encounter.name.given + + + + + + + Observation.value.unit + + + + + + Observation.valueQuantity.unit + + + + + Observation.value.is(Quantity) + true + + + + Observation.value is Quantity + true + + + + + Observation.value.is(Period).not() + true + + + + + Observation.value.as(Quantity).unit + lbs + + + + (Observation.value as Quantity).unit + lbs + + + + + (Observation.value as Period).unit + + + + + Observation.value.as(Period).start + + + + + + + Patient.name.given.where(substring($this.length()-3) = 'out') + + + + + Patient.name.given.where(substring($this.length()-3) = 'ter') + Peter + Peter + + + + + Patient.name.skip(1).given + Jim + Peter + James + + + + + Patient.name.skip(3).given + + + + + Patient.children().skip(1) + + + + + + + Patient.name.exists() = true + true + + + + + Patient.name.empty() = false + true + + + + + Patient.name.given.first() = 'Peter' + true + + + 1.convertsToInteger()true + 0.convertsToInteger()true + -1.convertsToInteger()true + -1.convertsToInteger()true + 2147483647.convertsToInteger()true + + 'test'.convertsToString()true + '\\\/\f\r\n\t\"\"\'\u002a'.convertsToString()true + + true.convertsToBoolean()true + false.convertsToBoolean()true + + 1.0.convertsToDecimal()true + 0.1.convertsToDecimal()true + 0.0.convertsToDecimal()true + -0.1.convertsToDecimal()true + 1234567890987654321.0.convertsToDecimal()true + 0.000000000000000000000000000001.convertsToDecimal()true + + @2015-02-04.convertsToDateTime()true + @2015-02-04T14:34:28.convertsToDateTime()true + @2015-02-04T14:34:28.123.convertsToDateTime()true + @2015-02-04T14:34:28Z.convertsToDateTime()true + @2015-02-04T14:34:28+10:00.convertsToDateTime()true + + @T14:34:28.convertsToTime()true + @T14:34:28.123.convertsToTime()true + @T14:34:28Z.convertsToTime()true + @T14:34:28+10:00.convertsToTime()true + + 10.1 'mg'.convertsToQuantity()true + 10 'mg'.convertsToQuantity()true + 4 days.convertsToQuantity()true + + -3 != 3true + Patient.name.given.count() = 5true + Patient.name.given.count() > -3true + Patient.name.given.count() != 0true + 1 < 2true + 1 < -2false + +1 < +2true + -1 < 2true + + Observation.value.value > 180.0true + Observation.value.value > 0.0true + Observation.value.value > 0true + Observation.value.value < 190true + Observation.value.value < 'test' + + Patient.birthDate = @1974-12-25true + Patient.birthDate != @1974-12-25T12:34:00true + Patient.birthDate != @1974-12-25T12:34:00-10:00true + Patient.birthDate != @1974-12-25T12:34:00+10:00true + Patient.birthDate != @1974-12-25T12:34:00Ztrue + Patient.birthDate != @T12:14:15true + Patient.birthDate != @T12:14true + Patient.birthDate < today()true + now() > Patient.birthDatetrue + + @2017-11-05T01:30:00.0-04:00 > @2017-11-05T01:15:00.0-05:00false + @2017-11-05T01:30:00.0-04:00 < @2017-11-05T01:15:00.0-05:00true + @2017-11-05T01:30:00.0-04:00 = @2017-11-05T01:15:00.0-05:00false + @2017-11-05T01:30:00.0-04:00 = @2017-11-05T00:30:00.0-05:00false + + Patient.name.given.first() = 'P\u0065ter'true + + Patient.name.given != {}true + + Patient.name.select(given | family).distinct() + + + + + + + Patient.name.given.count() = 1 + 4true + + Patient.name.empty().not()true + Patient.link.empty()true + + true.not() = falsetrue + false.not() = truetrue + (0).not() = falsetrue + (1).not() = falsetrue + (1|2).not() = falsetrue + + + + 1.convertsToInteger()true + 1.is(Integer)true + + '1'.convertsToInteger()true + 'a'.convertsToInteger().not()true + '1.0'.convertsToInteger().not()true + '1'.is(Integer).not()true + true.convertsToInteger()true + true.is(Integer).not()true + @2013-04-05.is(Integer).not()true + + 1.toInteger() = 1true + '1'.toInteger() = 1true + '1.1'.toInteger() = {}true + true.toInteger() = 1true + + 1.convertsToDecimal()true + 1.is(Decimal).not()true + 1.0.convertsToDecimal()true + 1.0.is(Decimal)true + '1'.convertsToDecimal()true + '1'.is(Decimal).not()true + '1.a'.convertsToDecimal().not()true + '1.0'.convertsToDecimal()true + '1.0'.is(Decimal).not()true + true.convertsToDecimal()true + true.is(Decimal).not()true + + 1.toDecimal() != 1.0true + 1.toDecimal() ~ 1.0true + 1.0.toDecimal() = 1.0true + '1.1'.toDecimal() = 1.1true + true.toDecimal() = 1true + + 1.convertsToQuantity()true + 1.is(Quantity).not()true + 1.0.convertsToQuantity()true + + '1'.convertsToQuantity()true + + '1 day'.convertsToQuantity()true + '1 \'wk\''.convertsToQuantity()true + '1 wk'.convertsToQuantity().not()true + '1.a'.convertsToQuantity().not()true + '1.0'.convertsToQuantity()true + + true.convertsToQuantity()false + + + 1.toQuantity() = 1 '1'true + 1.0.toQuantity() = 1.0 '1'true + '1'.toQuantity()1 '1' + '1 day'.toQuantity() = 1 daytrue + '1 day'.toQuantity() = 1 'd'true + '1 \'wk\''.toQuantity() = 1 weektrue + '1.0'.toQuantity() ~ 1 '1'true + + 1.convertsToBoolean()true + 2.convertsToBoolean()true + -1.convertsToBoolean().not()true + 0.convertsToBoolean()true + 1.0.convertsToBoolean().not()true + 'true'.convertsToBoolean()true + 'false'.convertsToBoolean()true + 'False'.convertsToBoolean().not()true + true.convertsToBoolean()true + false.convertsToBoolean()true + + 1.toBoolean()true + 2.toBoolean()true + 0.toBoolean()false + 'true'.toBoolean()true + 'false'.toBoolean()false + + 1.convertsToString()true + 1.is(String).not()true + -1.convertsToString()true + 1.0.convertsToString()true + 'true'.convertsToString()true + true.convertsToString()true + 1 'wk'.convertsToString()true + + 1.toString()1 + -1.toString()-1 + 1.0.toString()1.0 + 'true'.toString()true + true.toString()true + 1 'wk'.toString()1 week + + + + Patient.name.select(given.exists()).all()true + Patient.name.select(family.exists()).all()false + + + + Patient.name.first().subsetOf($this.name)true + Patient.name.subsetOf($this.name.first()).not()true + + + + Patient.name.first().supersetOf($this.name).not()true + Patient.name.supersetOf($this.name.first())true + + + + 4.0000 'g' = 4000.0 'mg'true + 4 'g' ~ 4000 'mg'true + 4 'g' != 4040 'mg'true + 4 'g' ~ 4040 'mg'true + 7 days = 1 weektrue + 7 days = 1 'wk'true + 6 days < 1 weektrue + 8 days > 1 weektrue + 2.0 'cm' * 2.0 'm' = 0.040 'm2'true + + + + + iif(1 | 2 | 3, true, false)true + iif({}, true, false)false + iif(true, true, false)true + iif({} | true, true, false)true + + + + + (1 | 2 | 3).isDistinct()true + Questionnaire.descendants().linkId.isDistinct()true + Questionnaire.descendants().linkId.select(substring(0,1)).isDistinct().not()true + + + (1 | 2 | 3).distinct() + 1 + 2 + 3 + + + + Questionnaire.descendants().linkId.distinct() + + + + + + + + + + + + + + Questionnaire.descendants().linkId.select(substring(0,1)).distinct() + + + + + + + Patient.name.count()3 + Patient.name.count() = 3true + Patient.name.first().count()1 + Patient.name.first().count() = 1true + + + + Patient.name.count() = 3true + Patient.name.where(given = 'Jim').count() = 1true + Patient.name.where(given = 'X').count() = 0true + Patient.name.where($this.given = 'Jim').count() = 1true + + + + Patient.name.select(given).count() = 5true + Patient.name.select(given | family).count() = 7 true + + + + ValueSet.expansion.repeat(contains).count() = 10true + Questionnaire.repeat(item).code.count() = 11true + Questionnaire.descendants().code.count() = 23true + Questionnaire.children().code.count() = 2true + + + + (1|2|3|4|5|6|7|8|9).aggregate($this+$total, 0) = 45true + (1|2|3|4|5|6|7|8|9).aggregate($this+$total, 2) = 47true + (1|2|3|4|5|6|7|8|9).aggregate(iif($total.empty(), $this, iif($this < $total, $this, $total))) = 1true + (1|2|3|4|5|6|7|8|9).aggregate(iif($total.empty(), $this, iif($this > $total, $this, $total))) = 9true + + + + Patient.name[0].given = 'Peter' | 'James'true + Patient.name[1].given = 'Jim'true + + + + Patient.name.first().single().exists()true + Patient.name.single().exists() + + + + Patient.name.first().given = 'Peter' | 'James'true + Patient.name.last().given = 'Peter' | 'James'true + + + + (0 | 1 | 2).tail() = 1 | 2true + Patient.name.tail().given = 'Jim' | 'Peter' | 'James'true + + + + (0 | 1 | 2).skip(1) = 1 | 2true + (0 | 1 | 2).skip(2) = 2true + Patient.name.skip(1).given.trace('test') = 'Jim' | 'Peter' | 'James'true + Patient.name.skip(3).given.exists() = falsetrue + + + + (0 | 1 | 2).take(1) = 0true + (0 | 1 | 2).take(2) = 0 | 1true + Patient.name.take(1).given = 'Peter' | 'James'true + Patient.name.take(2).given = 'Peter' | 'James' | 'Jim'true + Patient.name.take(3).given.count() = 5true + Patient.name.take(4).given.count() = 5true + Patient.name.take(0).given.exists() = falsetrue + + + + iif(Patient.name.exists(), 'named', 'unnamed') = 'named'true + iif(Patient.name.empty(), 'unnamed', 'named') = 'named'true + + + + '1'.toInteger() = 1true + '-1'.toInteger() = -1true + '0'.toInteger() = 0true + '0.0'.toInteger().empty()true + 'st'.toInteger().empty()true + + + + '1'.toDecimal() = 1true + '-1'.toInteger() = -1true + '0'.toDecimal() = 0true + '0.0'.toDecimal() = 0.0true + 'st'.toDecimal().empty()true + + + + 1.toString() = '1'true + '-1'.toInteger() = -1true + 0.toString() = '0'true + 0.0.toString() = '0.0'true + @2014-12-14.toString() = '2014-12-14'true + + + + 't'.upper() = 'T'true + 't'.lower() = 't'true + 'T'.upper() = 'T'true + 'T'.lower() = 't'true + + + + 't2'.toChars() = 't' | '2'true + + + + '12345'.substring(2) = '345'true + '12345'.substring(2,1) = '3'true + '12345'.substring(2,5) = '345'true + '12345'.substring(25).empty()true + '12345'.substring(-1).empty()true + + + + '12345'.startsWith('2') = falsetrue + '12345'.startsWith('1') = truetrue + '12345'.startsWith('12') = truetrue + '12345'.startsWith('13') = falsetrue + '12345'.startsWith('12345') = truetrue + '12345'.startsWith('123456') = falsetrue + '12345'.startsWith('') = falsetrue + + + + '12345'.endsWith('2') = falsetrue + '12345'.endsWith('5') = truetrue + '12345'.endsWith('45') = truetrue + '12345'.endsWith('35') = falsetrue + '12345'.endsWith('12345') = truetrue + '12345'.endsWith('012345') = falsetrue + '12345'.endsWith('') = falsetrue + + + + '12345'.contains('6') = falsetrue + '12345'.contains('5') = truetrue + '12345'.contains('45') = truetrue + '12345'.contains('35') = falsetrue + '12345'.contains('12345') = truetrue + '12345'.contains('012345') = falsetrue + '12345'.contains('') = falsetrue + + + + '123456'.length() = 6true + '12345'.length() = 5true + '123'.length() = 3true + '1'.length() = 1true + ''.length() = 0true + + + + name.given.trace('test').count() = 5true + name.trace('test', given).count() = 3true + + + + Patient.birthDate < today()true + today().toString().length() = 10true + + + + Patient.birthDate < now()true + now().toString().length() > 10true + + + + 1 = 1true + {} = {}true + 1 = 2false + 'a' = 'a'true + 'a' = 'A'false + 'a' = 'b'false + 1.1 = 1.1true + 1.1 = 1.2false + 1.10 = 1.1false + 0 = 0true + 0.0 = 0false + @2012-04-15 = @2012-04-15true + @2012-04-15 = @2012-04-16false + @2012-04-15 = @2012-04-15T10:00:00false + name = nametrue + name.take(2) = name.take(2).first() | name.take(2).last()true + name.take(2) = name.take(2).last() | name.take(2).first()false + + + + 1 != 1false + {} != {}false + 1 != 2true + 'a' != 'a'false + 'a' != 'b'true + 1.1 != 1.1false + 1.1 != 1.2true + 1.10 != 1.1true + 0 != 0false + 0.0 != 0true + @2012-04-15 != @2012-04-15false + @2012-04-15 != @2012-04-16true + @2012-04-15 != @2012-04-15T10:00:00true + name != namefalse + name.take(2) != name.take(2).first() | name.take(2).last()false + name.take(2) != name.take(2).last() | name.take(2).first()true + + + + 1 ~ 1true + {} ~ {}true + 1 ~ 2false + 'a' ~ 'a'true + 'a' ~ 'A'true + 'a' ~ 'b'false + 1.1 ~ 1.1true + 1.1 ~ 1.2false + 1.10 ~ 1.1true + 0 ~ 0true + 0.0 ~ 0true + @2012-04-15 ~ @2012-04-15true + @2012-04-15 ~ @2012-04-16false + @2012-04-15 ~ @2012-04-15T10:00:00true + + name.take(2).given ~ name.take(2).first().given | name.take(2).last().giventrue + name.take(2).given ~ name.take(2).last().given | name.take(2).first().giventrue + + + + 1 !~ 1false + {} !~ {}false + 1 !~ 2true + 'a' !~ 'a'false + 'a' !~ 'A'false + 'a' !~ 'b'true + 1.1 !~ 1.1false + 1.1 !~ 1.2true + 1.10 !~ 1.1false + 0 !~ 0false + 0.0 !~ 0false + @2012-04-15 !~ @2012-04-15false + @2012-04-15 !~ @2012-04-16true + @2012-04-15 !~ @2012-04-15T10:00:00false + + name.take(2).given !~ name.take(2).first().given | name.take(2).last().givenfalse + name.take(2).given !~ name.take(2).last().given | name.take(2).first().givenfalse + + + + 1 < 2true + 1.0 < 1.2true + 'a' < 'b'true + 'A' < 'a'true + @2014-12-12 < @2014-12-13true + @2014-12-13T12:00:00 < @2014-12-13T12:00:01true + @T12:00:00 < @T14:00:00true + + 1 < 1false + 1.0 < 1.0false + 'a' < 'a'false + 'A' < 'A'false + @2014-12-12 < @2014-12-12false + @2014-12-13T12:00:00 < @2014-12-13T12:00:00false + @T12:00:00 < @T12:00:00false + + 2 < 1false + 1.1 < 1.0false + 'b' < 'a'false + 'B' < 'A'false + @2014-12-13 < @2014-12-12false + @2014-12-13T12:00:01 < @2014-12-13T12:00:00false + @T12:00:01 < @T12:00:00false + + + + 1 <= 2true + 1.0 <= 1.2true + 'a' <= 'b'true + 'A' <= 'a'true + @2014-12-12 <= @2014-12-13true + @2014-12-13T12:00:00 <= @2014-12-13T12:00:01true + @T12:00:00 <= @T14:00:00true + + 1 <= 1true + 1.0 <= 1.0true + 'a' <= 'a'true + 'A' <= 'A'true + @2014-12-12 <= @2014-12-12true + @2014-12-13T12:00:00 <= @2014-12-13T12:00:00true + @T12:00:00 <= @T12:00:00true + + 2 <= 1false + 1.1 <= 1.0false + 'b' <= 'a'false + 'B' <= 'A'false + @2014-12-13 <= @2014-12-12false + @2014-12-13T12:00:01 <= @2014-12-13T12:00:00false + @T12:00:01 <= @T12:00:00false + + + + 1 >= 2false + 1.0 >= 1.2false + 'a' >= 'b'false + 'A' >= 'a'false + @2014-12-12 >= @2014-12-13false + @2014-12-13T12:00:00 >= @2014-12-13T12:00:01false + @T12:00:00 >= @T14:00:00false + + 1 >= 1true + 1.0 >= 1.0true + 'a' >= 'a'true + 'A' >= 'A'true + @2014-12-12 >= @2014-12-12true + @2014-12-13T12:00:00 >= @2014-12-13T12:00:00true + @T12:00:00 >= @T12:00:00true + + 2 >= 1true + 1.1 >= 1.0true + 'b' >= 'a'true + 'B' >= 'A'true + @2014-12-13 >= @2014-12-12true + @2014-12-13T12:00:01 >= @2014-12-13T12:00:00true + @T12:00:01 >= @T12:00:00true + + + + 1 > 2false + 1.0 > 1.2false + 'a' > 'b'false + 'A' > 'a'false + @2014-12-12 > @2014-12-13false + @2014-12-13T12:00:00 > @2014-12-13T12:00:01false + @T12:00:00 > @T14:00:00false + + 1 > 1false + 1.0 > 1.0false + 'a' > 'a'false + 'A' > 'A'false + @2014-12-12 > @2014-12-12false + @2014-12-13T12:00:00 > @2014-12-13T12:00:00false + @T12:00:00 > @T12:00:00false + + 2 > 1true + 1.1 > 1.0true + 'b' > 'a'true + 'B' > 'A'true + @2014-12-13 > @2014-12-12true + @2014-12-13T12:00:01 > @2014-12-13T12:00:00true + @T12:00:01 > @T12:00:00true + + + + (1 | 2 | 3).count() = 3true + (1 | 2 | 2).count() = 2true + (1|1).count() = 1true + 1.union(2).union(3).count() = 3true + 1.union(2.union(3)).count() = 3true + (1 | 2).combine(2).count() = 3true + 1.combine(1).count() = 2true + 1.combine(1).union(2).count() = 2true + + + + (1 | 2 | 3).intersect(2 | 4) = 2true + (1 | 2).intersect(4) = {}true + (1 | 2).intersect({}) = {}true + 1.combine(1).intersect(1).count() = 1true + + + + (1 | 2 | 3).exclude(2 | 4) = 1 | 3true + (1 | 2).exclude(4) = 1 | 2true + (1 | 2).exclude({}) = 1 | 2true + 1.combine(1).exclude(2).count() = 1true + + + + 1 in (1 | 2 | 3)true + 1 in (2 | 3)false + 'a' in ('a' | 'c' | 'd')true + 'b' in ('a' | 'c' | 'd')false + + + + (1 | 2 | 3) contains 1true + (2 | 3) contains 1 false + ('a' | 'c' | 'd') contains 'a'true + ('a' | 'c' | 'd') contains 'b'false + + + + (true and true) = truetrue + (true and false) = falsetrue + (true and {}) = {}true + + (false and true) = falsetrue + (false and false) = falsetrue + (false and {}) = falsetrue + + ({} and true) = {}true + ({} and false) = falsetrue + ({} and {}) = {}true + + + + (true or true) = truetrue + (true or false) = truetrue + (true or {}) = truetrue + + (false or true) = truetrue + (false or false) = falsetrue + (false or {}) = {}true + + ({} or true) = truetrue + ({} or false) = {}true + ({} or {}) = {}true + + + + (true xor true) = falsetrue + (true xor false) = truetrue + (true xor {}) = {}true + + (false xor true) = truetrue + (false xor false) = falsetrue + (false xor {}) = {}true + + ({} xor true) = {}true + ({} xor false) = {}true + ({} xor {}) = {}true + + + + (true implies true) = truetrue + (true implies false) = falsetrue + (true implies {}) = {}true + + (false implies true) = truetrue + (false implies false) = truetrue + (false implies {}) = truetrue + + ({} implies true) = truetrue + ({} implies false) = truetrue + ({} implies {}) = truetrue + + + + 1 + 1 = 2true + 1 + 0 = 1true + 1.2 + 1.8 = 3.0true + 'a'+'b' = 'ab'true + + + + 1 & 1 = '11'true + 1 & 'a' = '1a'true + {} & 'b' = 'b'true + (1 | 2 | 3) & 'b' = '1,2,3b'true + 'a'&'b' = 'ab'true + + + + 1 - 1 = 0true + 1 - 0 = 1true + 1.8 - 1.2 = 0.6true + 'a'-'b' = 'ab' + + + + 1 * 1 = 1true + 1 * 0 = 0true + 1.2 * 1.8 = 2.16true + + + + 1 / 1 = 1true + 4 / 2 = 2true + 4.0 / 2.0 = 2.0true + 1 / 2 = 0.5true + 1.2 / 1.8 = 0.67true + + + + 1 div 1 = 1true + 4 div 2 = 2true + + 5 div 2 = 2true + 2.2 div 1.8 = 1true + + + + 1 mod 1 = 0true + 4 mod 2 = 0true + 5 mod 2 = 1true + 2.2 mod 1.8 = 0.4true + + + + 1+2*3+4 = 11true + 1 > 2 is Booleantrue + 1 | 1 is Integertrue + + + + %sct = 'http://snomed.info/sct'true + %loinc = 'http://loinc.org'true + %ucum = 'http://unitsofmeasure.org'true + %"vs-administrative-gender" = 'http://hl7.org/fhir/ValueSet/administrative-gender'true + + + + Patient.birthDate.extension('http://hl7.org/fhir/StructureDefinition/patient-birthTime').exists()true + Patient.birthDate.extension(%"ext-patient-birthTime").exists()true + Patient.birthDate.extension('http://hl7.org/fhir/StructureDefinition/patient-birthTime1').empty()true + + + + 1.type().namespace = 'System'true + 1.type().name = 'Integer'true + true.type().namespace = 'System'true + true.type().name = 'Boolean'true + true.is(Boolean)true + true.is(System.Boolean)true + Patient.active.type().namespace = 'FHIR'true + Patient.active.type().name = 'boolean'true + Patient.active.is(boolean)true + Patient.active.is(Boolean).not()true + Patient.active.is(FHIR.boolean)true + Patient.active.is(System.Boolean).not()true + Patient.type().namespace = 'FHIR'true + Patient.type().name = 'Patient'true + Patient.is(Patient)true + Patient.is(FHIR.Patient)true + + + + conformsTo('http://hl7.org/fhir/StructureDefinition/Patient')true + conformsTo('http://hl7.org/fhir/StructureDefinition/Person')false + conformsTo('http://trash') + + + + + diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/directive-include.gql b/org.hl7.fhir.r4/src/test/resources/graphql/directive-include.gql new file mode 100644 index 000000000..ab7dd5ed2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/directive-include.gql @@ -0,0 +1,5 @@ +{ + identifier @include(if: true) { system value } + active + name { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/directive-include.json b/org.hl7.fhir.r4/src/test/resources/graphql/directive-include.json new file mode 100644 index 000000000..bb86b35c2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/directive-include.json @@ -0,0 +1,16 @@ +{ + "identifier": [{ + "system": "urn:oid:1.2.36.146.595.217.0.1", + "value": "12345" + }], + "active": true, + "name": [{ + "given": ["Peter","James"], + "family": "Chalmers" + },{ + "given": ["Jim"] + },{ + "given": ["Peter","James"], + "family": "Windsor" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/directive-skip.gql b/org.hl7.fhir.r4/src/test/resources/graphql/directive-skip.gql new file mode 100644 index 000000000..561f8f9a8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/directive-skip.gql @@ -0,0 +1,5 @@ +{ + identifier @skip(if: true) { system value } + active + name { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/directive-skip.json b/org.hl7.fhir.r4/src/test/resources/graphql/directive-skip.json new file mode 100644 index 000000000..0edf43836 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/directive-skip.json @@ -0,0 +1,12 @@ +{ + "active": true, + "name": [{ + "given": ["Peter","James"], + "family": "Chalmers" + },{ + "given": ["Jim"] + },{ + "given": ["Peter","James"], + "family": "Windsor" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/directive-variable.gql b/org.hl7.fhir.r4/src/test/resources/graphql/directive-variable.gql new file mode 100644 index 000000000..6cbaf73ca --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/directive-variable.gql @@ -0,0 +1,5 @@ +query test($var : Boolean) { + identifier @include(if: $var) { system value } + active + name { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/directive-variable.json b/org.hl7.fhir.r4/src/test/resources/graphql/directive-variable.json new file mode 100644 index 000000000..bb86b35c2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/directive-variable.json @@ -0,0 +1,16 @@ +{ + "identifier": [{ + "system": "urn:oid:1.2.36.146.595.217.0.1", + "value": "12345" + }], + "active": true, + "name": [{ + "given": ["Peter","James"], + "family": "Chalmers" + },{ + "given": ["Jim"] + },{ + "given": ["Peter","James"], + "family": "Windsor" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-in.gql b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-in.gql new file mode 100644 index 000000000..fff60c4f9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-in.gql @@ -0,0 +1,4 @@ +{ + id + extension(url : "http://example.org/StructureDefinition/trials") { url, valueCode } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-in.json b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-in.json new file mode 100644 index 000000000..6592ea1a5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-in.json @@ -0,0 +1,9 @@ +{ + "id": "glossy", + "extension": [ + { + "url": "http://example.org/StructureDefinition/trials", + "valueCode": "renal" + } + ] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-out.gql b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-out.gql new file mode 100644 index 000000000..2c7cf7aaa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-out.gql @@ -0,0 +1,4 @@ +{ + id + extension(url : "http://example.org/StructureDefinition/trialsX") { url, valueCode } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-out.json b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-out.json new file mode 100644 index 000000000..67ac0242a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex-out.json @@ -0,0 +1,3 @@ +{ + "id": "glossy" +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex.gql b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex.gql new file mode 100644 index 000000000..528dd8d12 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex.gql @@ -0,0 +1,4 @@ +{ + id + extension { url, valueCode } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex.json b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex.json new file mode 100644 index 000000000..6592ea1a5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-complex.json @@ -0,0 +1,9 @@ +{ + "id": "glossy", + "extension": [ + { + "url": "http://example.org/StructureDefinition/trials", + "valueCode": "renal" + } + ] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-simple.gql b/org.hl7.fhir.r4/src/test/resources/graphql/extension-simple.gql new file mode 100644 index 000000000..bb11ecc2b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-simple.gql @@ -0,0 +1,4 @@ +{ + subject { resource { birthDate } } + subject { resource { _birthDate { extension {valueDateTime} } } } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/extension-simple.json b/org.hl7.fhir.r4/src/test/resources/graphql/extension-simple.json new file mode 100644 index 000000000..4e6ce8eef --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/extension-simple.json @@ -0,0 +1,15 @@ +{ + "subject": [{ + "resource": { + "birthDate": "2016-05-18" + } + },{ + "resource": { + "_birthDate": { + "extension":[{ + "valueDateTime": "2016-05-18T10:28:45Z" + }] + } + } + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/filter-fhirpath.gql b/org.hl7.fhir.r4/src/test/resources/graphql/filter-fhirpath.gql new file mode 100644 index 000000000..6e4704840 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/filter-fhirpath.gql @@ -0,0 +1,5 @@ +{ + identifier { system value } + active + name(fhirpath: "family.exists()") { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/filter-fhirpath.json b/org.hl7.fhir.r4/src/test/resources/graphql/filter-fhirpath.json new file mode 100644 index 000000000..0af755404 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/filter-fhirpath.json @@ -0,0 +1,14 @@ +{ + "identifier": [{ + "system": "urn:oid:1.2.36.146.595.217.0.1", + "value": "12345" + }], + "active": true, + "name": [{ + "given": ["Peter","James"], + "family": "Chalmers" + },{ + "given":["Peter","James"], + "family":"Windsor" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-first.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-first.gql new file mode 100644 index 000000000..d78e5f31b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-first.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system value } + active + name @flatten { text given @first family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-first.json b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-first.json new file mode 100644 index 000000000..171412963 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-first.json @@ -0,0 +1,7 @@ +{ + "system":["urn:oid:1.2.36.146.595.217.0.1"], + "value":["12345"], + "active":true, + "given":["Peter","Jim","Peter"], + "family":["Chalmers","Windsor"] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton1.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton1.gql new file mode 100644 index 000000000..146361fb9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton1.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system @singleton value @singleton } + active + name @flatten { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton1.json b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton1.json new file mode 100644 index 000000000..6dce832f6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton1.json @@ -0,0 +1,7 @@ +{ + "system":"urn:oid:1.2.36.146.595.217.0.1", + "value":"12345", + "active":true, + "given":["Peter","James","Jim","Peter","James"], + "family":["Chalmers","Windsor"] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton2.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton2.gql new file mode 100644 index 000000000..a2ff18e2f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton2.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system @singleton value @singleton } + active + name @flatten { text given family @singleton } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton3.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton3.gql new file mode 100644 index 000000000..906dab23a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton3.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system @singleton value @singleton } + active + name @flatten @first { text given family @singleton } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton3.json b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton3.json new file mode 100644 index 000000000..a834cd46f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-singleton3.json @@ -0,0 +1,7 @@ +{ + "system":"urn:oid:1.2.36.146.595.217.0.1", + "value":"12345", + "active":true, + "given":["Peter","James"], + "family":"Chalmers" +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice1.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice1.gql new file mode 100644 index 000000000..11d0a531c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice1.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system value } + active + name @flatten @slice(path: "use") { given family @singleton } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice1.json b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice1.json new file mode 100644 index 000000000..39f30be31 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice1.json @@ -0,0 +1,10 @@ +{ + "system":["urn:oid:1.2.36.146.595.217.0.1"], + "value":["12345"], + "active":true, + "given.official":["Peter","James"], + "family.official":"Chalmers", + "given.usual":["Jim"], + "given.maiden":["Peter","James"], + "family.maiden":"Windsor" +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice2.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice2.gql new file mode 100644 index 000000000..57192c4db --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice2.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system value } + active + name @flatten @slice(path: "$index") { given family @singleton } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice2.json b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice2.json new file mode 100644 index 000000000..d9c00ce26 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten-slice2.json @@ -0,0 +1,10 @@ +{ + "system":["urn:oid:1.2.36.146.595.217.0.1"], + "value":["12345"], + "active":true, + "given.0":["Peter","James"], + "family.0":"Chalmers", + "given.1":["Jim"], + "given.2":["Peter","James"], + "family.2":"Windsor" +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten.gql b/org.hl7.fhir.r4/src/test/resources/graphql/flatten.gql new file mode 100644 index 000000000..0e54f9619 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten.gql @@ -0,0 +1,5 @@ +{ + identifier @flatten { system value } + active + name @flatten { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/flatten.json b/org.hl7.fhir.r4/src/test/resources/graphql/flatten.json new file mode 100644 index 000000000..1ce37d082 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/flatten.json @@ -0,0 +1,7 @@ +{ + "system":["urn:oid:1.2.36.146.595.217.0.1"], + "value":["12345"], + "active":true, + "given":["Peter","James","Jim","Peter","James"], + "family":["Chalmers","Windsor"] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/list-sub.gql b/org.hl7.fhir.r4/src/test/resources/graphql/list-sub.gql new file mode 100644 index 000000000..c1f5fd199 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/list-sub.gql @@ -0,0 +1,3 @@ + { + entry(_count: 5, _offset: 5) { deleted item { reference } } + } \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/list-sub.json b/org.hl7.fhir.r4/src/test/resources/graphql/list-sub.json new file mode 100644 index 000000000..060932957 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/list-sub.json @@ -0,0 +1,29 @@ +{ + "entry": [ + { + "item": { + "reference": "Patient/1" + } + }, + { + "item": { + "reference": "Patient/2" + } + }, + { + "item": { + "reference": "Patient/3" + } + }, + { + "item": { + "reference": "Patient/4" + } + }, + { + "item": { + "reference": "Patient/5" + } + } + ] +} diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/manifest.xml b/org.hl7.fhir.r4/src/test/resources/graphql/manifest.xml new file mode 100644 index 000000000..da798a53b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/manifest.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/parser-tests.gql b/org.hl7.fhir.r4/src/test/resources/graphql/parser-tests.gql new file mode 100644 index 000000000..22b4fc5ca --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/parser-tests.gql @@ -0,0 +1,329 @@ +#### SelectionSet + + +{ + id + firstName + lastName +} + + + +#### Short + + +{ + field +} + + + +#### Simple + + +{ + user(id: 4) { + name + } +} + + +#### User + + +# `user` represents one of many users in a graph of data, referred to by a +# unique identifier. +{ + user(id: 4) { + name + } +} + + + +#### Variable + + +query getZuckProfile($devicePicSize: Int) { + user(id: 4) { + id + name + profilePic(size: $devicePicSize) + } +} + + + +#### Alias1 + + +{ + user(id: 4) { + id + name + smallPic: profilePic(size: 64) + bigPic: profilePic(size: 1024) + } +} + + +#### Alias2 + + +{ + zuck: user(id: 4) { + id + name + } +} + + +#### Arguments1 + + +{ + user(id: 4) { + id + name + profilePic(size: 100) + } +} + + +#### Arguments2 + + +{ + user(id: 4) { + id + name + profilePic(width: 100, height: 50) + } +} + + +#### Arguments3 + + +{ + picture(width: 200, height: 100) +} + + +#### Arguments4 + + +{ + picture(height: 100, width: 200) +} + + +#### Comment + + +{ + # this + user(id: 4) { + name + } +} + + +#### Fragments0 + + +query noFragments { + user(id: 4) { + friends(first: 10) { + id + name + profilePic(size: 50) + } + mutualFriends(first: 10) { + id + name + profilePic(size: 50) + } + } +} + + +#### Fragments1 + + +query withFragments { + user(id: 4) { + friends(first: 10) { + ...friendFields + } + mutualFriends(first: 10) { + ...friendFields + } + } +} + +fragment friendFields on User { + id + name + profilePic(size: 50) +} + + +#### Fragments2 + + +query withNestedFragments { + user(id: 4) { + friends(first: 10) { + ...friendFields + } + mutualFriends(first: 10) { + ...friendFields + } + } +} + +fragment friendFields on User { + id + name + ...standardProfilePic +} + +fragment standardProfilePic on User { + profilePic(size: 50) +} + + + +#### Fragments3 + + +query FragmentTyping { + profiles(handles: ["zuck", "cocacola"]) { + handle + ...userFragment + ...pageFragment + } +} + +fragment userFragment on User { + friends { + count + } +} + +fragment pageFragment on Page { + likers { + count + } +} + + +#### Fragments4 + + +query inlineFragmentTyping { + profiles(handles: ["zuck", "cocacola"]) { + handle + ... on User { + friends { + count + } + } + ... on Page { + likers { + count + } + } + } +} + + +#### Fragments5 + + +query inlineFragmentNoType($expandedInfo: Boolean) { + user(handle: "zuck") { + id + name + ... @include(if: $expandedInfo) { + firstName + lastName + birthday + } + } +} + + +#### Me + + +# `me` could represent the currently logged in viewer. +{ + me { + name + } +} + + + +#### Mutation + + +mutation { + likeStory(storyID: 12345) { + story { + likeCount + } + } +} + + + +#### Nested + + +{ + me { + id + firstName + lastName + birthday { + month + day + } + friends { + name + } + } +} + + + +#### Object1 + + +{ + nearestThing(location: { lon: 12.43, lat: -53.211 }) +} + + + +#### Object2 + + +{ + nearestThing(location: { lat: -53.211, lon: 12.43 }) +} + + +#### EmptyParamList + + +{ + user() { + name + } +} + + diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/polymorphic.gql b/org.hl7.fhir.r4/src/test/resources/graphql/polymorphic.gql new file mode 100644 index 000000000..4a0f9906f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/polymorphic.gql @@ -0,0 +1,5 @@ +{ + subject{reference} + valueQuantity {value unit} +} + diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/polymorphic.json b/org.hl7.fhir.r4/src/test/resources/graphql/polymorphic.json new file mode 100644 index 000000000..f6894c28b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/polymorphic.json @@ -0,0 +1,9 @@ +{ + "subject" : { + "reference" : "Patient/example" + }, + "valueQuantity": { + "value": 185, + "unit": "lbs" + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-broken.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference-broken.gql new file mode 100644 index 000000000..cabd4423f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-broken.gql @@ -0,0 +1,6 @@ +{ + # this is broken because the reference on the given example doesn't + # follow the normal naming pattern that the resource resolver + # knows how to resolve + authorizingPrescription { reference, resource {id} } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-fragment-type.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference-fragment-type.gql new file mode 100644 index 000000000..7ed83df71 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-fragment-type.gql @@ -0,0 +1,5 @@ +{ + id + subject { reference, resource { ...on Patient {active} } } + code {coding {system code} } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-fragment-type.json b/org.hl7.fhir.r4/src/test/resources/graphql/reference-fragment-type.json new file mode 100644 index 000000000..bc27bffea --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-fragment-type.json @@ -0,0 +1,24 @@ +{ + "id" : "example", + "subject" : { + "reference" : "Patient/example", + "resource" : { + "active": true + } + }, + "code": { + "coding": [{ + "system": "http://loinc.org", + "code": "29463-7" + },{ + "system": "http://loinc.org", + "code": "3141-9" + },{ + "system": "http://snomed.info/sct", + "code": "27113001" + },{ + "system": "http://acme.org/devices/clinical-codes", + "code": "body-weight" + }] + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-optional.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference-optional.gql new file mode 100644 index 000000000..e913e59a8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-optional.gql @@ -0,0 +1,6 @@ +{ + # this is broken because the reference on the given example doesn't + # follow the normal naming pattern that the resource resolver + # knows how to resolve + authorizingPrescription { reference, resource(optional : true) {id} } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-optional.json b/org.hl7.fhir.r4/src/test/resources/graphql/reference-optional.json new file mode 100644 index 000000000..2f7b117c7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-optional.json @@ -0,0 +1,5 @@ +{ + "authorizingPrescription" : [{ + "reference" : "MedicationRequest/medrx0330" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-reverse.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference-reverse.gql new file mode 100644 index 000000000..80427c0cb --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-reverse.gql @@ -0,0 +1,6 @@ +{ + id + ConditionList(_reference: patient) { + id + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-reverse.json b/org.hl7.fhir.r4/src/test/resources/graphql/reference-reverse.json new file mode 100644 index 000000000..1effcfb97 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-reverse.json @@ -0,0 +1,6 @@ +{ + "id" : "example", + "ConditionList":[{ + "id":"example" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-in.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-in.gql new file mode 100644 index 000000000..5d16f4f2c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-in.gql @@ -0,0 +1,5 @@ +{ + id + subject { reference, resource(type : Patient) {active} } + code {coding {system code} } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-in.json b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-in.json new file mode 100644 index 000000000..bc27bffea --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-in.json @@ -0,0 +1,24 @@ +{ + "id" : "example", + "subject" : { + "reference" : "Patient/example", + "resource" : { + "active": true + } + }, + "code": { + "coding": [{ + "system": "http://loinc.org", + "code": "29463-7" + },{ + "system": "http://loinc.org", + "code": "3141-9" + },{ + "system": "http://snomed.info/sct", + "code": "27113001" + },{ + "system": "http://acme.org/devices/clinical-codes", + "code": "body-weight" + }] + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-out.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-out.gql new file mode 100644 index 000000000..83e233039 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-out.gql @@ -0,0 +1,5 @@ +{ + id + subject { reference, resource(type : Group) {active} } + code {coding {system code} } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-out.json b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-out.json new file mode 100644 index 000000000..aa3cd9a67 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference-type-out.json @@ -0,0 +1,21 @@ +{ + "id" : "example", + "subject" : { + "reference" : "Patient/example" + }, + "code": { + "coding": [{ + "system": "http://loinc.org", + "code": "29463-7" + },{ + "system": "http://loinc.org", + "code": "3141-9" + },{ + "system": "http://snomed.info/sct", + "code": "27113001" + },{ + "system": "http://acme.org/devices/clinical-codes", + "code": "body-weight" + }] + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference.gql b/org.hl7.fhir.r4/src/test/resources/graphql/reference.gql new file mode 100644 index 000000000..078b07ece --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference.gql @@ -0,0 +1,5 @@ +{ + id + subject { reference, resource {active} } + code {coding {system code} } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/reference.json b/org.hl7.fhir.r4/src/test/resources/graphql/reference.json new file mode 100644 index 000000000..bc27bffea --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/reference.json @@ -0,0 +1,24 @@ +{ + "id" : "example", + "subject" : { + "reference" : "Patient/example", + "resource" : { + "active": true + } + }, + "code": { + "coding": [{ + "system": "http://loinc.org", + "code": "29463-7" + },{ + "system": "http://loinc.org", + "code": "3141-9" + },{ + "system": "http://snomed.info/sct", + "code": "27113001" + },{ + "system": "http://acme.org/devices/clinical-codes", + "code": "body-weight" + }] + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/search-full.gql b/org.hl7.fhir.r4/src/test/resources/graphql/search-full.gql new file mode 100644 index 000000000..f8f37e41b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/search-full.gql @@ -0,0 +1,9 @@ +{ + PatientConnection (active : true) { + count offset pagesize + edges { + mode, score, resource { id, active } + } + first previous next last + } +} diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/search-full.json b/org.hl7.fhir.r4/src/test/resources/graphql/search-full.json new file mode 100644 index 000000000..83aefa32f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/search-full.json @@ -0,0 +1,21 @@ +{ + "PatientConnection":{ + "count":50, + "offset":0, + "pagesize":50, + "edges":[{ + "resource":{ + "id" : "example", + "active" : true + } + },{ + "mode":"match", + "score":0.5, + "resource":{ + "id":"xds", + "active":true + } + }], + "next":"77c97e03-8a6c-415f-a63d-11c80cf73f:50" + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/search-simple.gql b/org.hl7.fhir.r4/src/test/resources/graphql/search-simple.gql new file mode 100644 index 000000000..79864746a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/search-simple.gql @@ -0,0 +1,3 @@ +{ + PatientList(active : true) { id, active } +} diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/search-simple.json b/org.hl7.fhir.r4/src/test/resources/graphql/search-simple.json new file mode 100644 index 000000000..f455c466c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/search-simple.json @@ -0,0 +1,9 @@ +{ + "PatientList":[{ + "id" : "example", + "active" : true + },{ + "id":"xds", + "active":true + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/search-single.gql b/org.hl7.fhir.r4/src/test/resources/graphql/search-single.gql new file mode 100644 index 000000000..9a0cc05ee --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/search-single.gql @@ -0,0 +1,3 @@ +{ + Patient(id: example) { id, active } +} diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/search-single.json b/org.hl7.fhir.r4/src/test/resources/graphql/search-single.json new file mode 100644 index 000000000..427fffae5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/search-single.json @@ -0,0 +1,6 @@ +{ + "Patient" : { + "id" : "example", + "active" : true + } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/simple.gql b/org.hl7.fhir.r4/src/test/resources/graphql/simple.gql new file mode 100644 index 000000000..1f0e1571d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/simple.gql @@ -0,0 +1,5 @@ +{ + identifier { system value } + active + name { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/simple.json b/org.hl7.fhir.r4/src/test/resources/graphql/simple.json new file mode 100644 index 000000000..bb86b35c2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/simple.json @@ -0,0 +1,16 @@ +{ + "identifier": [{ + "system": "urn:oid:1.2.36.146.595.217.0.1", + "value": "12345" + }], + "active": true, + "name": [{ + "given": ["Peter","James"], + "family": "Chalmers" + },{ + "given": ["Jim"] + },{ + "given": ["Peter","James"], + "family": "Windsor" + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/graphql/wrong-field.gql b/org.hl7.fhir.r4/src/test/resources/graphql/wrong-field.gql new file mode 100644 index 000000000..b3968267b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/graphql/wrong-field.gql @@ -0,0 +1,5 @@ +{ + identifier { system value something } + active + name { text given family } +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/liquid/liquid-tests.json b/org.hl7.fhir.r4/src/test/resources/liquid/liquid-tests.json new file mode 100644 index 000000000..b68966113 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/liquid/liquid-tests.json @@ -0,0 +1,49 @@ +{ + "description" : "test case for FHIR Liquid Support", + "spec" : "http://wiki.hl7.org/index.php?title=FHIR_Liquid_Profile", + "fhir-version" : "4.0.0", + "tests" : [{ + "name" : "constant", + "focus" : "Patient/example", + "template" : "test", + "output" : "test" + },{ + "name" : "statement", + "focus" : "Patient/example", + "template" : "{{ Patient.id}}", + "output" : "example" + },{ + "name" : "statement1", + "focus" : "Patient/example", + "template" : "{{ Patient.id }}", + "output" : "example" + },{ + "name" : "statement2", + "focus" : "Patient/example", + "template" : "{{Patient.id}}", + "output" : "example" + },{ + "name" : "mix1", + "focus" : "Patient/example", + "template" : "t{{Patient.id}}t", + "output" : "texamplet" + },{ + "name" : "if", + "focus" : "Patient/example", + "template" : "{% if Patient.id = 'example'%} yes {%else%} no {%endif%}", + "output" : " yes " + },{ + "name" : "loop", + "focus" : "Patient/example", + "template" : "{%loop name in Patient.name%}{{name.family}}{%endloop%}", + "output" : "ChalmersWindsor" + },{ + "name" : "include", + "focus" : "Patient/example", + "template" : "{%loop name in Patient.name%}{%include humanname.html name=name pat='patient' %}{%endloop%}", + "output" : "ChalmersWindsor", + "includes" : { + "humanname.html" : "{{include.name.family}}" + } + }] +} \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/list-example-long.xml b/org.hl7.fhir.r4/src/test/resources/list-example-long.xml new file mode 100644 index 000000000..b16a40dcd --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/list-example-long.xml @@ -0,0 +1,1281 @@ + + +

Generated Narrative with Details

id: long

status: current

mode: changes

date: 21/02/2018 12:17:00 PM

entry

item: Patient/example

entry

item: Patient/pat1

entry

item: Patient/pat2

entry

item: Patient/pat3

entry

item: Patient/pat4

entry

item: Patient/1

entry

item: Patient/2

entry

item: Patient/3

entry

item: Patient/4

entry

item: Patient/5

entry

item: Patient/6

entry

item: Patient/7

entry

item: Patient/8

entry

item: Patient/9

entry

item: Patient/10

entry

item: Patient/11

entry

item: Patient/12

entry

item: Patient/71

entry

item: Patient/72

entry

item: Patient/73

entry

item: Patient/74

entry

item: Patient/75

entry

item: Patient/76

entry

item: Patient/77

entry

item: Patient/78

entry

item: Patient/79

entry

item: Patient/80

entry

item: Patient/81

entry

item: Patient/82

entry

item: Patient/83

entry

item: Patient/84

entry

item: Patient/85

entry

item: Patient/86

entry

item: Patient/87

entry

item: Patient/88

entry

item: Patient/89

entry

item: Patient/90

entry

item: Patient/91

entry

item: Patient/92

entry

item: Patient/93

entry

item: Patient/94

entry

item: Patient/95

entry

item: Patient/96

entry

item: Patient/97

entry

item: Patient/98

entry

item: Patient/99

entry

item: Patient/100

entry

item: Patient/101

entry

item: Patient/102

entry

item: Patient/103

entry

item: Patient/104

entry

item: Patient/105

entry

item: Patient/106

entry

item: Patient/107

entry

item: Patient/108

entry

item: Patient/109

entry

item: Patient/110

entry

item: Patient/111

entry

item: Patient/112

entry

item: Patient/113

entry

item: Patient/114

entry

item: Patient/115

entry

item: Patient/116

entry

item: Patient/117

entry

item: Patient/118

entry

item: Patient/119

entry

item: Patient/120

entry

item: Patient/121

entry

item: Patient/122

entry

item: Patient/123

entry

item: Patient/124

entry

item: Patient/125

entry

item: Patient/126

entry

item: Patient/127

entry

item: Patient/128

entry

item: Patient/129

entry

item: Patient/130

entry

item: Patient/131

entry

item: Patient/132

entry

item: Patient/133

entry

item: Patient/134

entry

item: Patient/135

entry

item: Patient/136

entry

item: Patient/137

entry

item: Patient/138

entry

item: Patient/139

entry

item: Patient/140

entry

item: Patient/141

entry

item: Patient/142

entry

item: Patient/143

entry

item: Patient/144

entry

item: Patient/145

entry

item: Patient/146

entry

item: Patient/147

entry

item: Patient/148

entry

item: Patient/149

entry

item: Patient/150

entry

item: Patient/151

entry

item: Patient/152

entry

item: Patient/153

entry

item: Patient/154

entry

item: Patient/155

entry

item: Patient/156

entry

item: Patient/157

entry

item: Patient/158

entry

item: Patient/159

entry

item: Patient/160

entry

item: Patient/161

entry

item: Patient/162

entry

item: Patient/163

entry

item: Patient/164

entry

item: Patient/165

entry

item: Patient/166

entry

item: Patient/167

entry

item: Patient/168

entry

item: Patient/169

entry

item: Patient/170

entry

item: Patient/171

entry

item: Patient/172

entry

item: Patient/173

entry

item: Patient/174

entry

item: Patient/175

entry

item: Patient/176

entry

item: Patient/177

entry

item: Patient/178

entry

item: Patient/179

entry

item: Patient/180

entry

item: Patient/181

entry

item: Patient/182

entry

item: Patient/183

entry

item: Patient/184

entry

item: Patient/185

entry

item: Patient/186

entry

item: Patient/187

entry

item: Patient/188

entry

item: Patient/189

entry

item: Patient/190

entry

item: Patient/191

entry

item: Patient/192

entry

item: Patient/193

entry

item: Patient/194

entry

item: Patient/195

entry

item: Patient/196

entry

item: Patient/197

entry

item: Patient/198

entry

item: Patient/199

entry

item: Patient/200

entry

item: Patient/201

entry

item: Patient/202

entry

item: Patient/203

entry

item: Patient/204

entry

item: Patient/205

entry

item: Patient/206

entry

item: Patient/207

entry

item: Patient/208

entry

item: Patient/209

entry

item: Patient/210

entry

item: Patient/211

entry

item: Patient/212

entry

item: Patient/213

entry

item: Patient/214

entry

item: Patient/215

entry

item: Patient/216

entry

item: Patient/217

entry

item: Patient/218

entry

item: Patient/219

entry

item: Patient/220

entry

item: Patient/221

entry

item: Patient/222

entry

item: Patient/223

entry

item: Patient/224

entry

item: Patient/225

entry

item: Patient/226

entry

item: Patient/227

entry

item: Patient/228

entry

item: Patient/229

entry

item: Patient/230

entry

item: Patient/231

entry

item: Patient/232

entry

item: Patient/233

entry

item: Patient/234

entry

item: Patient/235

entry

item: Patient/236

entry

item: Patient/237

entry

item: Patient/238

entry

item: Patient/239

entry

item: Patient/240

entry

item: Patient/241

entry

item: Patient/242

entry

item: Patient/243

entry

item: Patient/244

entry

item: Patient/245

entry

item: Patient/246

entry

item: Patient/247

entry

item: Patient/248

entry

item: Patient/249

entry

item: Patient/250

entry

item: Patient/251

entry

item: Patient/252

entry

item: Patient/253

entry

item: Patient/254

entry

item: Patient/255

entry

item: Patient/256

entry

item: Patient/257

entry

item: Patient/258

entry

item: Patient/259

entry

item: Patient/260

entry

item: Patient/261

entry

item: Patient/262

entry

item: Patient/263

entry

item: Patient/264

entry

item: Patient/265

entry

item: Patient/266

entry

item: Patient/267

entry

item: Patient/268

entry

item: Patient/269

entry

item: Patient/270

entry

item: Patient/271

entry

item: Patient/272

entry

item: Patient/273

entry

item: Patient/274

entry

item: Patient/275

entry

item: Patient/276

entry

item: Patient/277

entry

item: Patient/278

entry

item: Patient/279

entry

item: Patient/280

entry

item: Patient/281

entry

item: Patient/282

entry

item: Patient/283

entry

item: Patient/284

entry

item: Patient/285

entry

item: Patient/286

entry

item: Patient/287

entry

item: Patient/288

entry

item: Patient/289

entry

item: Patient/290

entry

item: Patient/291

entry

item: Patient/292

entry

item: Patient/293

entry

item: Patient/294

entry

item: Patient/295

entry

item: Patient/xcda

entry

item: Patient/xds

entry

item: Patient/animal

entry

item: Patient/dicom

entry

item: Patient/ihe-pcd

entry

item: Patient/f001

entry

item: Patient/f201

entry

item: Patient/glossy

entry

item: Patient/proband

entry

item: Patient/genetics-example1

entry

item: Patient/ch-example

entry

item: Patient/newborn

entry

item: Patient/mom

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/medicationdispenseexample8.xml b/org.hl7.fhir.r4/src/test/resources/medicationdispenseexample8.xml new file mode 100644 index 000000000..30a5f89f2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/medicationdispenseexample8.xml @@ -0,0 +1,95 @@ + + +

Generated Narrative with Details

id: meddisp0308

contained:

status: completed

medication: Timoptic 5mg/ml solution. Generated Summary: id: med0305; Timoptic 5mg/ml solution (Details : {http://hl7.org/fhir/sid/ndc code '2501-813-16' = '2501-813-16', given as 'Timoptic 5mg/ml solution'})

subject: Donald Duck

Performers

-Actor
*Practitioner/f006

authorizingPrescription: MedicationRequest/medrx0330

type: Refill - Part Fill (Details : {http://terminology.hl7.org/CodeSystem/v3-ActCode code 'RFP' = 'Refill - Part Fill', given as 'Refill - Part Fill'})

quantity: 10 mL (Details: UCUM code mL = 'mL')

daysSupply: 30 Day (Details: UCUM code d = 'd')

whenPrepared: 25/06/2015 7:13:00 AM

whenHandedOver: 26/06/2015 7:13:00 AM

dosageInstruction:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/observation-example-20minute-apgar-score.xml b/org.hl7.fhir.r4/src/test/resources/observation-example-20minute-apgar-score.xml new file mode 100644 index 000000000..976b2858b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/observation-example-20minute-apgar-score.xml @@ -0,0 +1,169 @@ + +

Generated Narrative with Details

id: 20minute-apgar-score

contained:

status: final

category: Survey (Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'survey' = 'Survey', given as 'Survey'})

code: 20 minute Apgar Score (Details : {SNOMED CT code '443849008' = 'Apgar score at 20 minutes', given as 'Apgar score at 20 minutes'})

subject: id: newborn; 12345; active; Peter James Chalmers ; gender: male; birthDate: 18/05/2016

effective: 18/05/2016 10:33:22 PM

performer: Practitioner/example

value: 10 {score} (Details: UCUM code {score} = '{score}')

component

code: Apgar color score (Details : {SNOMED CT code '249227004' = 'Apgar color score', given as 'Apgar color score'})

value: 2. Good color all over (Details : {LOINC code 'LA6724-4' = 'Good color all over', given as 'Good color all over'}; {http://acme.ped/apgarcolor code '2' = '2)

component

code: Apgar respiratory effort score (Details : {SNOMED CT code '249223000' = 'Apgar heart rate score', given as 'Apgar heart rate score'})

value: 2. At least 100 beats per minute (Details : {LOINC code 'LA6718-6' = 'At least 100 beats per minute', given as 'At least 100 beats per minute'}; {http://acme.ped/apgarheartrate code '2' = '2)

component

code: Apgar response to stimulus score (Details : {SNOMED CT code '249226008' = 'Apgar response to stimulus score', given as 'Apgar response to stimulus score'})

value: 2. Grimace and pulling away, cough, or sneeze during suctioning (Details : {LOINC code 'LA6721-0' = 'Grimace and pulling away, cough, or sneeze during suctioning', given as 'Grimace and pulling away, cough, or sneeze during suctioning'}; {http://acme.ped/apgarreflexirritability code '2' = '2)

component

code: Apgar muscle tone score (Details : {SNOMED CT code '249225007' = 'Apgar muscle tone score', given as 'Apgar muscle tone score'})

value: 2. Active motion (Details : {LOINC code 'LA6715-2' = 'Active motion', given as 'Active motion '}; {http://acme.ped/apgarmuscletone code '2' = '2)

component

code: Apgar respiratory effort score (Details : {SNOMED CT code '249224006' = 'Apgar respiratory effort score', given as 'Apgar respiratory effort score'})

value: 2. Good, strong cry; normal rate and effort of breathing (Details : {LOINC code 'LA6727-7' = 'Good, strong cry; normal rate and effort of breathing', given as 'Good, strong cry; normal rate and effort of breathing '}; {http://acme.ped/apgarrespiratoryeffort code '2' = '2)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/observation-example.xml b/org.hl7.fhir.r4/src/test/resources/observation-example.xml new file mode 100644 index 000000000..c59c820e3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/observation-example.xml @@ -0,0 +1,66 @@ + + + +

Generated Narrative with Details

id: example

status: final

category: Vital Signs (Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})

code: Body Weight (Details : {LOINC code '29463-7' = 'Body weight', given as 'Body Weight'}; {LOINC code '3141-9' = 'Body weight Measured', given as 'Body weight Measured'}; {SNOMED CT code '27113001' = 'Body weight', given as 'Body weight'}; {http://acme.org/devices/clinical-codes code 'body-weight' = 'body-weight', given as 'Body Weight'})

subject: Patient/example

encounter: Encounter/example

effective: 28/03/2016

value: 185 lbs (Details: UCUM code [lb_av] = 'lb_av')

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/patient-example-xds.xml b/org.hl7.fhir.r4/src/test/resources/patient-example-xds.xml new file mode 100644 index 000000000..0677e1244 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/patient-example-xds.xml @@ -0,0 +1,39 @@ + + + + +
+ +

Patient John Doe, M, 27-May 1956. ID: 89765a87b

+ +
+
+ + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/patient-example.xml b/org.hl7.fhir.r4/src/test/resources/patient-example.xml new file mode 100644 index 000000000..1dc2adb2f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/patient-example.xml @@ -0,0 +1,156 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + +
NamePeter James + Chalmers ("Jim") +
Address534 Erewhon, Pleasantville, Vic, 3999
ContactsHome: unknown. Work: (03) 5555 6473
IdMRN: 12345 (Acme Healthcare)
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + +
+ + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/patient-glossy-example.xml b/org.hl7.fhir.r4/src/test/resources/patient-glossy-example.xml new file mode 100644 index 000000000..a01648513 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/patient-glossy-example.xml @@ -0,0 +1,43 @@ + + + + + + + +
+

Henry Levin the 7th

+

MRN: 123456. Male, 24-Sept 1932

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/questionnaire-example-f201-lifelines.xml b/org.hl7.fhir.r4/src/test/resources/questionnaire-example-f201-lifelines.xml new file mode 100644 index 000000000..cd51c35f7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/questionnaire-example-f201-lifelines.xml @@ -0,0 +1,72 @@ + + + + +
+
Lifelines Questionnaire 1 part 1
+  1. Do you have allergies?
+  2. General Questions:
+    2.a) What is your gender?
+    2.b) What is your date of birth?
+    2.c) What is your country of birth?
+    2.d) What is your marital status?
+    3. Intoxications:
+      3.a) Do you smoke?
+      3.b) Do you drink alcohol?
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/questionnaire-example.xml b/org.hl7.fhir.r4/src/test/resources/questionnaire-example.xml new file mode 100644 index 000000000..50842f12a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/questionnaire-example.xml @@ -0,0 +1,131 @@ + + + + +
+
+            1.Comorbidity?
+              1.1 Cardial Comorbidity
+                1.1.1 Angina?
+                1.1.2 MI?
+              1.2 Vascular Comorbidity?
+              ...
+            Histopathology
+              Abdominal
+                pT category?
+              ...
+          
+
+
+ + + <status value="draft"/> + <subjectType value="Patient"/> + <date value="2012-01"/> + <item> + <linkId value="1"/> + <code> + <system value="http://example.org/system/code/sections"/> + <code value="COMORBIDITY"/> + </code> + <type value="group"/> + <item> + <linkId value="1.1"/> + <code> + <system value="http://example.org/system/code/questions"/> + <code value="COMORB"/> + </code> + <prefix value="1"/> + <type value="choice"/> + <answerValueSet value="http://hl7.org/fhir/ValueSet/yesnodontknow"/> + <item> + <linkId value="1.1.1"/> + <code> + <system value="http://example.org/system/code/sections"/> + <code value="CARDIAL"/> + </code> + <type value="group"/> + <enableWhen> + <question value="1.1"/> + <operator value="="/> + <answerCoding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0136"/> + <code value="Y"/> + </answerCoding> + </enableWhen> + <item> + <linkId value="1.1.1.1"/> + <code> + <system value="http://example.org/system/code/questions"/> + <code value="COMORBCAR"/> + </code> + <prefix value="1.1"/> + <type value="choice"/> + <answerValueSet value="http://hl7.org/fhir/ValueSet/yesnodontknow"/> + <item> + <linkId value="1.1.1.1.1"/> + <code> + <system value="http://example.org/system/code/questions"/> + <code value="COMCAR00"/> + <display value="Angina Pectoris"/> + </code> + <code> + <system value="http://snomed.info/sct"/> + <code value="194828000"/> + <display value="Angina (disorder)"/> + </code> + <prefix value="1.1.1"/> + <type value="choice"/> + <answerValueSet value="http://hl7.org/fhir/ValueSet/yesnodontknow"/> + </item> + <item> + <linkId value="1.1.1.1.2"/> + <code> + <system value="http://snomed.info/sct"/> + <code value="22298006"/> + <display value="Myocardial infarction (disorder)"/> + </code> + <prefix value="1.1.2"/> + <type value="choice"/> + <answerValueSet value="http://hl7.org/fhir/ValueSet/yesnodontknow"/> + </item> + </item> + <item> + <linkId value="1.1.1.2"/> + <code> + <system value="http://example.org/system/code/questions"/> + <code value="COMORBVAS"/> + </code> + <prefix value="1.2"/> + <type value="choice"/> + <answerValueSet value="http://hl7.org/fhir/ValueSet/yesnodontknow"/> + </item> + </item> + </item> + </item> + <item> + <linkId value="2"/> + <code> + <system value="http://example.org/system/code/sections"/> + <code value="HISTOPATHOLOGY"/> + </code> + <type value="group"/> + <item> + <linkId value="2.1"/> + <code> + <system value="http://example.org/system/code/sections"/> + <code value="ABDOMINAL"/> + </code> + <type value="group"/> + <item> + <linkId value="2.1.2"/> + <code> + <system value="http://example.org/system/code/questions"/> + <code value="STADPT"/> + <display value="pT category"/> + </code> + <type value="choice"/> + </item> + </item> + </item> +</Questionnaire> \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/questionnaireresponse-example-f201-lifelines.xml b/org.hl7.fhir.r4/src/test/resources/questionnaireresponse-example-f201-lifelines.xml new file mode 100644 index 000000000..f38573cb5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/questionnaireresponse-example-f201-lifelines.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="UTF-8"?><QuestionnaireResponse xmlns="http://hl7.org/fhir"> + <id value="f201"/> + <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f201</p><p><b>status</b>: completed</p><p><b>subject</b>: <a>Roel</a></p><p><b>authored</b>: 18/06/2013 12:00:00 AM</p><p><b>author</b>: <a>Practitioner/f201</a></p><p><b>source</b>: <a>Practitioner/f201</a></p><blockquote><p><b>item</b></p><p><b>linkId</b>: 1</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 2</p><p><b>text</b>: General questions</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr><tr><td>*</td></tr><tr><td>*</td></tr><tr><td>*</td></tr></table></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 3</p><p><b>text</b>: Intoxications</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr><tr><td>*</td></tr></table></blockquote></div></text><status value="completed"/> + <!-- Fictive, only the below answers are non-fictive --> + <subject> + <reference value="Patient/f201"/> + <display value="Roel"/> + </subject> + <authored value="2013-06-18T00:00:00+01:00"/> + <author> + <reference value="Practitioner/f201"/> + </author> + <source> + <reference value="Practitioner/f201"/> + </source> + <item> + <linkId value="1"/> + <item> + <!-- Seperate answer --> +<linkId value="1.1"/> + <text value="Do you have allergies?"/> + <answer> + <valueString value="I am allergic to house dust"/> + </answer> + </item> + </item> + <item> + <!-- Answers to general questions --> + <linkId value="2"/> + <text value="General questions"/> + <item> + <linkId value="2.1"/> + <text value="What is your gender?"/> + <answer> + <valueString value="Male"/> + </answer> + </item> + <item> + <linkId value="2.2"/> + <text value="What is your date of birth?"/> + <answer> + <valueDate value="1960-03-13"/> + </answer> + </item> + <item> + <linkId value="2.3"/> + <text value="What is your country of birth?"/> + <answer> + <valueString value="The Netherlands"/> + </answer> + </item> + <item> + <linkId value="2.4"/> + <text value="What is your marital status?"/> + <answer> + <valueString value="married"/> + </answer> + </item> + </item> + <item> + <!-- Answers to intoxications --> + <linkId value="3"/> + <text value="Intoxications"/> + <item> + <linkId value="3.1"/> + <text value="Do you smoke?"/> + <answer> + <valueString value="No"/> + </answer> + </item> + <item> + <linkId value="3.2"/> + <text value="Do you drink alchohol?"/> + <answer> + <valueString value="No, but I used to drink"/> + </answer> + </item> + </item> +</QuestionnaireResponse> \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/snapshot-generation-tests.xml b/org.hl7.fhir.r4/src/test/resources/snapshot-generation-tests.xml new file mode 100644 index 000000000..ce6974fdf --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/snapshot-generation-tests.xml @@ -0,0 +1,3548 @@ +<TestScript xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../schema/fhir-single.xsd"> + <!-- + in this test script, are a set of test cases for snapshot generation + + 1. No change made by differential + 2. No change in differential, but use a resource with recursion in the definitions + 3. change a cardinality + 4. test appending documentation + 5. test constraining the type (with renaming) + 6. test constraining the type (without renaming) + 7. test adding a mapping + 8. test walking into a new type + 9. test walking into a new type sparsely + 10. Test slicing - simple case + 11. Test slicing - extension + 12. Test slicing - extension, but without setting the slicing up + 12a. Test slicing - extension, but without setting the slicing up (one slice only) + 13. Test slicing - a complex case + 14. Test slicing see task 8742 + 15. Test slicing - complex extensions with children + 16. Test slicing - extending a complex extension's children in derived profile + 17. Modifier Extension + 18. Modifier Extension, but without setting the slicing up + 19. Modifier Extension, but without setting the slicing up (one slice only) + 20. Slicing a backbone element + 21. Slicing a backbone element on it's nested use + 22. Test slicing - Constrain base element before slicing + 23. Test slicing - Unsorted differential + 24. Test slicing - Constrain base element before slicing when slices were already defined - backbone + 25. Test slicing - Constrain base element before slicing when slices were already defined - datatypes + 26. Test differential sorting for polymorphic references + 27. Walking into a type for Contract + 28. Test children of a polymorphic type + 29. Test recursion on elements that are deeper than children of the root and have a different name (Parameters.parameter.part) + 30. Profile and derived profile both slice a backbone element + 31. Propagate extensions from differential to snapshot + 32. Disappearing slicing + 33. Type re-use + 34. Referencing a custom extension + 35. Referencing a profiled custom extension + 36. Deep recursion +--> + <contained> + <StructureDefinition> + <id value="t1"/> + <url value="urn:uuid:c7e52962-c322-4417-bd95-fb0dfc40fd62"/> + <name value="t1"/> + <status value="draft"/> + <description value="fixture for #1: no change in the differential"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t2"/> + <url value="urn:uuid:4b8c9c27-9d93-4f66-84f1-c7ca98687792"/> + <name value="t2"/> + <status value="draft"/> + <description value="fixture for #2: no change in the differential, but a value set"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="ValueSet"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ValueSet"/> + <derivation value="constraint"/> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t3"/> + <url value="urn:uuid:b3f56cfa-98a3-422c-9584-738e09881ac9"/> + <name value="t3"/> + <status value="draft"/> + <description value="fixture for #3: change a cardinality"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier"/> + <min value="1"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t4"/> + <url value="urn:uuid:71e0a5a6-95bf-4e04-aa6a-4af0ebef3f29"/> + <name value="t4"/> + <status value="draft"/> + <description value="fixture for #4: test appending documentation"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier"/> + <definition value="... some more doco"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t5"/> + <url value="urn:uuid:5dfe34b3-58ed-43bd-a677-1612246a8f1b"/> + <name value="t5"/> + <status value="draft"/> + <description value="fixture for #5: type narrowing #1"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.deceased[x]"/> + <type> + <code value="dateTime"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t6"/> + <url value="urn:uuid:977f7fee-448e-4090-8c3a-441b3b3cca7a"/> + <name value="t6"/> + <status value="draft"/> + <description value="fixture for #6: type narrowing #2 - this renames the type element"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.deceasedDateTime"/> + <type> + <code value="dateTime"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t7"/> + <url value="urn:uuid:7a1d096b-bb61-40f7-880a-8cc4ba0329b9"/> + <name value="t7"/> + <status value="draft"/> + <description value="fixture for #7: type mapping resolution"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier"/> + <mapping> + <identity value="rim"/> + <map value="test"/> + </mapping> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t8"/> + <url value="urn:uuid:d2cb3b87-8f73-46fd-821c-cf39f0512757"/> + <name value="t8"/> + <status value="draft"/> + <description value="fixture for #8: walking into a type"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.system"/> + <mustSupport value="true"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t9"/> + <url value="urn:uuid:d03a45b9-fc35-43c8-9f93-890487cf7076"/> + <name value="t9"/> + <status value="draft"/> + <description value="fixture for #9: walking into a type (sparsely)"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier.system"/> + <mustSupport value="true"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t10"/> + <url value="urn:uuid:772b9182-39d3-45fd-b01c-e09df0a5cf6c"/> + <name value="t10"/> + <status value="draft"/> + <description value="fixture for #10: Simple slicing"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.identifier"/> + <sliceName value="name1"/> + </element> + <element> + <path value="Patient.identifier.use"/> + <fixedCode value="usual"/> + </element> + <element> + <path value="Patient.identifier"/> + <sliceName value="name2"/> + </element> + <element> + <path value="Patient.identifier.use"/> + <fixedCode value="official"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t11"/> + <url value="urn:uuid:f119d7d3-81e3-4432-8c68-11baafa5f986"/> + <name value="t11"/> + <status value="draft"/> + <description value="fixture for #11: slicing on extensions"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <max value="3"/> + </element> + <element> + <path value="Patient.extension"/> + <sliceName value="name1"/> + <min value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + <element> + <path value="Patient.extension"/> + <sliceName value="name2"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t12"/> + <url value="urn:uuid:01e790b6-b67b-4173-9b2b-31a0fb8c3180"/> + <name value="t12"/> + <status value="draft"/> + <description value="fixture for #12: slicing on extensions, no set up of slicing"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.extension"/> + <sliceName value="name1"/> + <min value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + <element> + <path value="Patient.extension"/> + <sliceName value="name2"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t12a"/> + <url value="urn:uuid:37c463da-eac0-4b17-b15d-a3e524d9ebdf"/> + <name value="t12a"/> + <status value="draft"/> + <description value="fixture for #12a: slicing on extensions, no set up of slicing, single slice"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.extension"/> + <sliceName value="name1"/> + <min value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t13"/> + <url value="urn:uuid:4f21d695-b60f-4c4f-8412-15d12d18fa5e"/> + <name value="t13"/> + <status value="draft"/> + <description value="fixture for #13: complex slicing"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.extension"/> + <sliceName value="t"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + <element> + <path value="Patient.extension"/> + <sliceName value="complex"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-nationality"/> + </type> + </element> + <element> + <path value="Patient.extension.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.extension.extension"/> + <sliceName value="code"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-nationality#code"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.extension.extension"/> + <sliceName value="period"/> + <max value="0"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-nationality#period"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t14"/> + <url value="urn:uuid:17a816a1-0196-4eb4-86c3-2f6e05944598"/> + <name value="t14"/> + <status value="draft"/> + <description value="fixture for #14: see task 8742"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Organization.address"/> + <min value="1"/> + <max value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Organization.address.extension"/> + <sliceName value="USLabCountycodes"/> + <short value="County/Parish FIPS codes"/> + <definition value="County/Parish FIPS codes"/> + <requirements value="County/Parish Code SHALL use FIPS 6-4 ( INCITS 31:2009)."/> + <min value="1"/> + <max value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/us-core-county"/> + </type> + <mustSupport value="true"/> + <binding> + <strength value="required"/> + <description value="FIPS codes for US counties and county equivalent entities."/> + <valueSet value="http://hl7.org/fhir/ValueSet/fips-county"/> + </binding> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t15"/> + <url value="urn:uuid:78efa570-6e30-410d-ac5a-16ea423d13d4"/> + <name value="t15"/> + <status value="draft"/> + <description value="fixture for #15: complex extensions with children"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.address"/> + </element> + <element> + <path value="Patient.address.extension"/> + <sliceName value="Geolocation"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/geolocation"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension.extension"/> + <sliceName value="latitude"/> + <type> + <code value="Extension"/> + <profile value="latitude"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension.extension.valueDecimal"/> + <mustSupport value="true"/> + </element> + <!-- Commented this out as removing it triggers errors that including it did not (specifically, the URL of the geolocation extension wasn't showing up in snapshot) + <element> + <path value="Patient.address.extension.extension"/> + <sliceName value="longitude"/> + <type> + <code value="Extension"/> + <profile value="longitude"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension.extension.valueDecimal"/> + <mustSupport value="true"/> + </element>--> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t16"/> + <url value="urn:uuid:b94f9d67-5ad1-44df-850d-33a933800f40"/> + <name value="t16"/> + <status value="draft"/> + <description value="fixture for #16: extending a complex extension's children in derived profile"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <!-- Building on #15 --> + <baseDefinition value="urn:uuid:78efa570-6e30-410d-ac5a-16ea423d13d4"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.address.extension"/> + <sliceName value="Geolocation"/> + </element> + <element> + <path value="Patient.address.extension.extension"/> + <sliceName value="latitude"/> + </element> + <element> + <path value="Patient.address.extension.extension.valueDecimal.extension"/> + <sliceName value="Geolocation.latitude.rendered"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/rendered-value"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension.extension.valueDecimal.extension.valueString"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension.extension"/> + <sliceName value="longitude"/> + </element> + <element> + <path value="Patient.address.extension.extension.valueDecimal.extension"/> + <sliceName value="Geolocation.longitude.rendered"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/rendered-value"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension.extension.valueDecimal.extension.valueString"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.address.extension"/> + <sliceName value="ISO-AddressUse"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/iso21090-AD-use"/> + </type> + <mustSupport value="true"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t17"/> + <url value="urn:uuid:1313b735-ddb1-4bd4-aa8e-a3156d2919a8"/> + <name value="t17"/> + <status value="draft"/> + <description value="fixture for #17: use a modifier extension instead"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.modifierExtension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <max value="3"/> + </element> + <!-- actually these aren't valid as modifer extensions, but the snapshot generator doesn't check that --> + <element> + <path value="Patient.modifierExtension"/> + <sliceName value="name1"/> + <min value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + <element> + <path value="Patient.modifierExtension"/> + <sliceName value="name2"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t18"/> + <url value="urn:uuid:14b4442c-ef9f-4630-bb44-681b65f758ac"/> + <name value="t18"/> + <status value="draft"/> + <description value="fixture for #18: use a modifier extension, with no set up"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <!-- these aren't valid as modifer extensions, but the snapshot generator doesn't check that --> + <element> + <path value="Patient.modifierExtension"/> + <sliceName value="name1"/> + <min value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + <element> + <path value="Patient.modifierExtension"/> + <sliceName value="name2"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t19"/> + <url value="urn:uuid:6d245aa4-fa65-44e7-8177-cb15b09854f4"/> + <name value="t19"/> + <status value="draft"/> + <description value="fixture for #19: use a modifier extension, with no set up, and only one slice"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.modifierExtension"/> + <sliceName value="name1"/> + <min value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t20"/> + <url value="urn:uuid:29645106-1e27-4820-996c-d48c1e932329"/> + <name value="t20"/> + <status value="draft"/> + <description value="fixture for #20: Slicing a backbone element"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="PlanDefinition"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/> + <derivation value="constraint"/> + <differential> + <element id="PlanDefinition:ordertemplate"> + <path value="PlanDefinition"/> + </element> + <element id="PlanDefinition:ordertemplate.action"> + <path value="PlanDefinition.action"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="prefix"/> + </discriminator> + <rules value="open"/> + </slicing> + <min value="1"/> + <max value="*"/> + </element> + <element id="PlanDefinition:ordertemplate.action:subtask1"> + <path value="PlanDefinition.action"/> + <sliceName value="subtask1"/> + <min value="0"/> + <max value="1"/> + </element> + <element id="PlanDefinition:ordertemplate.action:subtask1.prefix"> + <path value="PlanDefinition.action.prefix"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="string"/> + </type> + <fixedString value="slice1"/> + </element> + <element id="PlanDefinition:ordertemplate.action:subtask2"> + <path value="PlanDefinition.action"/> + <sliceName value="subtask2"/> + <min value="0"/> + <max value="1"/> + </element> + <element id="PlanDefinition:ordertemplate.action:subtask2.prefix"> + <path value="PlanDefinition.action.prefix"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="string"/> + </type> + <fixedString value="slice2"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t21"/> + <url value="urn:uuid:ea08f7c0-97f2-44bb-8ef5-f36d9e53148c"/> + <name value="t21"/> + <status value="draft"/> + <description value="fixture for #21: Slicing a backbone element on it's nested use"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="PlanDefinition"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/> + <derivation value="constraint"/> + <differential> + <element id="PlanDefinition:ordertemplate"> + <path value="PlanDefinition"/> + </element> + <element id="PlanDefinition:ordertemplate.action.action"> + <path value="PlanDefinition.action.action"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="prefix"/> + </discriminator> + <rules value="open"/> + </slicing> + <min value="1"/> + <max value="*"/> + </element> + <element id="PlanDefinition:ordertemplate.action.action:subtask1"> + <path value="PlanDefinition.action.action"/> + <sliceName value="subtask1"/> + <min value="0"/> + <max value="1"/> + </element> + <element id="PlanDefinition:ordertemplate.action.action:subtask1.prefix"> + <path value="PlanDefinition.action.action.prefix"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="string"/> + </type> + <fixedString value="slice1"/> + </element> + <element id="PlanDefinition:ordertemplate.action.action:subtask2"> + <path value="PlanDefinition.action.action"/> + <sliceName value="subtask2"/> + <min value="0"/> + <max value="1"/> + </element> + <element id="PlanDefinition:ordertemplate.action.action:subtask2.prefix"> + <path value="PlanDefinition.action.action.prefix"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="string"/> + </type> + <fixedString value="slice2"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t22"/> + <url value="urn:uuid:a690d8bf-7b93-4785-b5d7-74bc3452a24b"/> + <name value="t22"/> + <status value="draft"/> + <description value="fixture for #22: Constrain base element before slicing"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="type.coding.code"/> + </discriminator> + <rules value="open"/> + </slicing> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.extension"/> + <sliceName value="validDate"/> + <max value="1"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/identifier-validDate"/> + </type> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.type"/> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.type.coding"/> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.type.coding.system"/> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.type.coding.code"/> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.system"/> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier.value"/> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Patient.identifier"/> + <sliceName value="MRN"/> + <min value="1"/> + <max value="1"/> + </element> + <element> + <path value="Patient.identifier.extension"/> + <sliceName value="validDate"/> + <min value="1"/> + </element> + <element> + <path value="Patient.identifier.type"/> + </element> + <element> + <path value="Patient.identifier.type.coding"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="system"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.identifier.type.coding"/> + <sliceName value="preferredCoding"/> + </element> + <element> + <path value="Patient.identifier.type.coding.system"/> + <fixedUri value="http://hl7.org/fhir/v2/0203"/> + </element> + <element> + <path value="Patient.identifier.type.coding.code"/> + <fixedCode value="MR"/> + </element> + <element> + <path value="Patient.identifier"/> + <sliceName value="JHN"/> + <min value="1"/> + <max value="1"/> + </element> + <element> + <path value="Patient.identifier.extension"/> + <sliceName value="validDate"/> + <max value="0"/> + </element> + <element> + <path value="Patient.identifier.type"/> + </element> + <element> + <path value="Patient.identifier.type.coding"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="system"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.identifier.type.coding"/> + <sliceName value="preferredCoding"/> + </element> + <element> + <path value="Patient.identifier.type.coding.system"/> + <fixedUri value="http://hl7.org/fhir/v2/0203"/> + </element> + <element> + <path value="Patient.identifier.type.coding.code"/> + <fixedCode value="JHN"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t23"/> + <url value="urn:uuid:2e28117d-bb6f-4d8e-9ccd-5472535cc2d6"/> + <name value="t23"/> + <status value="draft"/> + <description value="fixture for #23: Test Slicing - unsorted differential"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient"/> + </element> + <element> + <path value="Patient.contact"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="gender"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.contact"/> + <sliceName value="males"/> + </element> + <element> + <path value="Patient.contact.gender"/> + <fixedCode value="male"/> + </element> + <element> + <path value="Patient.contact.telecom"/> + <min value="1"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t24a"/> + <url value="urn:uuid:5eac3230-a289-4662-a296-2b673d6d3293"/> + <name value="t24a"/> + <status value="draft"/> + <description value="fixture for #24a: Constrain base element before slicing when slices were already defined - backbone"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient"/> + </element> + <element> + <path value="Patient.contact"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="gender"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.contact"/> + <sliceName value="males"/> + </element> + <element> + <path value="Patient.contact.telecom"/> + <min value="1"/> + </element> + <element> + <path value="Patient.contact.gender"/> + <fixedCode value="male"/> + </element> + <element> + <path value="Patient.contact"/> + <sliceName value="females"/> + </element> + <element> + <path value="Patient.contact.telecom"/> + <max value="0"/> + </element> + <element> + <path value="Patient.contact.gender"/> + <fixedCode value="female"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t24b"/> + <url value="urn:uuid:6a446a41-a552-4391-babc-db4caee2d987"/> + <name value="t24b"/> + <status value="draft"/> + <description value="fixture for #24b: Constrain base element before slicing when slices were already defined - backbone"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <!-- baseDefinition = t24a --> + <baseDefinition value="urn:uuid:5eac3230-a289-4662-a296-2b673d6d3293"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient"/> + </element> + <element> + <path value="Patient.contact"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="gender"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.contact.name"/> + <min value="1"/> + </element> + <element> + <path value="Patient.contact"/> + <sliceName value="males"/> + </element> + <element> + <path value="Patient.contact.name"/> + <min value="1"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t25a"/> + <url value="urn:uuid:ec0e207d-39e1-46ad-a10f-262029008feb"/> + <name value="t25a"/> + <status value="draft"/> + <description value="fixture for #25a: Constrain base element before slicing when slices were already defined - data type"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient"/> + </element> + <element> + <path value="Patient.name"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.name"/> + <sliceName value="official"/> + </element> + <element> + <path value="Patient.name.use"/> + <fixedCode value="official"/> + </element> + <element> + <path value="Patient.name.given"/> + <min value="1"/> + </element> + <element> + <path value="Patient.name"/> + <sliceName value="usual"/> + </element> + <element> + <path value="Patient.name.use"/> + <fixedCode value="usual"/> + </element> + <element> + <path value="Patient.name.given"/> + <max value="0"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t25b"/> + <url value="urn:uuid:729ce066-281e-48da-b2b7-866c0cf50241"/> + <name value="t25b"/> + <status value="draft"/> + <description value="fixture for #25b: Constrain base element before slicing when slices were already defined - data type"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <!-- baseDefinition = t25b --> + <baseDefinition value="urn:uuid:ec0e207d-39e1-46ad-a10f-262029008feb"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient"/> + </element> + <element> + <path value="Patient.name"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element> + <path value="Patient.name.family"/> + <min value="1"/> + </element> + <element> + <path value="Patient.name"/> + <sliceName value="official"/> + </element> + <element> + <path value="Patient.name.prefix"/> + <min value="1"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t26"/> + <url value="urn:uuid:ab833682-88b9-4e7a-8e08-eb82f39f7beb"/> + <name value="t26"/> + <status value="draft"/> + <description value="fixture for #26: Test differential sorting for polymorphic references"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Patient"/> + </element> + <element> + <path value="Patient.generalPractitioner"/> + <slicing> + <discriminator> + <type value="exists"/> + <path value="display"/> + </discriminator> + <rules value="open"/> + </slicing> + <!-- These could be references to other profiles rather than just to the base resources, but no need for that to test the tooling --> + <type> + <code value="Reference"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + </type> + <type> + <code value="Reference"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + </element> + <element> + <path value="Patient.generalPractitioner"/> + <sliceName value="sliceA"/> + </element> + <element> + <path value="Patient.generalPractitioner.display"/> + <min value="1"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t27"/> + <url value="urn:uuid:d2cb3b87-8f73-46fd-821c-cf39f0432757"/> + <name value="t27"/> + <status value="draft"/> + <description value="fixture for #27: walking into a type for Contract"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Contract"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Contract"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Contract"/> + </element> + <element> + <path value="Contract.type"/> + <label value="Consent"/> + <short value="Consent"/> + <definition value="SHALL contain exactly one [1..1] type="CONS" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6) (CONF:2219-2008)."/> + <min value="1"/> + <max value="1"/> + </element> + <element> + <path value="Contract.type.coding.system"/> + <patternCode value="urn:oid:2.16.840.1.113883.5.6"/> + </element> + <element> + <path value="Contract.type.coding.code"/> + <patternCode value="CONS"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t28"/> + <url value="urn:uuid:7c3e3bd7-7919-4348-bed7-a65af1690842"/> + <name value="t28"/> + <status value="draft"/> + <description value="fixture for #28: Test children of a polymorphic type"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="OperationOutcome"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/OperationOutcome"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="OperationOutcome"/> + </element> + <element> + <path value="OperationOutcome.issue"/> + </element> + <element> + <path value="OperationOutcome.issue.details"/> + </element> + <element> + <path value="OperationOutcome.issue.details.text"/> + </element> + <element> + <path value="OperationOutcome.issue.details.text.extension"/> + <sliceName value="translation"/> + <type> + <code value="Extension"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/iso21090-ST-translation"/> + </type> + </element> + <element> + <path value="OperationOutcome.issue.details.text.extension.valueString"/> + <!-- <type> + <code value="string"/> + </type>--> + </element> + <element> + <path value="OperationOutcome.issue.details.text.extension.valueString.extension"/> + <sliceName value="language"/> + <type> + <code value="Extension"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/iso21090-ST-language"/> + </type> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t29"/> + <url value="urn:uuid:8371f159-76b3-41f7-a66f-bde129e7e603"/> + <name value="t29"/> + <status value="draft"/> + <description value="fixture for #29: Test recursion on elements that are deeper than children of the root and have a different name (Parameters.parameter.part)"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="OperationOutcome"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + <derivation value="constraint"/> + <differential> + <element> + <path value="Parameters"/> + </element> + <element> + <path value="Parameters.parameter"/> + </element> + <element> + <path value="Parameters.parameter.part"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="name"/> + </discriminator> + <rules value="closed"/> + </slicing> + </element> + <element> + <path value="Parameters.parameter.part"/> + <sliceName value="foo"/> + <min value="1"/> + <max value="1"/> + </element> + <element> + <path value="Parameters.parameter.part.name"/> + <fixedString value="foo"/> + <mustSupport value="true"/> + </element> + <element> + <path value="Parameters.parameter.part.valueCoding"/> + <min value="1"/> + <type> + <code value="Coding"/> + </type> + </element> + <element> + <path value="Parameters.parameter.part.valueCoding.code"/> + <min value="1"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t30a"/> + <url value="urn:uuid:149505c1-a51b-4378-9d31-d14dd62f18e6"/> + <name value="t30a"/> + <status value="draft"/> + <description value="fixture for #30: Profile and derived profile both slice a backbone element; base profile"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Observation"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation"/> + <derivation value="constraint"/> + <differential> + <element id="Observation"> + <path value="Observation"/> + </element> + <element id="Observation.component"> + <path value="Observation.component"/> + <slicing> + <discriminator> + <type value="pattern"/> + <path value="code"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="Observation.component:gene-studied"> + <path value="Observation.component"/> + <sliceName value="gene-studied"/> + <max value="1"/> + </element> + <element id="Observation.component:gene-studied.code"> + <path value="Observation.component.code"/> + <min value="1"/> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="http://loinc.org"/> + <code value="48018-6"/> + </coding> + </patternCodeableConcept> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t30b"/> + <url value="urn:uuid:d144e878-9445-42cd-9e5c-28e4d8072a20"/> + <name value="t30b"/> + <status value="draft"/> + <description value="Profile and derived profile both slice a backbone element; derived profile"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Observation"/> + <baseDefinition value="urn:uuid:149505c1-a51b-4378-9d31-d14dd62f18e6"/> + <derivation value="constraint"/> + <differential> + <element id="Observation"> + <path value="Observation"/> + </element> + <element id="Observation.component:allelic-frequency"> + <path value="Observation.component"/> + <sliceName value="allelic-frequency"/> + <max value="1"/> + </element> + <element id="Observation.component:allelic-frequency.code"> + <path value="Observation.component.code"/> + <min value="1"/> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="http://loinc.org"/> + <code value="81258-6"/> + </coding> + </patternCodeableConcept> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t31"/> + <url value="urn:uuid:e9d11ae4-b7be-40c2-9c19-c9a1c4861428"/> + <name value="t31"/> + <status value="draft"/> + <description value="fixture for #31: Propagate extensions from differential to snapshot"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Parameters"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + <derivation value="constraint"/> + <differential> + <element id="Parameters"> + <path value="Parameters"/> + </element> + <element id="Parameters.parameter"> + <path value="Parameters.parameter"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="name"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="Parameters.parameter:string"> + <path value="Parameters.parameter"/> + <sliceName value="string"/> + </element> + <element id="Parameters.parameter:string.name"> + <path value="Parameters.parameter.name"/> + <fixedString value="string"/> + </element> + <element id="Parameters.parameter:string.valueString"> + <extension url="http://hl7.org/fhir/StructureDefinition/regex"> + <valueString value="(a)*"/> + </extension> + <path value="Parameters.parameter.valueString"/> + <type> + <code value="string"/> + </type> + <maxLength value="2"/> + </element> + <element id="Parameters.parameter:string.valueString.extension:translation"> + <path value="Parameters.parameter.valueString.extension"/> + <sliceName value="translation"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/translation"/> + </type> + </element> + <element id="Parameters.parameter:string.valueString.extension:translation.extension:content"> + <path value="Parameters.parameter.valueString.extension.extension"/> + <sliceName value="content"/> + </element> + <element id="Parameters.parameter:string.valueString.extension:translation.extension:content.valueString"> + <extension url="http://hl7.org/fhir/StructureDefinition/regex"> + <valueString value="(b)*"/> + </extension> + <path value="Parameters.parameter.valueString.extension.extension.valueString"/> + <sliceName value="content"/> + <maxLength value="2"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t32"/> + <url value="urn:uuid:d4cbb68a-8c76-43a8-b0f1-854d24f881dc"/> + <name value="t32"/> + <status value="draft"/> + <description value="fixture for #32: Test disappearing slice definition"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Questionnaire"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Questionnaire"/> + <derivation value="constraint"/> + <differential> + <element id="Questionnaire"> + <path value="Questionnaire"/> + </element> + <element id="Questionnaire.item"> + <path value="Questionnaire.item"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="linkId"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="Questionnaire.item.linkId"> + <path value="Questionnaire.item.linkId"/> + <mustSupport value="true"/> + </element> + <element id="Questionnaire.item"> + <path value="Questionnaire.item"/> + <sliceName value="record-type"/> + </element> + <element id="Questionnaire.item:record-type.linkId"> + <path value="Questionnaire.item.linkId"/> + <fixedString value="record-type"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t33"/> + <url value="urn:uuid:75055c57-8e5d-4c0a-ab22-43371571f724"/> + <name value="t33"/> + <status value="draft"/> + <description value="fixture for #33: Test disappearing slice definition"/> + <fhirVersion value="3.0.1"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="ExplanationOfBenefit"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit"/> + <derivation value="constraint"/> + <differential> + <element id="ExplanationOfBenefit.addItem"> + <path value="ExplanationOfBenefit.addItem"/> + <mustSupport value="true"/> + </element> + <element id="ExplanationOfBenefit.addItem.adjudication"> + <path value="ExplanationOfBenefit.addItem.adjudication"/> + </element> + <element id="ExplanationOfBenefit.addItem.adjudication.extension"> + <path value="ExplanationOfBenefit.addItem.adjudication.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="ExplanationOfBenefit.addItem.adjudication.extension:someExt"> + <path value="ExplanationOfBenefit.addItem.adjudication.extension"/> + <sliceName value="someExt"/> + <type> + <code value="Extension"/> + <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason"/> + </type> + <mustSupport value="true"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <!-- extension definition for test 34 --> + <StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="extension-identifier-status"/> + <url value="http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status"/> + <name value="IdentifierStatus"/> + <title value="VhDir Identifier Status"/> + <status value="draft"/> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="Identifier"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <differential> + <element id="Extension"> + <path value="Extension"/> + <short value="Status"/> + <max value="1"/> + <isModifier value="false"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <fixedUri value="http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status"/> + </element> + <element id="Extension.valueCode"> + <path value="Extension.valueCode"/> + <label value="status"/> + <short value="active|inactive|issued in error|revoked|pending"/> + <definition value="Describes the status of an identifier"/> + <min value="1"/> + <type> + <code value="code"/> + </type> + <binding> + <strength value="preferred"/> + <valueSet value="http://www.fhir.org/guides/test3/ValueSet/blah-codes"/> + </binding> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t34"/> + <url value="urn:uuid:0fefeab4-abd9-4ea6-b9c7-8a07a04f600c"/> + <name value="t34"/> + <status value="draft"/> + <description value="fixture for #34: Referencing a custom extension"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Basic"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic"/> + <derivation value="constraint"/> + <differential> + <element id="Basic"> + <path value="Basic"/> + </element> + <element id="Basic.identifier"> + <path value="Basic.identifier"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="Identifier"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + <element id="Basic.identifier.extension:foo"> + <path value="Basic.identifier.extension"/> + <sliceName value="foo"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="Extension"/> + <profile value="http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <!-- extension definition for test 35 - a profile on an existing extension --> + <StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="extension-identifier-status2"/> + <url value="http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-statu2"/> + <name value="IdentifierStatus"/> + <title value="VhDir Identifier Status"/> + <status value="draft"/> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="Identifier"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status"/> + <derivation value="constraint"/> + <differential> + <element id="Extension"> + <path value="Extension"/> + <short value="Status"/> + <max value="1"/> + <isModifier value="false"/> + </element> + <element id="Extension.valueCode"> + <path value="Extension.valueCode"/> + <binding> + <strength value="required"/> + <valueSet value="http://www.fhir.org/guides/test3/ValueSet/blah-codes"/> + </binding> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t35"/> + <url value="urn:uuid:b22b108f-20f0-4a9e-8bb6-3a8041c8b7b3"/> + <name value="t35"/> + <status value="draft"/> + <description value="fixture for #35: Referencing a profiled custom extension"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Basic"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic"/> + <derivation value="constraint"/> + <differential> + <element id="Basic"> + <path value="Basic"/> + </element> + <element id="Basic.identifier"> + <path value="Basic.identifier"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="Identifier"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + <element id="Basic.identifier.extension:foo"> + <path value="Basic.identifier.extension"/> + <sliceName value="foo"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="Extension"/> + <profile value="http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-statu2"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + </differential> + </StructureDefinition> + </contained> + <contained> + <StructureDefinition> + <id value="t36"/> + <url value="urn:uuid:428d7c25-e55f-42b4-a93e-83cef54421d7"/> + <name value="t36"/> + <status value="draft"/> + <description value="fixture for #36: Deep Recursion"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="PlanDefinition"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/> + <derivation value="constraint"/> + <differential> + <element id="PlanDefinition"> + <path value="PlanDefinition"/> + </element> + <element id="PlanDefinition.action"> + <path value="PlanDefinition.action"/> + </element> + <element id="PlanDefinition.action.action"> + <path value="PlanDefinition.action.action"/> + </element> + <element id="PlanDefinition.action.action.action"> + <path value="PlanDefinition.action.action.action"/> + </element> + <element id="PlanDefinition.action.action.action.action"> + <path value="PlanDefinition.action.action.action.action"/> + </element> + <element id="PlanDefinition.action.action.action.action.condition"> + <path value="PlanDefinition.action.action.action.action.condition"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="kind"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="PlanDefinition.action.action.action.action.condition:stopConditions"> + <path value="PlanDefinition.action.action.action.action.condition"/> + <sliceName value="stopConditions"/> + </element> + <element id="PlanDefinition.action.action.action.action.condition:stopConditions:kind"> + <path value="PlanDefinition.action.action.action.action.condition.kind"/> + <type> + <code value="code"/> + </type> + <fixedCode value="stop"/> + </element> + </differential> + </StructureDefinition> + </contained> + <url value="http://hl7.org/fhir/tests/snapshotgeneration"/> + <name value="SnapshotGenerationTests"/> + <title value="Snapshot generation test script"/> + <status value="draft"/> + <experimental value="false"/> + <date value="2017-03-22"/> + <publisher value="FHIR Project"/> + <description value="These tests constitute the unit tests for snapshot generation"/> + <fixture id="patient"> + <autocreate value="false"/> + <autodelete value="false"/> + <resource> + <reference value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </resource> + </fixture> + <fixture id="valueset"> + <autocreate value="false"/> + <autodelete value="false"/> + <resource> + <reference value="http://hl7.org/fhir/StructureDefinition/ValueSet"/> + </resource> + </fixture> + <fixture id="organization"> + <autocreate value="false"/> + <autodelete value="false"/> + <resource> + <reference value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </resource> + </fixture> + <fixture id="operationoutcome"> + <autocreate value="false"/> + <autodelete value="false"/> + <resource> + <reference value="http://hl7.org/fhir/StructureDefinition/OperationOutcome"/> + </resource> + </fixture> + <fixture id="parameters"> + <autocreate value="false"/> + <autodelete value="false"/> + <resource> + <reference value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + </resource> + </fixture> + <test> + <name value="Test1"/> + <description value="an empty differential, generate the snapshot, and then insist it must match the base"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="true"/> + <responseId value="t1o"/> + <sourceId value="t1"/> + </operation> + </action> + <action> + <assert> + <label value="test1-1"/> + <description value="The snapshot must have the same number of elements, in the same order, with matching paths"/> + <direction value="response"/> + <expression value="fixture('t1o').snapshot.element.select(path) = fixture('patient').snapshot.element.select(path)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test1-2"/> + <description value="The snapshot elements must be the same - check short description"/> + <direction value="response"/> + <expression value="fixture('t1o').snapshot.element.all(aliasAs('A').short = fixture('patient').snapshot.element.where(path = alias('A').path).short)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test1-3"/> + <description value="The snapshot elements must be the same - check min cardinality"/> + <direction value="response"/> + <expression value="fixture('t1o').snapshot.element.all(aliasAs('A').min = fixture('patient').snapshot.element.where(path = alias('A').path).min)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test1-4"/> + <description value="The snapshot elements must be the same - check max cardinality"/> + <direction value="response"/> + <expression value="fixture('t1o').snapshot.element.all(aliasAs('A').max = fixture('patient').snapshot.element.where(path = alias('A').path).max)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test1-5"/> + <description value="The snapshot elements must be the same - check binding"/> + <direction value="response"/> + <expression value="fixture('t1o').snapshot.element.all(aliasAs('A').binding.valueSet = fixture('patient').snapshot.element.where(path = alias('A').path).binding.valueSet)"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test2"/> + <description value="an empty differential, generate the snapshot, and then insist it must match the base - use a resource with recusion"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t2o"/> + <sourceId value="t2"/> + </operation> + </action> + <action> + <assert> + <label value="test2-1"/> + <description value="The snapshot must have the same number of elements, in the same order, with matching paths"/> + <direction value="response"/> + <expression value="fixture('t2o').snapshot.element.select(path) = fixture('valueset').snapshot.element.select(path)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test2-2"/> + <description value="The snapshot elements must be the same"/> + <direction value="response"/> + <expression value="fixture('t2o').snapshot.element.all(aliasAs('A').short = fixture('valueset').snapshot.element.where(path = alias('A').path).short)"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test3"/> + <description value="fix a cardinality"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t3o"/> + <sourceId value="t3"/> + </operation> + </action> + <action> + <assert> + <label value="test3-1"/> + <description value="The snapshot must have the same number of elements, in the same order, with matching paths"/> + <direction value="response"/> + <expression value="fixture('t3o').snapshot.element.select(path) = fixture('patient').snapshot.element.select(path)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test3-2"/> + <description value="The snapshot elements must be the same"/> + <direction value="response"/> + <expression value="fixture('t3o').snapshot.element.all(aliasAs('A').short = fixture('patient').snapshot.element.where(path = alias('A').path).short)"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test3-3"/> + <description value="The patient.identifier cardinality must be right"/> + <direction value="response"/> + <expression value="fixture('t3o').snapshot.element.where(path = 'Patient.identifier').min = 1"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test4"/> + <description value="fix a cardinality"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t4o"/> + <sourceId value="t4"/> + </operation> + </action> + <action> + <assert> + <label value="test4-1"/> + <description value="The patient.identifier documentation must be right"/> + <direction value="response"/> + <expression value="fixture('t4o').snapshot.element.where(path = 'Patient.identifier').doco != '... some more doco'"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test5"/> + <description value="fix a type"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t5o"/> + <sourceId value="t5"/> + </operation> + </action> + <action> + <assert> + <label value="test5-1"/> + <description value="The patient.deceased type must be right"/> + <direction value="response"/> + <expression value="fixture('t5o').snapshot.element.where(base.path = 'Patient.deceased[x]').type.code = 'dateTime'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test5-2"/> + <description value="The patient.deceased type must be right"/> + <direction value="response"/> + <expression value="fixture('t5o').snapshot.element.where(base.path = 'Patient.deceased[x]').path = 'Patient.deceasedDateTime'"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test6"/> + <description value="fix a type (with renaming)"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t6o"/> + <sourceId value="t6"/> + </operation> + </action> + <action> + <assert> + <label value="test6-1"/> + <description value="The patient.deceased type must be right"/> + <direction value="response"/> + <expression value="fixture('t6o').snapshot.element.where(base.path = 'Patient.deceased[x]').type.code = 'dateTime'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test6-1"/> + <description value="The patient.deceased type must be right"/> + <direction value="response"/> + <expression value="fixture('t6o').snapshot.element.where(base.path = 'Patient.deceased[x]').path = 'Patient.deceasedDateTime'"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test7"/> + <description value="test mapping resolution"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t7o"/> + <sourceId value="t7"/> + </operation> + </action> + <action> + <assert> + <label value="test7-1"/> + <description value="The mapping must be made"/> + <direction value="response"/> + <expression value="fixture('t7o').snapshot.element.where(base.path = 'Patient.identifier').mapping.count() = fixture('t1o').snapshot.element.where(base.path = 'Patient.identifier').mapping.count() + 1"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test8"/> + <description value="test walking into a type"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t8o"/> + <sourceId value="t8"/> + </operation> + </action> + <action> + <assert> + <label value="test8-1"/> + <description value="Mustsupport must be true on Patient.identifier"/> + <direction value="response"/> + <expression value="fixture('t8o').snapshot.element.where(path = 'Patient.identifier').mustSupport"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test8-2"/> + <description value="Mustsupport must be true on Patient.identifier.system"/> + <direction value="response"/> + <expression value="fixture('t8o').snapshot.element.where(path = 'Patient.identifier.system').mustSupport"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test9"/> + <description value="test walking into a type (sparsely)"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t9o"/> + <sourceId value="t9"/> + </operation> + </action> + <action> + <assert> + <label value="test9-1"/> + <description value="Mustsupport must be true on Patient.identifier"/> + <direction value="response"/> + <expression value="fixture('t9o').snapshot.element.where(path = 'Patient.identifier').mustSupport.not()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test9-2"/> + <description value="Mustsupport must be true on Patient.identifier.system"/> + <direction value="response"/> + <expression value="fixture('t9o').snapshot.element.where(path = 'Patient.identifier.system').mustSupport"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test10"/> + <description value="test slicing - simple"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t10o"/> + <sourceId value="t10"/> + </operation> + </action> + <action> + <assert> + <label value="test10-1"/> + <description value="Patient.identifier must be sliced"/> + <direction value="response"/> + <expression value="fixture('t10o').snapshot.element.where(path = 'Patient.identifier').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test10-2"/> + <description value="Patient.identifier must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t10o').snapshot.element.where(path = 'Patient.identifier').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test10-3"/> + <description value="Patient.identifier must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t10o').snapshot.element.where(path = 'Patient.identifier').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test10-4"/> + <description value="Patient.identifier slice must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t10o').snapshot.element.where(path = 'Patient.identifier').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test10-5"/> + <description value="Patient.identifier tail must have a slice name"/> + <direction value="response"/> + <expression value="fixture('t10o').snapshot.element.where(path = 'Patient.identifier').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test10-6"/> + <description value="Patient.identifier.use must be fixed"/> + <direction value="response"/> + <expression value="fixture('t10o').snapshot.element.where(path = 'Patient.identifier.use').all(fixed.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test11"/> + <description value="test slicing on extension"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t11o"/> + <sourceId value="t11"/> + </operation> + </action> + <action> + <assert> + <label value="test11-1"/> + <description value="Patient.extension must be sliced"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test11-2"/> + <description value="Patient.extension first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test11-3"/> + <description value="Patient.extension must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test11-4"/> + <description value="Patient.extension must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test11-5"/> + <description value="Patient.extension tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test11-6"/> + <description value="Patient.extension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension').first().max.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test11-7"/> + <description value="Patient.extension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t11o').snapshot.element.where(path = 'Patient.extension')[1].min.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test12"/> + <description value="Test slicing - extension, but without setting the slicing up"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t12o"/> + <sourceId value="t12"/> + </operation> + </action> + <action> + <assert> + <label value="test12-1"/> + <description value="Patient.extension must be sliced"/> + <direction value="response"/> + <expression value="fixture('t12o').snapshot.element.where(path = 'Patient.extension').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12-2"/> + <description value="Patient.extension first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t12o').snapshot.element.where(path = 'Patient.extension').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12-3"/> + <description value="Patient.extension must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t12o').snapshot.element.where(path = 'Patient.extension').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12-4"/> + <description value="Patient.extension must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t12o').snapshot.element.where(path = 'Patient.extension').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12-5"/> + <description value="Patient.extension tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t12o').snapshot.element.where(path = 'Patient.extension').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12-7"/> + <description value="Patient.extension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t12o').snapshot.element.where(path = 'Patient.extension')[1].min.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test12a"/> + <description value="Test slicing - extension, but without setting the slicing up (one slice only)"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t12ao"/> + <sourceId value="t12a"/> + </operation> + </action> + <action> + <assert> + <label value="test12a-1"/> + <description value="Patient.extension must be sliced"/> + <direction value="response"/> + <expression value="fixture('t12ao').snapshot.element.where(path = 'Patient.extension').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12a-2"/> + <description value="Patient.extension first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t12ao').snapshot.element.where(path = 'Patient.extension').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12a-3"/> + <description value="Patient.extension must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t12ao').snapshot.element.where(path = 'Patient.extension').count() = 2"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12a-4"/> + <description value="Patient.extension must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t12ao').snapshot.element.where(path = 'Patient.extension').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test12a-5"/> + <description value="Patient.extension tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t12ao').snapshot.element.where(path = 'Patient.extension').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test13"/> + <description value="test slicing - complex"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t13o"/> + <sourceId value="t13"/> + </operation> + </action> + <action> + <assert> + <label value="test13-1"/> + <description value="element 7 (base) path"/> + <expression value="fixture('t13o').snapshot.element[7].path = 'Patient.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-2"/> + <description value="element 7 slicing"/> + <expression value="fixture('t13o').snapshot.element[7].slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-3"/> + <description value="element 8 (1st slice) path"/> + <expression value="fixture('t13o').snapshot.element[8].path = 'Patient.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-4"/> + <description value="element 8 (1st slice) name"/> + <expression value="fixture('t13o').snapshot.element[8].sliceName = 't'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-5"/> + <description value="element 9 (2nd slice) profile name"/> + <expression value="fixture('t13o').snapshot.element[8].type[0].profile = 'http://hl7.org/fhir/StructureDefinition/patient-birthTime'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-6"/> + <description value="element 9 (2nd slice) path"/> + <expression value="fixture('t13o').snapshot.element[9].path = 'Patient.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-7"/> + <description value="element 8 (1st slice) name"/> + <expression value="fixture('t13o').snapshot.element[9].sliceName = 'complex'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-8"/> + <description value="element 9 (2nd slice) profile name"/> + <expression value="fixture('t13o').snapshot.element[9].type[0].profile = 'http://hl7.org/fhir/StructureDefinition/patient-nationality'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-9"/> + <description value="element 10 (2nd slice).id path"/> + <expression value="fixture('t13o').snapshot.element[10].path = 'Patient.extension.id'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-10"/> + <description value="element 11 (2nd slice).extension path"/> + <expression value="fixture('t13o').snapshot.element[11].path = 'Patient.extension.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-11"/> + <description value="element 12 (2nd slice).extension path"/> + <expression value="fixture('t13o').snapshot.element[12].path = 'Patient.extension.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-12"/> + <description value="element 12 (2nd slice).extension must support"/> + <expression value="fixture('t13o').snapshot.element[12].mustSupport"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-13"/> + <description value="element 13 (2nd slice).extension.id path"/> + <expression value="fixture('t13o').snapshot.element[13].path = 'Patient.extension.extension.id'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-14"/> + <description value="element 14 (2nd slice).extension.extension path"/> + <expression value="fixture('t13o').snapshot.element[14].path = 'Patient.extension.extension.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-15"/> + <description value="element 15 (2nd slice).extension.url path"/> + <expression value="fixture('t13o').snapshot.element[15].path = 'Patient.extension.extension.url'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-16"/> + <description value="element 16 (2nd slice).extension.valueCodeableConcept path"/> + <expression value="fixture('t13o').snapshot.element[16].path = 'Patient.extension.extension.valueCodeableConcept'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-17"/> + <description value="element 17 (2nd slice).extension path"/> + <expression value="fixture('t13o').snapshot.element[17].path = 'Patient.extension.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-18"/> + <description value="element 17 (2nd slice).extension cardinality"/> + <expression value="fixture('t13o').snapshot.element[17].max = '0'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-19"/> + <description value="element 18 (2nd slice).extension.id path"/> + <expression value="fixture('t13o').snapshot.element[18].path = 'Patient.extension.extension.id'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-20"/> + <description value="element 19 (2nd slice).extension.extension path"/> + <expression value="fixture('t13o').snapshot.element[19].path = 'Patient.extension.extension.extension'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-21"/> + <description value="element 20 (2nd slice).extension.url path"/> + <expression value="fixture('t13o').snapshot.element[20].path = 'Patient.extension.extension.url'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-22"/> + <description value="element 21 (2nd slice).extension.valuePeriod path"/> + <expression value="fixture('t13o').snapshot.element[21].path = 'Patient.extension.extension.valuePeriod'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-23"/> + <description value="element 22.url path"/> + <expression value="fixture('t13o').snapshot.element[22].path = 'Patient.extension.url'"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test13-24"/> + <description value="element 22.value path"/> + <expression value="fixture('t13o').snapshot.element[23].path = 'Patient.extension.value[x]'"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test14"/> + <description value="Test slicing see task 8742"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t14o"/> + <sourceId value="t14"/> + </operation> + </action> + <action> + <assert> + <label value="test14-1"/> + <description value="element count increased by 13"/> + <expression value="fixture('t14o').snapshot.element.count() = fixture('organization').snapshot.element.count() + 13"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test15"/> + <description value="test slicing - complex extensions with children"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t15o"/> + <sourceId value="t15"/> + </operation> + </action> + <action> + <assert> + <label value="test15-1"/> + <description value="element count increased by 27"/> + <expression value="fixture('t15o').snapshot.element.count() = fixture('patient').snapshot.element.count() + 27"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test16"/> + <description value="test slicing - extending a complex extension's children in derived profile"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t16o"/> + <sourceId value="t16"/> + </operation> + </action> + <action> + <assert> + <label value="test16-1"/> + <description value="element count increased by 17"/> + <expression value="fixture('t16o').snapshot.element.count() = fixture('t15o').snapshot.element.count() + 17"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test17"/> + <description value="slicing on modifierExtension"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t17o"/> + <sourceId value="t17"/> + </operation> + </action> + <action> + <assert> + <label value="test17-1"/> + <description value="Patient.modifierExtension must be sliced"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test17-2"/> + <description value="Patient.modifierExtension first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test17-3"/> + <description value="Patient.modifierExtension must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test17-4"/> + <description value="Patient.modifierExtension must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test17-5"/> + <description value="Patient.modifierExtension tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test17-6"/> + <description value="Patient.modifierExtension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension').first().max.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test17-7"/> + <description value="Patient.modifierExtension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t17o').snapshot.element.where(path = 'Patient.modifierExtension')[1].min.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test18"/> + <description value="slicing on modifierExtension, no set up"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t18o"/> + <sourceId value="t18"/> + </operation> + </action> + <action> + <assert> + <label value="test18-1"/> + <description value="Patient.modifierExtension must be sliced"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test18-2"/> + <description value="Patient.modifierExtension first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test18-3"/> + <description value="Patient.modifierExtension must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test18-4"/> + <description value="Patient.modifierExtension must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test18-5"/> + <description value="Patient.modifierExtension tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test18-6"/> + <description value="Patient.modifierExtension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension').first().max.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test18-7"/> + <description value="Patient.modifierExtension cardinality must be correct"/> + <direction value="response"/> + <expression value="fixture('t18o').snapshot.element.where(path = 'Patient.modifierExtension')[1].min.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test19"/> + <description value="slicing on modifierExtension, no extension, one slice"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t19o"/> + <sourceId value="t19"/> + </operation> + </action> + <action> + <assert> + <label value="test19-1"/> + <description value="Patient.modifierExtension must be sliced"/> + <direction value="response"/> + <expression value="fixture('t19o').snapshot.element.where(path = 'Patient.modifierExtension').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test19-2"/> + <description value="Patient.modifierExtension first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t19o').snapshot.element.where(path = 'Patient.modifierExtension').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test19-3"/> + <description value="Patient.modifierExtension must be sliced into one slices"/> + <direction value="response"/> + <expression value="fixture('t19o').snapshot.element.where(path = 'Patient.modifierExtension').count() = 2"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test19-4"/> + <description value="Patient.modifierExtension must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t19o').snapshot.element.where(path = 'Patient.modifierExtension').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test19-5"/> + <description value="Patient.modifierExtension tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t19o').snapshot.element.where(path = 'Patient.modifierExtension').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <!-- <test> + <name value="Test20"/> + <description value="Slicing a backbone element"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t20o"/> + <sourceId value="t20"/> + </operation> + </action> + <action> + <assert> + <label value="test20-1"/> + <description value="PlanDefinition.action must be sliced"/> + <direction value="response"/> + <expression value="fixture('t20o').snapshot.element.where(path = 'PlanDefinition.action').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test20-2"/> + <description value="PlanDefinition.action first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t20o').snapshot.element.where(path = 'PlanDefinition.action').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test20-3"/> + <description value="PlanDefinition.action must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t20o').snapshot.element.where(path = 'PlanDefinition.action').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test20-4"/> + <description value="PlanDefinition.action tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t20o').snapshot.element.where(path = 'PlanDefinition.action').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test20-5"/> + <description value="PlanDefinition.action tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t20o').snapshot.element.where(path = 'PlanDefinition.action').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test20-6"/> + <description value="PlanDefinition.action slice base must have children"/> + <direction value="response"/> + <expression value="fixture('t20o').snapshot.element[51].where(path.startsWith('PlanDefinition.action.')).empty().not()"/> + <warningOnly value="false"/> + </assert> + </action> + </test>--> + <test> + <name value="Test21"/> + <description value="Slicing a backbone element on its nested use"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t21o"/> + <sourceId value="t21"/> + </operation> + </action> + <action> + <assert> + <label value="test21-1"/> + <description value="PlanDefinition.action.action must be sliced"/> + <direction value="response"/> + <expression value="fixture('t21o').snapshot.element.where(path = 'PlanDefinition.action.action').first().slicing.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test21-2"/> + <description value="PlanDefinition.action.action first must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t21o').snapshot.element.where(path = 'PlanDefinition.action.action').first().sliceName.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test21-3"/> + <description value="PlanDefinition.action.action must be sliced into two slices"/> + <direction value="response"/> + <expression value="fixture('t21o').snapshot.element.where(path = 'PlanDefinition.action.action').count() = 3"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test21-4"/> + <description value="PlanDefinition.action.action tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t21o').snapshot.element.where(path = 'PlanDefinition.action.action').tail().slicing.empty()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test21-5"/> + <description value="PlanDefinition.action.action tail must not have a slice name"/> + <direction value="response"/> + <expression value="fixture('t21o').snapshot.element.where(path = 'PlanDefinition.action.action').tail().all(sliceName.empty().not())"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test22"/> + <description value="test slicing - Constrain base element before slicing"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t22o"/> + <sourceId value="t22"/> + </operation> + </action> + <action> + <assert> + <label value="test22-1"/> + <description value="element count increased by 76"/> + <expression value="fixture('t22o').snapshot.element.count().trace('t22o') = fixture('patient').snapshot.element.count().trace('t22patient') + 76"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test23"/> + <description value="test slicing - unsorted differential"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t23o"/> + <sourceId value="t23"/> + </operation> + </action> + <action> + <assert> + <label value="test23-1"/> + <description value="element count increased by ??"/> + <expression value="fixture('t23o').snapshot.element.count().trace('t23o') = fixture('patient').snapshot.element.count().trace('t23patient') + 11"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test24"/> + <description value="test slicing - Constrain base element before slicing when slices were already defined - backbone"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t24ao"/> + <sourceId value="t24a"/> + </operation> + </action> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t24bo"/> + <sourceId value="t24b"/> + </operation> + </action> + <action> + <assert> + <label value="test24-1"/> + <description value="Element count of profile a is increased by 24 from base Patient"/> + <expression value="fixture('t24bo').snapshot.element.count().trace('t24ao') = fixture('patient').snapshot.element.count().trace('t24Patient') + 22"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test24-2"/> + <description value="Element count of profile b is identical to profile a"/> + <expression value="fixture('t24bo').snapshot.element.count().trace('t24bo') = fixture('t24ao').snapshot.element.count().trace('t24ao')"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <!-- disabled until it passes + <test> + <name value="Test25"/> + <description value="test slicing - Constrain base element before slicing when slices were already defined - datatype"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/><responseId value="t25o"/> + <sourceId value="t25b"/> + </operation> + </action> + <action> + <assert> + <label value="test25-1"/> + <description value="element count increased by ??"/> + <!-!- Update once we know what the new snapshot size should be -!-> + <expression value="fixture('t25o').snapshot.element.count().trace('t25o') = fixture('patient').snapshot.element.count().trace('t25patient') + 1"/> + <warningOnly value="false"/></assert> + </action> + </test> + --> + <test> + <name value="Test26"/> + <description value="Test differential sorting for polymorphic references"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="sortDifferential"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t26o"/> + <sourceId value="t26"/> + </operation> + </action> + <action> + <assert> + <label value="test26-1"/> + <description value="differential element count the same"/> + <expression value="fixture('t26o').differential.element.count() = fixture('t26').differential.element.count()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test27"/> + <description value="test Contract.type"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <responseId value="t27o"/> + <sourceId value="t27"/> + </operation> + </action> + <action> + <assert> + <label value="test27-1"/> + <description value="Contract.type.coding.code must have a pattern"/> + <direction value="response"/> + <expression value="fixture('t27o').snapshot.element.where(path = 'Contract.type.coding.code').pattern.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test27-2"/> + <description value="Contract.type.coding.system must have a pattern"/> + <direction value="response"/> + <expression value="fixture('t27o').snapshot.element.where(path = 'Contract.type.coding.system').pattern.exists()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test28"/> + <description value="Test children of a polymorphic type"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t28o"/> + <sourceId value="t28"/> + </operation> + </action> + <action> + <assert> + <label value="test28-1"/> + <description value="Element count must be increased by 16"/> + <direction value="response"/> + <expression value="fixture('t28o').snapshot.element.count().trace('t28o') = fixture('operationoutcome').snapshot.element.count().trace('t28') + 16"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test29"/> + <description value="Test recursion on elements that are deeper than children of the root and have a different name (Parameters.parameter.part)"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t29o"/> + <sourceId value="t29"/> + </operation> + </action> + <action> + <assert> + <label value="test29-1"/> + <description value="Element count must be increased by 15"/> + <direction value="response"/> + <expression value="fixture('t29o').snapshot.element.count().trace('t29o') = fixture('parameters').snapshot.element.count().trace('t29') + 15"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test29-2"/> + <description value="There is an element with id 'Parameters.parameter.part:foo.id'"/> + <direction value="response"/> + <expression value="fixture('t29o').snapshot.element.where(id = 'Parameters.parameter.part:foo.id').count()=1"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test30"/> + <description value="Profile and derived profile both slice a backbone element"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t30bo"/> + <sourceId value="t30b"/> + </operation> + </action> + <action> + <assert> + <label value="test30"/> + <description value="Snapshot doesn't result in an error'"/> + <direction value="response"/> + <expression value="fixture('t30bo').snapshot.element.count().trace('t30bo')>1"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test31"/> + <description value="Propagate extensions from differential to snapshot"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t31o"/> + <sourceId value="t31"/> + </operation> + </action> + <action> + <assert> + <label value="test31"/> + <description value="Snapshot contains regex extension'"/> + <direction value="response"/> + <expression value="fixture('t31o').snapshot.element.extension('http://hl7.org/fhir/StructureDefinition/regex').count().trace('t31o ext count')=2"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test32"/> + <description value="Test disappearing slicing"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t32o"/> + <sourceId value="t32"/> + </operation> + </action> + <action> + <assert> + <label value="test32"/> + <description value="Snapshot Questionnaire.item element has slicing'"/> + <direction value="response"/> + <expression value="fixture('t32o').snapshot.element.where(id = 'Questionnaire.item').slicing.count().trace('t32o item slicing count')=1"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test33"/> + <description value="Test disappearing slicing"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t33o"/> + <sourceId value="t33"/> + </operation> + </action> + <action> + <assert> + <label value="test33"/> + <description value="Snapshot contains referenced item children with correct path'"/> + <direction value="response"/> + <expression value="fixture('t33o').snapshot.element.where(id = 'ExplanationOfBenefit.addItem.adjudication.extension').exists()"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test34"/> + <description value="Test custom extension"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t34o"/> + <sourceId value="t34"/> + </operation> + </action> + <action> + <assert> + <label value="test34"/> + <description value="There must be 2 elements on Basic.identifier.extension in the snapshot"/> + <direction value="response"/> + <expression value="fixture('t34o').snapshot.element.where(path = 'Basic.identifier.extension').count() = 2"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test34a"/> + <description value="The narrative must mention the extension URL (http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status)"/> + <direction value="response"/> + <expression value="fixture('t34o').text.div.contains('http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status')"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + <test> + <name value="Test35"/> + <description value="Test profiled custom extension"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t35o"/> + <sourceId value="t35"/> + </operation> + </action> + <action> + <assert> + <label value="test35"/> + <description value="There must be 2 elements on Basic.identifier.extension in the snapshot"/> + <direction value="response"/> + <expression value="fixture('t35o').snapshot.element.where(path = 'Basic.identifier.extension').count() = 2"/> + <warningOnly value="false"/> + </assert> + </action> + <action> + <assert> + <label value="test35a"/> + <description value="The narrative must mention the extension URL (http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status)"/> + <direction value="response"/> + <expression value="fixture('t35o').text.div.contains('http://www.fhir.org/guides/test3/StructureDefinition/extension-identifier-status')"/> + <warningOnly value="false"/> + </assert> + </action> + </test> +<!-- + this triggers a complex bug in the snapshot generation to do with tracking paths when repeatedly walking across recursion (contentReference != null) + + <test> + <name value="Test36"/> + <description value="Test deep nesting"/> + <action> + <operation> + <type> + <system value="http://hl7.org/fhir/testscript-operation-codes"/> + <code value="snapshot"/> + </type> + <resource value="StructureDefinition"/> + <encodeRequestUrl value="false"/> + <params value="sort=true"/> + <responseId value="t36o"/> + <sourceId value="t36"/> + </operation> + </action> + <action> + <assert> + <label value="test36"/> + <description value="Snapshot generation didn't blow up"/> + <direction value="response"/> + <expression value="fixture('t36o').snapshot.element.count() > 0"/> + <warningOnly value="false"/> + </assert> + </action> + </test> + --> +</TestScript> diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/HYPHEN_MINUS_in_localName.nt b/org.hl7.fhir.r4/src/test/resources/turtle/HYPHEN_MINUS_in_localName.nt new file mode 100644 index 000000000..25546b38f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/HYPHEN_MINUS_in_localName.nt @@ -0,0 +1 @@ +<http://a.example/s-> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/HYPHEN_MINUS_in_localName.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/HYPHEN_MINUS_in_localName.ttl new file mode 100644 index 000000000..0340b8c83 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/HYPHEN_MINUS_in_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s- <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRIREF_datatype.nt b/org.hl7.fhir.r4/src/test/resources/turtle/IRIREF_datatype.nt new file mode 100644 index 000000000..c333a5f61 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRIREF_datatype.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRIREF_datatype.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/IRIREF_datatype.ttl new file mode 100644 index 000000000..c333a5f61 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRIREF_datatype.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRI_spo.nt b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_spo.nt new file mode 100644 index 000000000..01125e504 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_spo.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRI_subject.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_subject.ttl new file mode 100644 index 000000000..01125e504 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_subject.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_all_punctuation.nt b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_all_punctuation.nt new file mode 100644 index 000000000..941587732 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_all_punctuation.nt @@ -0,0 +1 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_all_punctuation.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_all_punctuation.ttl new file mode 100644 index 000000000..941587732 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_all_punctuation.ttl @@ -0,0 +1 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_eight_digit_numeric_escape.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_eight_digit_numeric_escape.ttl new file mode 100644 index 000000000..434034e73 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_eight_digit_numeric_escape.ttl @@ -0,0 +1 @@ +<http://a.example/\U00000073> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_four_digit_numeric_escape.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_four_digit_numeric_escape.ttl new file mode 100644 index 000000000..4163636ea --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/IRI_with_four_digit_numeric_escape.ttl @@ -0,0 +1 @@ +<http://a.example/\u0073> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LICENSE b/org.hl7.fhir.r4/src/test/resources/turtle/LICENSE new file mode 100644 index 000000000..1ac8f4e1c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LICENSE @@ -0,0 +1,117 @@ +Summary +======= + +Distributed under both the W3C Test Suite License[1] and the W3C 3-clause BSD +License[2]. To contribute to a W3C Test Suite, see the policies and contribution +forms [3] + +1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license +2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license +3. http://www.w3.org/2004/10/27-testcases + +DISCLAIMER + +UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS +AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT +HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, +BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE +SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT +INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE +OR IMPLEMENTATION OF THE CONTENTS THEREOF. + + +W3C Test Suite License +====================== + +This document, Test Suites and other documents that link to this statement are +provided by the copyright holders under the following license: By using and/or +copying this document, or the W3C document from which this statement is linked, +you (the licensee) agree that you have read, understood, and will comply with +the following terms and conditions: + +Permission to copy, and distribute the contents of this document, or the W3C +document from which this statement is linked, in any medium for any purpose and +without fee or royalty is hereby granted, provided that you include the +following on ALL copies of the document, or portions thereof, that you use: + +1 A link or URL to the original W3C document. + +2 The pre-existing copyright notice of the original author, or if it doesn't + exist, a notice (hypertext is preferred, but a textual representation is + permitted) of the form: "Copyright © [$date-of-document] World Wide Web + Consortium, (Massachusetts Institute of Technology, European Research + Consortium for Informatics and Mathematics, Keio University) and others. All + Rights + Reserved. http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html" + +3 If it exists, the STATUS of the W3C document. + +4 When space permits, inclusion of the full text of this NOTICE should be + provided. We request that authorship attribution be provided in any software, + documents, or other items or products that you create pursuant to the + implementation of the contents of this document, or any portion thereof. + + +No right to create modifications or derivatives of W3C documents is granted +pursuant to this license. However, if additional requirements (documented in the +Copyright FAQ) are satisfied, the right to create modifications or derivatives +is sometimes granted by the W3C to individuals complying with those +requirements. + +If a Test Suite distinguishes the test harness (or, framework for navigation) +and the actual tests, permission is given to remove or alter the harness or +navigation if the Test Suite in question allows to do so. The tests themselves +shall NOT be changed in any way. + +The name and trademarks of W3C and other copyright holders may NOT be used in +advertising or publicity pertaining to this document or other documents that +link to this statement without specific, written prior permission. Title to +copyright in this document will at all times remain with copyright +holders. Permission is given to use the trademarked string W3C within claims of +performance concerning W3C Specifications or features described therein, and +there only, if the test suite so authorizes. + +THIS WORK IS PROVIDED BY W3C, MIT, ERCIM, KEIO UNIVERSITY, THE COPYRIGHT HOLDERS +AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT +NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL W3C, MIT, ERCIM, KEIO +UNIVERSITY, THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +W3C 3-clause BSD License +======================== + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1 Redistributions of works must retain the original copyright notice, this list + of conditions and the following disclaimer. + +2 Redistributions in binary form must reproduce the original copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3 Neither the name of the W3C nor the names of its contributors may be used to + endorse or promote products derived from this work without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1.nt new file mode 100644 index 000000000..3aba89e44 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1.ttl new file mode 100644 index 000000000..725a2403b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 'x' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_controls.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_controls.nt new file mode 100644 index 000000000..91c8af144 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_controls.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_controls.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_controls.ttl new file mode 100644 index 000000000..dbf3721c3 Binary files /dev/null and b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_controls.ttl differ diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_punctuation.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_punctuation.nt new file mode 100644 index 000000000..c25d818fc --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_punctuation.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_punctuation.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_punctuation.ttl new file mode 100644 index 000000000..7b1d9e54f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_all_punctuation.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ' !"#$%&():;<=>?@[]^_`{|}~' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_ascii_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_ascii_boundaries.nt new file mode 100644 index 000000000..79ab451a9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\t\u000B\u000C\u000E&([]\u007F" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_ascii_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_ascii_boundaries.ttl new file mode 100644 index 000000000..7d65396fb Binary files /dev/null and b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_ascii_boundaries.ttl differ diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_with_UTF8_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_with_UTF8_boundaries.ttl new file mode 100644 index 000000000..b72eb0400 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL1_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2.ttl new file mode 100644 index 000000000..3aba89e44 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_ascii_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_ascii_boundaries.nt new file mode 100644 index 000000000..270a51e31 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E!#[]\u007F" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_ascii_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_ascii_boundaries.ttl new file mode 100644 index 000000000..90b4cd693 Binary files /dev/null and b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_ascii_boundaries.ttl differ diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_with_UTF8_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_with_UTF8_boundaries.ttl new file mode 100644 index 000000000..0e1616dbf --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL2_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1.ttl new file mode 100644 index 000000000..ab6baa931 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_ascii_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_ascii_boundaries.nt new file mode 100644 index 000000000..a592b4a15 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000&([]\u007F" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_ascii_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_ascii_boundaries.ttl new file mode 100644 index 000000000..f943e2493 Binary files /dev/null and b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_ascii_boundaries.ttl differ diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_1_squote.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_1_squote.nt new file mode 100644 index 000000000..acf7f58f1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_1_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x'y" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_1_squote.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_1_squote.ttl new file mode 100644 index 000000000..3b93046b0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_1_squote.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x'y''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_2_squotes.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_2_squotes.nt new file mode 100644 index 000000000..8ddc52e82 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x''y" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_2_squotes.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_2_squotes.ttl new file mode 100644 index 000000000..1219bad33 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_2_squotes.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x''y''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_UTF8_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_UTF8_boundaries.ttl new file mode 100644 index 000000000..e04b675e3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG1_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2.ttl new file mode 100644 index 000000000..e37bf4a32 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_ascii_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_ascii_boundaries.nt new file mode 100644 index 000000000..28785039e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000!#[]\u007F" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_ascii_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_ascii_boundaries.ttl new file mode 100644 index 000000000..e919865f4 Binary files /dev/null and b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_ascii_boundaries.ttl differ diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_1_squote.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_1_squote.nt new file mode 100644 index 000000000..05a1fd3a2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_1_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"y" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_1_squote.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_1_squote.ttl new file mode 100644 index 000000000..80e389b8e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_1_squote.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x"y""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_2_squotes.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_2_squotes.nt new file mode 100644 index 000000000..3e69dc103 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"\"y" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_2_squotes.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_2_squotes.ttl new file mode 100644 index 000000000..2f14f5b3b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_2_squotes.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x""y""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt new file mode 100644 index 000000000..586e364d5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt @@ -0,0 +1 @@ +<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl new file mode 100644 index 000000000..2206e33bf --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/ns#> . + +:s :p1 """test-\\""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_UTF8_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_UTF8_boundaries.ttl new file mode 100644 index 000000000..644b32d84 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_LONG2_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_with_UTF8_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_with_UTF8_boundaries.nt new file mode 100644 index 000000000..47a2527af --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/LITERAL_with_UTF8_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0080\u07FF\u0800\u0FFF\u1000\uCFFF\uD000\uD7FF\uE000\uFFFD\U00010000\U0003FFFD\U00040000\U000FFFFD\U00100000\U0010FFFD" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/README b/org.hl7.fhir.r4/src/test/resources/turtle/README new file mode 100644 index 000000000..1b049b9c3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/README @@ -0,0 +1,65 @@ +This README is for the W3C RDF Working Group's Turtle test suite. +This test suite contains four kinds of tests: + + 132 Evaluation (rdft:TestTurtleEval) - a pair of an input turtle + file and reference ntriples file. + + 77 Positive syntax (rdft:TestTurtlePositiveSyntax) - an input turtle + file with no syntax errors. + + 78 Negative syntax (rdft:TestTurtleNegativeSyntax) - an input turtle + file with at least one syntax error. + + 4 Negative Evaluation (rdft:TestTurtleNegativeEval) - a pair of an + input turtle file and reference ntriples file. These tests have the + same properties as rdft:TestTurtleNegativeSyntax. + +The manifest.ttl file in this directory lists all of the tests in the +RDF WG's Turtle test suite. Each test is one of the above tests. All +tests have a name (mf:name) and an input (mf:action). The Evaluation +tests have an expected result (mf:result). + +• An implementation passes an Evaluation test if it parses the input + into a graph, parses the expecte result into another graph, and + those two graphs are isomorphic (see + <http://www.w3.org/TR/rdf11-concepts/#graph-isomorphism>). + +• An implementation passes a positive syntax test if it parses the + input. + +• An implementation passes a negative syntax test if it fails to parse + the input. + + +RELATIVE IRI RESOLUTION: + +The home of the test suite is <http://www.w3.org/2013/TurtleTests/>. +Per RFC 3986 section 5.1.3, the base IRI for parsing each file is the +retrieval IRI for that file. For example, the tests turtle-subm-01 and +turtle-subm-27 require relative IRI resolution against a base of +<http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl> and +<http://www.w3.org/2013/TurtleTests/turtle-subm-27.ttl> respectively. + + +CHARACTER ENCODING: + +The Turtle language uses UTF-8 encoding. The following tests include +non-ascii characters: + localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries + localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries * + localName_with_nfc_PN_CHARS_BASE_character_boundaries * + labeled_blank_node_with_PN_CHARS_BASE_character_boundaries * + LITERAL1_with_UTF8_boundaries * + LITERAL_LONG1_with_UTF8_boundaries * + LITERAL2_with_UTF8_boundaries * + LITERAL_LONG2_with_UTF8_boundaries * + +Those marked with a * include characters with codepoints greater than +U+FFFD and are thus expressed as a pair of surrogate characters when +represented in UCS2. + + +See http://www.w3.org/2011/rdf-wg/wiki/Turtle_Test_Suite for more details. + + +Eric Prud'hommeaux <eric+turtle@w3.org> - 11 June 2013. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/SPARQL_style_base.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/SPARQL_style_base.ttl new file mode 100644 index 000000000..d134ea811 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/SPARQL_style_base.ttl @@ -0,0 +1,2 @@ +BASE <http://a.example/> +<s> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/SPARQL_style_prefix.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/SPARQL_style_prefix.ttl new file mode 100644 index 000000000..e7e4a3da6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/SPARQL_style_prefix.ttl @@ -0,0 +1,2 @@ +PREFIX p: <http://a.example/> +p:s <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/anonymous_blank_node_object.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/anonymous_blank_node_object.ttl new file mode 100644 index 000000000..0b2ce436c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/anonymous_blank_node_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> [] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/anonymous_blank_node_subject.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/anonymous_blank_node_subject.ttl new file mode 100644 index 000000000..17b378c2e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/anonymous_blank_node_subject.ttl @@ -0,0 +1 @@ +[] <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_a_predicate.nt b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_a_predicate.nt new file mode 100644 index 000000000..afe142521 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_a_predicate.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_a_predicate.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_a_predicate.ttl new file mode 100644 index 000000000..66fa0d0ce --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_a_predicate.ttl @@ -0,0 +1 @@ +<http://a.example/s> a <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_decimal.nt b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_decimal.nt new file mode 100644 index 000000000..e177a9c6e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_decimal.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_decimal.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_decimal.ttl new file mode 100644 index 000000000..20955d51c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_decimal.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1.0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_double.nt b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_double.nt new file mode 100644 index 000000000..dd8be2fd8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_double.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1E0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_double.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_double.ttl new file mode 100644 index 000000000..7ce25b110 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_double.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1E0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/bareword_integer.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_integer.ttl new file mode 100644 index 000000000..087e71b6c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/bareword_integer.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_object.nt b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_object.nt new file mode 100644 index 000000000..528bd8447 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_object.nt @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://a.example/p2> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_object.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_object.ttl new file mode 100644 index 000000000..aa85a7462 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o2> ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_subject.nt b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_subject.nt new file mode 100644 index 000000000..f0768879e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_subject.nt @@ -0,0 +1,2 @@ +_:b1 <http://a.example/p> <http://a.example/o> . +_:b1 <http://a.example/p2> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_subject.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_subject.ttl new file mode 100644 index 000000000..cb2e52aaa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_as_subject.ttl @@ -0,0 +1 @@ +[ <http://a.example/p> <http://a.example/o> ] <http://a.example/p2> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_containing_collection.nt b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_containing_collection.nt new file mode 100644 index 000000000..e356648e0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_containing_collection.nt @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p1> _:el1 . +_:el1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:el1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_containing_collection.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_containing_collection.ttl new file mode 100644 index 000000000..bf164c83b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_containing_collection.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> (1) ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_with_multiple_triples.nt b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_with_multiple_triples.nt new file mode 100644 index 000000000..8f3fc5070 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_with_multiple_triples.nt @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p1> <http://a.example/o1> . +_:b1 <http://a.example/p2> <http://a.example/o2> . +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_with_multiple_triples.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_with_multiple_triples.ttl new file mode 100644 index 000000000..6153c13d6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/blankNodePropertyList_with_multiple_triples.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> <http://a.example/o1> ; <http://a.example/p2> <http://a.example/o2> ] <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/collection_object.nt b/org.hl7.fhir.r4/src/test/resources/turtle/collection_object.nt new file mode 100644 index 000000000..e017f7458 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/collection_object.nt @@ -0,0 +1,3 @@ +<http://a.example/s> <http://a.example/p> _:el1 . +_:el1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:el1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/collection_object.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/collection_object.ttl new file mode 100644 index 000000000..6af347157 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/collection_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> (1) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/collection_subject.nt b/org.hl7.fhir.r4/src/test/resources/turtle/collection_subject.nt new file mode 100644 index 000000000..21a1e1fde --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/collection_subject.nt @@ -0,0 +1,3 @@ +_:el1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:el1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:el1 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/collection_subject.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/collection_subject.ttl new file mode 100644 index 000000000..00a4c0bc4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/collection_subject.ttl @@ -0,0 +1 @@ +(1) <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_PNAME_NS.nt b/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_PNAME_NS.nt new file mode 100644 index 000000000..a8ca81c51 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_PNAME_NS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_PNAME_NS.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_PNAME_NS.ttl new file mode 100644 index 000000000..c03124c41 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_PNAME_NS.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:#comment +. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_localName.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_localName.ttl new file mode 100644 index 000000000..919f876b5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/comment_following_localName.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:o#comment +. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/default_namespace_IRI.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/default_namespace_IRI.ttl new file mode 100644 index 000000000..f1f83fd58 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/default_namespace_IRI.ttl @@ -0,0 +1,2 @@ +@prefix : <http://a.example/>. +:s <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/double_lower_case_e.nt b/org.hl7.fhir.r4/src/test/resources/turtle/double_lower_case_e.nt new file mode 100644 index 000000000..49a792b90 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/double_lower_case_e.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1e0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/double_lower_case_e.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/double_lower_case_e.ttl new file mode 100644 index 000000000..5f4552bf9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/double_lower_case_e.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1e0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/empty_collection.nt b/org.hl7.fhir.r4/src/test/resources/turtle/empty_collection.nt new file mode 100644 index 000000000..82726a3fa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/empty_collection.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/empty_collection.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/empty_collection.ttl new file mode 100644 index 000000000..02f9cc079 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/empty_collection.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> () . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/first.nt b/org.hl7.fhir.r4/src/test/resources/turtle/first.nt new file mode 100644 index 000000000..8c47b7567 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/first.nt @@ -0,0 +1,7 @@ +<http://a.example/s> <http://a.example/p> _:outerEl1 . +_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:innerEl1 . +_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:outerEl2 . +_:outerEl2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:outerEl2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/first.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/first.ttl new file mode 100644 index 000000000..44f496cb4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/first.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ((1) 2) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_object.nt b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_object.nt new file mode 100644 index 000000000..89e88f630 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_object.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:b1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_object.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_object.ttl new file mode 100644 index 000000000..2645d4eea --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_subject.nt b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_subject.nt new file mode 100644 index 000000000..b48df9a7c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_subject.nt @@ -0,0 +1 @@ +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_subject.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_subject.ttl new file mode 100644 index 000000000..d0c7f4585 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_subject.ttl @@ -0,0 +1 @@ +_:s <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 000000000..50be8d6f5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿豈﷏ﷰ�𐀀󯿽 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_leading_digit.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_leading_digit.ttl new file mode 100644 index 000000000..7244d8060 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_leading_digit.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_leading_underscore.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_leading_underscore.ttl new file mode 100644 index 000000000..15d9ffc83 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_leading_underscore.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:_ . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_non_leading_extras.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_non_leading_extras.ttl new file mode 100644 index 000000000..5ae09b7c9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/labeled_blank_node_with_non_leading_extras.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG.ttl new file mode 100644 index 000000000..2baefe5d1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """chat"""@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG_with_subtag.nt b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG_with_subtag.nt new file mode 100644 index 000000000..629cbf42b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG_with_subtag.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG_with_subtag.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG_with_subtag.ttl new file mode 100644 index 000000000..7fd527c42 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_LONG_with_subtag.ttl @@ -0,0 +1,3 @@ +# Test long literal with lang tag +@prefix : <http://example.org/ex#> . +:a :b """Cheers"""@en-UK . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_non_LONG.nt b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_non_LONG.nt new file mode 100644 index 000000000..1bddb04e6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_non_LONG.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_non_LONG.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_non_LONG.ttl new file mode 100644 index 000000000..1bddb04e6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/langtagged_non_LONG.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/lantag_with_subtag.nt b/org.hl7.fhir.r4/src/test/resources/turtle/lantag_with_subtag.nt new file mode 100644 index 000000000..46c9d53a3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/lantag_with_subtag.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/lantag_with_subtag.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/lantag_with_subtag.ttl new file mode 100644 index 000000000..46c9d53a3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/lantag_with_subtag.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/last.nt b/org.hl7.fhir.r4/src/test/resources/turtle/last.nt new file mode 100644 index 000000000..b7c57e269 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/last.nt @@ -0,0 +1,7 @@ +<http://a.example/s> <http://a.example/p> _:outerEl1 . +_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:outerEl2 . +_:outerEl2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:innerEl1 . +_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:outerEl2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/last.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/last.ttl new file mode 100644 index 000000000..1254c261a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/last.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> (1 (2)) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_false.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_false.nt new file mode 100644 index 000000000..5bbbae843 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_false.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_false.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_false.ttl new file mode 100644 index 000000000..6a32e362c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_false.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> false . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_true.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_true.nt new file mode 100644 index 000000000..054b229f3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_true.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_true.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_true.ttl new file mode 100644 index 000000000..6c5bb7423 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_true.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> true . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_BACKSPACE.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_BACKSPACE.nt new file mode 100644 index 000000000..7dba113b3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_BACKSPACE.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0008" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_BACKSPACE.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_BACKSPACE.ttl new file mode 100644 index 000000000..17b2880f4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_BACKSPACE.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CARRIAGE_RETURN.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CARRIAGE_RETURN.nt new file mode 100644 index 000000000..91b85c89b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CARRIAGE_RETURN.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\r" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CARRIAGE_RETURN.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CARRIAGE_RETURN.ttl new file mode 100644 index 000000000..3cd1d89cc --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CARRIAGE_RETURN.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ''' ''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CHARACTER_TABULATION.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CHARACTER_TABULATION.nt new file mode 100644 index 000000000..a6a9d9f00 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CHARACTER_TABULATION.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\t" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CHARACTER_TABULATION.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CHARACTER_TABULATION.ttl new file mode 100644 index 000000000..37fbd9d19 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_CHARACTER_TABULATION.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ' ' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_FORM_FEED.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_FORM_FEED.nt new file mode 100644 index 000000000..2a4490b37 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_FORM_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u000C" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_FORM_FEED.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_FORM_FEED.ttl new file mode 100644 index 000000000..76d6ee774 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_FORM_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ' ' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_LINE_FEED.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_LINE_FEED.nt new file mode 100644 index 000000000..462f97ace --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_LINE_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\n" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_LINE_FEED.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_LINE_FEED.ttl new file mode 100644 index 000000000..50cc8a8b7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_LINE_FEED.ttl @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> ''' +''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_REVERSE_SOLIDUS.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_REVERSE_SOLIDUS.nt new file mode 100644 index 000000000..ebc846edc --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_REVERSE_SOLIDUS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\\" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_REVERSE_SOLIDUS.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_REVERSE_SOLIDUS.ttl new file mode 100644 index 000000000..380a3d04c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_REVERSE_SOLIDUS.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\\' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_BACKSPACE.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_BACKSPACE.ttl new file mode 100644 index 000000000..5284b9b69 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_BACKSPACE.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\b' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_CARRIAGE_RETURN.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_CARRIAGE_RETURN.ttl new file mode 100644 index 000000000..a28e7c0bb --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_CARRIAGE_RETURN.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\r' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_CHARACTER_TABULATION.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_CHARACTER_TABULATION.ttl new file mode 100644 index 000000000..67966f783 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_CHARACTER_TABULATION.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\t' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_FORM_FEED.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_FORM_FEED.ttl new file mode 100644 index 000000000..21acace99 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_FORM_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\f' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_LINE_FEED.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_LINE_FEED.ttl new file mode 100644 index 000000000..b53f49ec7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_escaped_LINE_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\n' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape4.nt b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape4.nt new file mode 100644 index 000000000..0b35a89a1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape4.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "o" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape4.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape4.ttl new file mode 100644 index 000000000..2b4e0175d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape4.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\u006F' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape8.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape8.ttl new file mode 100644 index 000000000..8d0e4ef29 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/literal_with_numeric_escape8.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\U0000006F' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 000000000..d7470f94d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF\U000E01EF> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 000000000..c532e3d00 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾‌‍⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ￯𐀀󠇯 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 000000000..78ef10861 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 000000000..15b23dd86 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾‌‍⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ￯ . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_digit.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_digit.nt new file mode 100644 index 000000000..a9e101e5e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_digit.nt @@ -0,0 +1 @@ +<http://a.example/0> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_digit.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_digit.ttl new file mode 100644 index 000000000..65da24990 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_digit.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:0 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_underscore.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_underscore.nt new file mode 100644 index 000000000..e042a7b9a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_underscore.nt @@ -0,0 +1 @@ +<http://a.example/_> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_underscore.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_underscore.ttl new file mode 100644 index 000000000..762ace986 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_leading_underscore.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:_ <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 000000000..0dcef9165 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u037F\u1FFF\u200C\u200D\u2070\u218F\u2C00\u2FEF\u3001\uD7FF\uFA0E\uFDCF\uFDF0\uFFEF\U000EFFFD> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 000000000..0922d95d3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿﨎﷏ﷰ￯𐀀󯿽 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_non_leading_extras.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_non_leading_extras.nt new file mode 100644 index 000000000..edd03f72f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_non_leading_extras.nt @@ -0,0 +1 @@ +<http://a.example/a\u00b7\u0300\u036f\u203f\u002e\u2040> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_non_leading_extras.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_non_leading_extras.ttl new file mode 100644 index 000000000..db25a8a66 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localName_with_non_leading_extras.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:a·̀ͯ‿.⁀ <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localname_with_COLON.nt b/org.hl7.fhir.r4/src/test/resources/turtle/localname_with_COLON.nt new file mode 100644 index 000000000..eb966ca30 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localname_with_COLON.nt @@ -0,0 +1 @@ +<http://a.example/s:> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/localname_with_COLON.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/localname_with_COLON.ttl new file mode 100644 index 000000000..1d45f20f7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/localname_with_COLON.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s: <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/negative_numeric.nt b/org.hl7.fhir.r4/src/test/resources/turtle/negative_numeric.nt new file mode 100644 index 000000000..4baf628d9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/negative_numeric.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/negative_numeric.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/negative_numeric.ttl new file mode 100644 index 000000000..a6a7f57b6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/negative_numeric.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> -1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/nested_blankNodePropertyLists.nt b/org.hl7.fhir.r4/src/test/resources/turtle/nested_blankNodePropertyLists.nt new file mode 100644 index 000000000..5284c0072 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/nested_blankNodePropertyLists.nt @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p1> _:b2 . +_:b2 <http://a.example/p2> <http://a.example/o2> . +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/nested_blankNodePropertyLists.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/nested_blankNodePropertyLists.ttl new file mode 100644 index 000000000..a3e4681c1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/nested_blankNodePropertyLists.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> [ <http://a.example/p2> <http://a.example/o2> ] ; <http://a.example/p> <http://a.example/o> ]. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/nested_collection.nt b/org.hl7.fhir.r4/src/test/resources/turtle/nested_collection.nt new file mode 100644 index 000000000..d2b7ea70a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/nested_collection.nt @@ -0,0 +1,5 @@ +<http://a.example/s> <http://a.example/p> _:outerEl1 . +_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:innerEl1 . +_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/nested_collection.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/nested_collection.ttl new file mode 100644 index 000000000..944e7c6b0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/nested_collection.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ((1)) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_PNAME_NS.nt b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_PNAME_NS.nt new file mode 100644 index 000000000..82d9629a4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_PNAME_NS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/#numbersign> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_PNAME_NS.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_PNAME_NS.ttl new file mode 100644 index 000000000..2003fa4d7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_PNAME_NS.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> <http://a.example/p> p:\#numbersign +. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_localName.nt b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_localName.nt new file mode 100644 index 000000000..5ae57b8d6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_localName.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o#numbersign> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_localName.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_localName.ttl new file mode 100644 index 000000000..a0e39ecdd --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/number_sign_following_localName.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:o\#numbersign +. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/numeric_with_leading_0.nt b/org.hl7.fhir.r4/src/test/resources/turtle/numeric_with_leading_0.nt new file mode 100644 index 000000000..1df5c4723 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/numeric_with_leading_0.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "01"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/numeric_with_leading_0.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/numeric_with_leading_0.ttl new file mode 100644 index 000000000..a5eac2094 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/numeric_with_leading_0.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 01 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/objectList_with_two_objects.nt b/org.hl7.fhir.r4/src/test/resources/turtle/objectList_with_two_objects.nt new file mode 100644 index 000000000..7f8e9c0f9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/objectList_with_two_objects.nt @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/objectList_with_two_objects.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/objectList_with_two_objects.ttl new file mode 100644 index 000000000..b12f02d14 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/objectList_with_two_objects.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o1>, <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/old_style_base.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/old_style_base.ttl new file mode 100644 index 000000000..f0f4c03cf --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/old_style_base.ttl @@ -0,0 +1,2 @@ +@base <http://a.example/>. +<s> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/old_style_prefix.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/old_style_prefix.ttl new file mode 100644 index 000000000..595956726 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/old_style_prefix.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/percent_escaped_localName.nt b/org.hl7.fhir.r4/src/test/resources/turtle/percent_escaped_localName.nt new file mode 100644 index 000000000..e0af4b621 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/percent_escaped_localName.nt @@ -0,0 +1 @@ +<http://a.example/%25> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/percent_escaped_localName.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/percent_escaped_localName.ttl new file mode 100644 index 000000000..0564ccabc --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/percent_escaped_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:%25 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/positive_numeric.nt b/org.hl7.fhir.r4/src/test/resources/turtle/positive_numeric.nt new file mode 100644 index 000000000..96e6086aa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/positive_numeric.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "+1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/positive_numeric.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/positive_numeric.ttl new file mode 100644 index 000000000..606691d9d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/positive_numeric.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> +1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/predicateObjectList_with_two_objectLists.nt b/org.hl7.fhir.r4/src/test/resources/turtle/predicateObjectList_with_two_objectLists.nt new file mode 100644 index 000000000..274182c74 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/predicateObjectList_with_two_objectLists.nt @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p2> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/predicateObjectList_with_two_objectLists.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/predicateObjectList_with_two_objectLists.ttl new file mode 100644 index 000000000..337b132ff --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/predicateObjectList_with_two_objectLists.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>; <http://a.example/p2> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefix_only_IRI.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_only_IRI.ttl new file mode 100644 index 000000000..9ff666039 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_only_IRI.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/s>. +p: <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefix_reassigned_and_used.nt b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_reassigned_and_used.nt new file mode 100644 index 000000000..68bc9efec --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_reassigned_and_used.nt @@ -0,0 +1 @@ +<http://b.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefix_reassigned_and_used.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_reassigned_and_used.ttl new file mode 100644 index 000000000..1f9485976 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_reassigned_and_used.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +@prefix p: <http://b.example/>. +p:s <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefix_with_PN_CHARS_BASE_character_boundaries.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_with_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 000000000..bc436bd20 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_with_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿豈﷏ﷰ�𐀀󯿽: <http://a.example/> . +<http://a.example/s> <http://a.example/p> AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿豈﷏ﷰ�𐀀󯿽:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefix_with_non_leading_extras.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_with_non_leading_extras.ttl new file mode 100644 index 000000000..193460a81 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefix_with_non_leading_extras.ttl @@ -0,0 +1,2 @@ +@prefix a·̀ͯ‿.⁀: <http://a.example/>. +a·̀ͯ‿.⁀:s <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_IRI_object.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_IRI_object.ttl new file mode 100644 index 000000000..c2d503624 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_IRI_object.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> <http://a.example/p> p:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_IRI_predicate.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_IRI_predicate.ttl new file mode 100644 index 000000000..2c1e5cc78 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_IRI_predicate.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> p:p <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_name_datatype.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_name_datatype.ttl new file mode 100644 index 000000000..4a526073a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/prefixed_name_datatype.ttl @@ -0,0 +1,2 @@ +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +<http://a.example/s> <http://a.example/p> "1"^^xsd:integer . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_at_end.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_at_end.ttl new file mode 100644 index 000000000..8a4d9356d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_at_end.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_not_at_end.nt b/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_not_at_end.nt new file mode 100644 index 000000000..9ac6005f9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_not_at_end.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_not_at_end.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_not_at_end.ttl new file mode 100644 index 000000000..3c8144f3e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/repeated_semis_not_at_end.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/reserved_escaped_localName.nt b/org.hl7.fhir.r4/src/test/resources/turtle/reserved_escaped_localName.nt new file mode 100644 index 000000000..1ee4f32e8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/reserved_escaped_localName.nt @@ -0,0 +1 @@ +<http://a.example/_~.-!$&'()*+,;=/?#@%00> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/reserved_escaped_localName.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/reserved_escaped_localName.ttl new file mode 100644 index 000000000..ae97f8afe --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/reserved_escaped_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:\_\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\%00 <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/sole_blankNodePropertyList.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/sole_blankNodePropertyList.ttl new file mode 100644 index 000000000..5cc300f33 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/sole_blankNodePropertyList.ttl @@ -0,0 +1 @@ +[ <http://a.example/p> <http://a.example/o> ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-01.ttl new file mode 100644 index 000000000..c9c458e84 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-01.ttl @@ -0,0 +1,2 @@ +# Bad IRI : good escape, bad charcater +<http://www.w3.org/2013/TurtleTests/\u0020> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-02.ttl new file mode 100644 index 000000000..f2be6ea54 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-02.ttl @@ -0,0 +1,2 @@ +# Bad IRI : hex 3C is < +<http://www.w3.org/2013/TurtleTests/\u003C> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-03.ttl new file mode 100644 index 000000000..1aec7ff98 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-03.ttl @@ -0,0 +1,2 @@ +# Bad IRI : hex 3E is > +<http://www.w3.org/2013/TurtleTests/\u003E> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-04.ttl new file mode 100644 index 000000000..4b7601b3c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-bad-04.ttl @@ -0,0 +1,2 @@ +# Bad IRI +<http://www.w3.org/2013/TurtleTests/{abc}> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-01.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-01.nt new file mode 100644 index 000000000..2e2d5baf0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-01.nt @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-01.ttl new file mode 100644 index 000000000..2e2d5baf0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-02.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-02.nt new file mode 100644 index 000000000..6cdc856a1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-02.nt @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p1> <http://www.w3.org/2013/TurtleTests/o1> . +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p2> <http://www.w3.org/2013/TurtleTests/o2> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-02.ttl new file mode 100644 index 000000000..45b9ea058 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-eval-struct-02.ttl @@ -0,0 +1,4 @@ +<http://www.w3.org/2013/TurtleTests/s> + <http://www.w3.org/2013/TurtleTests/p1> <http://www.w3.org/2013/TurtleTests/o1> ; + <http://www.w3.org/2013/TurtleTests/p2> <http://www.w3.org/2013/TurtleTests/o2> ; + . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-01.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-01.nt new file mode 100644 index 000000000..1f9a2622f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-01.nt @@ -0,0 +1 @@ +_:genid1 <http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl#x> <http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl#y> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-01.ttl new file mode 100644 index 000000000..78da35e60 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-01.ttl @@ -0,0 +1,2 @@ +@prefix : <#> . +[] :x :y . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-02.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-02.nt new file mode 100644 index 000000000..5ccb5bd20 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-02.nt @@ -0,0 +1,3 @@ +<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> . +<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> . +<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-02.ttl new file mode 100644 index 000000000..9070d2c41 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-02.ttl @@ -0,0 +1,7 @@ +# Test @prefix and qnames +@prefix : <http://example.org/base1#> . +@prefix a: <http://example.org/base2#> . +@prefix b: <http://example.org/base3#> . +:a :b :c . +a:a a:b a:c . +:a a:a b:a . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-03.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-03.nt new file mode 100644 index 000000000..99732ab37 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-03.nt @@ -0,0 +1,3 @@ +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-03.ttl new file mode 100644 index 000000000..a623f3c17 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-03.ttl @@ -0,0 +1,5 @@ +# Test , operator +@prefix : <http://example.org/base#> . +:a :b :c, + :d, + :e . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-04.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-04.nt new file mode 100644 index 000000000..d6ce9e8fe --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-04.nt @@ -0,0 +1,3 @@ +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> . +<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> . +<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-04.ttl new file mode 100644 index 000000000..9179fa508 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-04.ttl @@ -0,0 +1,5 @@ +# Test ; operator +@prefix : <http://example.org/base#> . +:a :b :c ; + :d :e ; + :f :g . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-05.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-05.nt new file mode 100644 index 000000000..414e4b84b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-05.nt @@ -0,0 +1,2 @@ +_:genid1 <http://example.org/base#a> <http://example.org/base#b> . +<http://example.org/base#c> <http://example.org/base#d> _:genid2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-05.ttl new file mode 100644 index 000000000..c51814793 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-05.ttl @@ -0,0 +1,4 @@ +# Test empty [] operator; not allowed as predicate +@prefix : <http://example.org/base#> . +[] :a :b . +:c :d [] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-06.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-06.nt new file mode 100644 index 000000000..6925d40d3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-06.nt @@ -0,0 +1,4 @@ +_:genid1 <http://example.org/base#a> <http://example.org/base#b> . +_:genid1 <http://example.org/base#c> <http://example.org/base#d> . +_:genid2 <http://example.org/base#g> <http://example.org/base#h> . +<http://example.org/base#e> <http://example.org/base#f> _:genid2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-06.ttl new file mode 100644 index 000000000..adcbcabd0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-06.ttl @@ -0,0 +1,4 @@ +# Test non empty [] operator; not allowed as predicate +@prefix : <http://example.org/base#> . +[ :a :b ] :c :d . +:e :f [ :g :h ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-07.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-07.nt new file mode 100644 index 000000000..49961ea62 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-07.nt @@ -0,0 +1 @@ +<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-07.ttl new file mode 100644 index 000000000..9c1005cc9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-07.ttl @@ -0,0 +1,3 @@ +# 'a' only allowed as a predicate +@prefix : <http://example.org/base#> . +:a a :b . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-08.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-08.nt new file mode 100644 index 000000000..7ab68063a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-08.nt @@ -0,0 +1,5 @@ +_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana" . +_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" . +_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:genid1 . +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:genid2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-08.ttl new file mode 100644 index 000000000..84559403b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-08.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/stuff/1.0/> . +:a :b ( "apple" "banana" ) . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-09.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-09.nt new file mode 100644 index 000000000..a77939cdd --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-09.nt @@ -0,0 +1 @@ +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-09.ttl new file mode 100644 index 000000000..adce0a20f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-09.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/stuff/1.0/> . +:a :b ( ) . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-10.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-10.nt new file mode 100644 index 000000000..5fdb90991 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-10.nt @@ -0,0 +1,4 @@ +_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> . +_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid1 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent . +_:genid1 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-10.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-10.ttl new file mode 100644 index 000000000..0afe1b0ae --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-10.ttl @@ -0,0 +1,10 @@ +# Test integer datatyped literals using an OWL cardinality constraint +@prefix owl: <http://www.w3.org/2002/07/owl#> . + +# based on examples in the OWL Reference + +_:hasParent a owl:ObjectProperty . + +[] a owl:Restriction ; + owl:onProperty _:hasParent ; + owl:maxCardinality 2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-11.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-11.nt new file mode 100644 index 000000000..ff88aa6f4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-11.nt @@ -0,0 +1,5 @@ +<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-11.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-11.ttl new file mode 100644 index 000000000..5d36360ea --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-11.ttl @@ -0,0 +1,5 @@ +<http://example.org/res1> <http://example.org/prop1> 000000 . +<http://example.org/res2> <http://example.org/prop2> 0 . +<http://example.org/res3> <http://example.org/prop3> 000001 . +<http://example.org/res4> <http://example.org/prop4> 2 . +<http://example.org/res5> <http://example.org/prop5> 4 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-12.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-12.nt new file mode 100644 index 000000000..f936a5b66 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-12.nt @@ -0,0 +1,4 @@ +<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" . +<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" . +<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" . +<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-12.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-12.ttl new file mode 100644 index 000000000..3de1a43fa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-12.ttl @@ -0,0 +1,10 @@ +# Tests for - and _ in names, qnames +@prefix ex1: <http://example.org/ex1#> . +@prefix ex-2: <http://example.org/ex2#> . +@prefix ex3_: <http://example.org/ex3#> . +@prefix ex4-: <http://example.org/ex4#> . + +ex1:foo-bar ex1:foo_bar "a" . +ex-2:foo-bar ex-2:foo_bar "b" . +ex3_:foo-bar ex3_:foo_bar "c" . +ex4-:foo-bar ex4-:foo_bar "d" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-13.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-13.nt new file mode 100644 index 000000000..67404a59a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-13.nt @@ -0,0 +1,4 @@ +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" . +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" . +<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" . +<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-13.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-13.ttl new file mode 100644 index 000000000..1fed9f5e0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-13.ttl @@ -0,0 +1,9 @@ +# Tests for rdf:_<numbers> and other qnames starting with _ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix ex: <http://example.org/ex#> . +@prefix : <http://example.org/myprop#> . + +ex:foo rdf:_1 "1" . +ex:foo rdf:_2 "2" . +ex:foo :_abc "def" . +ex:foo :_345 "678" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-14.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-14.nt new file mode 100644 index 000000000..9feb5ad00 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-14.nt @@ -0,0 +1,2 @@ +_:genid1 <http://example.org/ron> _:genid2 . +<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-14.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-14.ttl new file mode 100644 index 000000000..a8be95beb --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-14.ttl @@ -0,0 +1,7 @@ +# Test for : allowed +@prefix : <http://example.org/ron> . + +[] : [] . + +: : : . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-15.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-15.nt new file mode 100644 index 000000000..466edbb2d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-15.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-15.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-15.ttl new file mode 100644 index 000000000..86c453bd8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-15.ttl @@ -0,0 +1,6 @@ +# Test long literal +@prefix : <http://example.org/ex#> . +:a :b """a long + literal +with +newlines""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-16.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-16.nt new file mode 100644 index 000000000..7726bbfc3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-16.nt @@ -0,0 +1,2 @@ +<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00012451long\t\nliteral\uABCD\n" . +<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00012451another\n\none\n" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-16.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-16.ttl new file mode 100644 index 000000000..f5482d4ac --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-16.ttl @@ -0,0 +1,20 @@ +@prefix : <http://example.org/foo#> . + +## \U00015678 is a not a legal codepoint +## :a :b """\nthis \ris a \U00015678long\t +## literal\uABCD +## """ . +## +## :d :e """\tThis \uABCDis\r \U00015678another\n +## one +## """ . + +# \U00015678 is a not a legal codepoint +# \U00012451 in Cuneiform numeric ban 3 +:a :b """\nthis \ris a \U00012451long\t +literal\uABCD +""" . + +:d :e """\tThis \uABCDis\r \U00012451another\n +one +""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-17.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-17.nt new file mode 100644 index 000000000..2e2dbe404 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-17.nt @@ -0,0 +1 @@ +<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-17.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-17.ttl new file mode 100644 index 000000000..9de0c07b2 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-17.ttl @@ -0,0 +1,4 @@ +@prefix : <http://example.org/#> . + +:a :b 1.0 . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-18.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-18.nt new file mode 100644 index 000000000..fff2da56b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-18.nt @@ -0,0 +1,2 @@ +<http://example.org/#a> <http://example.org/#b> "" . +<http://example.org/#c> <http://example.org/#d> "" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-18.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-18.ttl new file mode 100644 index 000000000..37a9a4f33 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-18.ttl @@ -0,0 +1,6 @@ +@prefix : <http://example.org/#> . + +:a :b "" . + +:c :d """""" . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-19.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-19.nt new file mode 100644 index 000000000..d5dca6907 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-19.nt @@ -0,0 +1,3 @@ +<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-19.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-19.ttl new file mode 100644 index 000000000..a8e8dc15a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-19.ttl @@ -0,0 +1,4 @@ +@prefix : <http://example.org#> . +:a :b 1.0 . +:c :d 1 . +:e :f 1.0e0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-20.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-20.nt new file mode 100644 index 000000000..3d0f970e8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-20.nt @@ -0,0 +1,3 @@ +<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-20.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-20.ttl new file mode 100644 index 000000000..9b1a725aa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-20.ttl @@ -0,0 +1,4 @@ +@prefix : <http://example.org#> . +:a :b -1.0 . +:c :d -1 . +:e :f -1.0e0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-21.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-21.nt new file mode 100644 index 000000000..fde31312e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-21.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-21.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-21.ttl new file mode 100644 index 000000000..9f5360af8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-21.ttl @@ -0,0 +1,3 @@ +# Test long literal +@prefix : <http://example.org/ex#> . +:a :b """John said: "Hello World!\"""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-22.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-22.nt new file mode 100644 index 000000000..5a70bff19 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-22.nt @@ -0,0 +1,2 @@ +<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . +<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-22.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-22.ttl new file mode 100644 index 000000000..25f3b7579 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-22.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org#> . +:a :b true . +:c :d false . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-23.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-23.nt new file mode 100644 index 000000000..1a38415fe --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-23.nt @@ -0,0 +1,7 @@ +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> . +<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> . +<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> . +<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> . +<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-23.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-23.ttl new file mode 100644 index 000000000..310349da1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-23.ttl @@ -0,0 +1,14 @@ +# comment test +@prefix : <http://example.org/#> . +:a :b :c . # end of line comment +:d # ignore me + :e # and me + :f # and me + . +:g :h #ignore me + :i, # and me + :j . # and me + +:k :l :m ; #ignore me + :n :o ; # and me + :p :q . # and me diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-24.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-24.nt new file mode 100644 index 000000000..ad105cf48 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-24.nt @@ -0,0 +1 @@ +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-24.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-24.ttl new file mode 100644 index 000000000..0667c6b4a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-24.ttl @@ -0,0 +1,4 @@ +# comment line with no final newline test +@prefix : <http://example.org/#> . +:a :b :c . +#foo diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-25.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-25.nt new file mode 100644 index 000000000..7da0635ba --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-25.nt @@ -0,0 +1 @@ +<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-25.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-25.ttl new file mode 100644 index 000000000..569023c8a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-25.ttl @@ -0,0 +1,5 @@ +@prefix foo: <http://example.org/foo#> . +@prefix foo: <http://example.org/bar#> . + +foo:blah foo:blah foo:blah . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-26.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-26.nt new file mode 100644 index 000000000..7357dd40c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-26.nt @@ -0,0 +1,22 @@ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-26.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-26.ttl new file mode 100644 index 000000000..7357dd40c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-26.ttl @@ -0,0 +1,22 @@ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-27.nt b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-27.nt new file mode 100644 index 000000000..f9ebfef18 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-27.nt @@ -0,0 +1,5 @@ +<http://www.w3.org/2013/TurtleTests/a1> <http://www.w3.org/2013/TurtleTests/b1> <http://www.w3.org/2013/TurtleTests/c1> . +<http://example.org/ns/a2> <http://example.org/ns/b2> <http://example.org/ns/c2> . +<http://example.org/ns/foo/a3> <http://example.org/ns/foo/b3> <http://example.org/ns/foo/c3> . +<http://example.org/ns/foo/bar#a4> <http://example.org/ns/foo/bar#b4> <http://example.org/ns/foo/bar#c4> . +<http://example.org/ns2#a5> <http://example.org/ns2#b5> <http://example.org/ns2#c5> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-27.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-27.ttl new file mode 100644 index 000000000..ad39c0246 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-subm-27.ttl @@ -0,0 +1,12 @@ +# In-scope base URI is <http://www.w3.org/2013/TurtleTests/turtle-subm-27.ttl> at this point +<a1> <b1> <c1> . +@base <http://example.org/ns/> . +# In-scope base URI is http://example.org/ns/ at this point +<a2> <http://example.org/ns/b2> <c2> . +@base <foo/> . +# In-scope base URI is http://example.org/ns/foo/ at this point +<a3> <b3> <c3> . +@prefix : <bar#> . +:a4 :b4 :c4 . +@prefix : <http://example.org/ns2#> . +:a5 :b5 :c5 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl new file mode 100644 index 000000000..561804173 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl @@ -0,0 +1 @@ +<http://example.org/resource> <http://example.org#pred> "value"@en^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-01.ttl new file mode 100644 index 000000000..7b0412f8c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-01.ttl @@ -0,0 +1,2 @@ +# @base without URI. +@base . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-02.ttl new file mode 100644 index 000000000..8893b652b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-02.ttl @@ -0,0 +1,2 @@ +# @base in wrong case. +@BASE <http://www.w3.org/2013/TurtleTests/> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-03.ttl new file mode 100644 index 000000000..013f9f2b0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-base-03.ttl @@ -0,0 +1,3 @@ +# FULL STOP used after SPARQL BASE +BASE <http://www.w3.org/2013/TurtleTests/> . +<s> <p> <o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-blank-label-dot-end.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-blank-label-dot-end.ttl new file mode 100644 index 000000000..58c0aa20c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-blank-label-dot-end.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +_:b1. :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-01.ttl new file mode 100644 index 000000000..6daa1b58c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-01.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\zb" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-02.ttl new file mode 100644 index 000000000..62457ebf5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-02.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "\uWXYZ" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-03.ttl new file mode 100644 index 000000000..a9b9f1c03 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-03.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "\U0000WXYZ" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-04.ttl new file mode 100644 index 000000000..a9b9f1c03 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-esc-04.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "\U0000WXYZ" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-01.ttl new file mode 100644 index 000000000..f85448d69 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s A :C . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-02.ttl new file mode 100644 index 000000000..d25986cd9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +a :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-03.ttl new file mode 100644 index 000000000..3d54b9292 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p a . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-04.ttl new file mode 100644 index 000000000..229491edf --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +true :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-05.ttl new file mode 100644 index 000000000..c2420af5a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-kw-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s true :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-lang-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-lang-01.ttl new file mode 100644 index 000000000..80685aaee --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-lang-01.ttl @@ -0,0 +1,2 @@ +# Bad lang tag +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-dash-start.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-dash-start.ttl new file mode 100644 index 000000000..9af36a1e7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-dash-start.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :-o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-escape-start.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-escape-start.ttl new file mode 100644 index 000000000..9c7a4352c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-escape-start.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :%2o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-escape.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-escape.ttl new file mode 100644 index 000000000..212d43a05 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ln-escape.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :o%2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-missing-ns-dot-end.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-missing-ns-dot-end.ttl new file mode 100644 index 000000000..d06f4e697 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-missing-ns-dot-end.ttl @@ -0,0 +1 @@ +valid:s valid:p invalid.:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-missing-ns-dot-start.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-missing-ns-dot-start.ttl new file mode 100644 index 000000000..23514bcc7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-missing-ns-dot-start.ttl @@ -0,0 +1 @@ +.undefined:s .undefined:p .undefined:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-01.ttl new file mode 100644 index 000000000..f7b19b729 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-01.ttl @@ -0,0 +1,5 @@ +# {} fomulae not in Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +{ :a :q :c . } :p :z . + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-02.ttl new file mode 100644 index 000000000..e834f15ff --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-02.ttl @@ -0,0 +1,4 @@ +# = is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:a = :b . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-03.ttl new file mode 100644 index 000000000..ad5d6ad4f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-03.ttl @@ -0,0 +1,7 @@ +# N3 paths +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix ns: <http://www.w3.org/2013/TurtleTests/p#> . + +:x. + ns:p. + ns:q :p :z . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-04.ttl new file mode 100644 index 000000000..895f9ec6f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-04.ttl @@ -0,0 +1,5 @@ +# N3 paths +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix ns: <http://www.w3.org/2013/TurtleTests/p#> . + +:x^ns:p :p :z . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-05.ttl new file mode 100644 index 000000000..de879b156 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-05.ttl @@ -0,0 +1,4 @@ +# N3 is...of +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:z is :p of :x . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-06.ttl new file mode 100644 index 000000000..56610f67e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-06.ttl @@ -0,0 +1,4 @@ +# = is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:a.:b.:c . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-07.ttl new file mode 100644 index 000000000..419f7cada --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-07.ttl @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords a . +x a Item . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-08.ttl new file mode 100644 index 000000000..419f7cada --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-08.ttl @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords a . +x a Item . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-09.ttl new file mode 100644 index 000000000..f093b5882 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-09.ttl @@ -0,0 +1,3 @@ +# => is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s => :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-10.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-10.ttl new file mode 100644 index 000000000..974252f07 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-10.ttl @@ -0,0 +1,3 @@ +# <= is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s <= :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-11.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-11.ttl new file mode 100644 index 000000000..b74d74a3d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-11.ttl @@ -0,0 +1,3 @@ +# @forSome is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@forSome :x . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-12.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-12.ttl new file mode 100644 index 000000000..dc2c5b033 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-12.ttl @@ -0,0 +1,3 @@ +# @forAll is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@forAll :x . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-13.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-13.ttl new file mode 100644 index 000000000..5f719a249 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-n3-extras-13.ttl @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords . +x @a Item . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ns-dot-end.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ns-dot-end.ttl new file mode 100644 index 000000000..fa67031e1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ns-dot-end.ttl @@ -0,0 +1,2 @@ +@prefix eg. : <http://www.w3.org/2013/TurtleTests/> . +eg.:s eg.:p eg.:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ns-dot-start.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ns-dot-start.ttl new file mode 100644 index 000000000..e09d59549 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-ns-dot-start.ttl @@ -0,0 +1,2 @@ +@prefix .eg : <http://www.w3.org/2013/TurtleTests/> . +.eg:s .eg:p .eg:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-01.ttl new file mode 100644 index 000000000..cb4730cb4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 123.abc . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-02.ttl new file mode 100644 index 000000000..1c8cbb256 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-02.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 123e . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-03.ttl new file mode 100644 index 000000000..7c8fa2cff --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-03.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 123abc . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-04.ttl new file mode 100644 index 000000000..ad8e0cfd0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-04.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 0x123 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-05.ttl new file mode 100644 index 000000000..2ee461a05 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-num-05.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> +-1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-number-dot-in-anon.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-number-dot-in-anon.ttl new file mode 100644 index 000000000..779cbece4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-number-dot-in-anon.ttl @@ -0,0 +1,6 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:s + :p [ + :p1 27. + ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-01.ttl new file mode 100644 index 000000000..5f3098daa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-01.ttl @@ -0,0 +1,3 @@ +# ~ must be escaped. +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:a~b :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-02.ttl new file mode 100644 index 000000000..fb30823c3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-02.ttl @@ -0,0 +1,3 @@ +# Bad %-sequence +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:a%2 :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-03.ttl new file mode 100644 index 000000000..b9af59e51 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-pname-03.ttl @@ -0,0 +1,3 @@ +# No \u (x39 is "9") +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:a\u0039 :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-01.ttl new file mode 100644 index 000000000..b1b80df19 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-01.ttl @@ -0,0 +1,2 @@ +# No prefix +:s <http://www.w3.org/2013/TurtleTests/p> "x" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-02.ttl new file mode 100644 index 000000000..6e7269f23 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-02.ttl @@ -0,0 +1,3 @@ +# No prefix +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +<http://www.w3.org/2013/TurtleTests/s> rdf:type :C . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-03.ttl new file mode 100644 index 000000000..1ab01e7be --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-03.ttl @@ -0,0 +1,2 @@ +# @prefix without URI. +@prefix ex: . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-04.ttl new file mode 100644 index 000000000..5f338f338 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-04.ttl @@ -0,0 +1,2 @@ +# @prefix without prefix name . +@prefix <http://www.w3.org/2013/TurtleTests/> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-05.ttl new file mode 100644 index 000000000..efb86c595 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-prefix-05.ttl @@ -0,0 +1,2 @@ +# @prefix without : +@prefix x <http://www.w3.org/2013/TurtleTests/> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-01.ttl new file mode 100644 index 000000000..ef62a6c0c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p "abc' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-02.ttl new file mode 100644 index 000000000..2335d5293 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p 'abc" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-03.ttl new file mode 100644 index 000000000..8a9e7ffe1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p '''abc' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-04.ttl new file mode 100644 index 000000000..9911defec --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p """abc''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-05.ttl new file mode 100644 index 000000000..f5de7403b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-05.ttl @@ -0,0 +1,4 @@ +# Long literal with missing end +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p """abc +def diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-06.ttl new file mode 100644 index 000000000..6bcbc9368 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-06.ttl @@ -0,0 +1,3 @@ +# Long literal with 4" +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p """abc""""@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-07.ttl new file mode 100644 index 000000000..534614d43 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-string-07.ttl @@ -0,0 +1,3 @@ +# Long literal with 4' +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p '''abc''''@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-01.ttl new file mode 100644 index 000000000..7b8b8529e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-01.ttl @@ -0,0 +1,2 @@ +# Turtle is not TriG +{ <http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> } diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-02.ttl new file mode 100644 index 000000000..cb86b9dd1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-02.ttl @@ -0,0 +1,2 @@ +# Turtle is not N3 +<http://www.w3.org/2013/TurtleTests/s> = <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-03.ttl new file mode 100644 index 000000000..98d9c7ec8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-03.ttl @@ -0,0 +1,2 @@ +# Turtle is not NQuads +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> <http://www.w3.org/2013/TurtleTests/g> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-04.ttl new file mode 100644 index 000000000..40cd7b71f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-04.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow literals-as-subjects +"hello" <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-05.ttl new file mode 100644 index 000000000..e1a3afbcc --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-05.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow literals-as-predicates +<http://www.w3.org/2013/TurtleTests/s> "hello" <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-06.ttl new file mode 100644 index 000000000..2680229af --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-06.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow bnodes-as-predicates +<http://www.w3.org/2013/TurtleTests/s> [] <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-07.ttl new file mode 100644 index 000000000..5f74a8b75 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-07.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow bnodes-as-predicates +<http://www.w3.org/2013/TurtleTests/s> _:p <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-08.ttl new file mode 100644 index 000000000..86aaf4bee --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-08.ttl @@ -0,0 +1,2 @@ +# No DOT +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-09.ttl new file mode 100644 index 000000000..92aae4c2d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-09.ttl @@ -0,0 +1,2 @@ +# Too many DOT +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-10.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-10.ttl new file mode 100644 index 000000000..eb893b247 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-10.ttl @@ -0,0 +1,3 @@ +# Too many DOT +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . . +<http://www.w3.org/2013/TurtleTests/s1> <http://www.w3.org/2013/TurtleTests/p1> <http://www.w3.org/2013/TurtleTests/o1> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-11.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-11.ttl new file mode 100644 index 000000000..fc6bb9937 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-11.ttl @@ -0,0 +1,2 @@ +# Trailing ; +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> ; diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-12.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-12.ttl new file mode 100644 index 000000000..1038da865 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-12.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-13.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-13.ttl new file mode 100644 index 000000000..1038da865 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-13.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-14.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-14.ttl new file mode 100644 index 000000000..44db7be2c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-14.ttl @@ -0,0 +1,2 @@ +# Literal as subject +"abc" <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/p> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-15.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-15.ttl new file mode 100644 index 000000000..788cfd672 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-15.ttl @@ -0,0 +1,2 @@ +# Literal as predicate +<http://www.w3.org/2013/TurtleTests/s> "abc" <http://www.w3.org/2013/TurtleTests/p> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-16.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-16.ttl new file mode 100644 index 000000000..d30a80bed --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-16.ttl @@ -0,0 +1,2 @@ +# BNode as predicate +<http://www.w3.org/2013/TurtleTests/s> [] <http://www.w3.org/2013/TurtleTests/p> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-17.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-17.ttl new file mode 100644 index 000000000..50ea2656c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-struct-17.ttl @@ -0,0 +1,2 @@ +# BNode as predicate +<http://www.w3.org/2013/TurtleTests/s> _:a <http://www.w3.org/2013/TurtleTests/p> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-01.ttl new file mode 100644 index 000000000..ebea3f25d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-01.ttl @@ -0,0 +1,2 @@ +# Bad IRI : space. +<http://www.w3.org/2013/TurtleTests/ space> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-02.ttl new file mode 100644 index 000000000..e9096bc78 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-02.ttl @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://www.w3.org/2013/TurtleTests/\u00ZZ11> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-03.ttl new file mode 100644 index 000000000..7fe2bf037 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-03.ttl @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://www.w3.org/2013/TurtleTests/\U00ZZ1111> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-04.ttl new file mode 100644 index 000000000..258997cb4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-04.ttl @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://www.w3.org/2013/TurtleTests/\n> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-05.ttl new file mode 100644 index 000000000..542b2b643 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bad-uri-05.ttl @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://www.w3.org/2013/TurtleTests/\/> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-01.ttl new file mode 100644 index 000000000..108ceaf59 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-01.ttl @@ -0,0 +1 @@ +@base <http://www.w3.org/2013/TurtleTests/> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-02.ttl new file mode 100644 index 000000000..7a2724f71 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-02.ttl @@ -0,0 +1 @@ +BASE <http://www.w3.org/2013/TurtleTests/> diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-03.ttl new file mode 100644 index 000000000..e90dc14a5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-03.ttl @@ -0,0 +1,2 @@ +@base <http://www.w3.org/2013/TurtleTests/> . +<s> <p> <o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-04.ttl new file mode 100644 index 000000000..6a183b50d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-base-04.ttl @@ -0,0 +1,2 @@ +BASE <http://www.w3.org/2013/TurtleTests/> +<s> <p> <o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-blank-label.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-blank-label.ttl new file mode 100644 index 000000000..b7fae10d1 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-blank-label.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +_:0b :p :o . # Starts with digit +_:_b :p :o . # Starts with underscore +_:b.0 :p :o . # Contains dot, ends with digit diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-01.ttl new file mode 100644 index 000000000..274a478c0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[] :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-02.ttl new file mode 100644 index 000000000..91b9c16e4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p [] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-03.ttl new file mode 100644 index 000000000..36c8450f3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p [ :q :o ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-04.ttl new file mode 100644 index 000000000..942dedd74 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p [ :q1 :o1 ; :q2 :o2 ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-05.ttl new file mode 100644 index 000000000..c2f4169cd --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[ :q1 :o1 ; :q2 :o2 ] :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-06.ttl new file mode 100644 index 000000000..f9ffec8cd --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-06.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +_:a :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-07.ttl new file mode 100644 index 000000000..c0dba051d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-07.ttl @@ -0,0 +1,3 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p _:a . +_:a :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-08.ttl new file mode 100644 index 000000000..630843b0b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-08.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[ :p :o ] . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-09.ttl new file mode 100644 index 000000000..cd75e3a3f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-09.ttl @@ -0,0 +1,3 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[ :p :o1,:2 ] . +:s :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-10.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-10.ttl new file mode 100644 index 000000000..03fa67cac --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-bnode-10.ttl @@ -0,0 +1,5 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:s1 :p :o . +[ :p1 :o1 ; :p2 :o2 ] . +:s2 :p :o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-datatypes-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-datatypes-01.ttl new file mode 100644 index 000000000..9e273c51b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-datatypes-01.ttl @@ -0,0 +1,2 @@ +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +<s> <p> "123"^^xsd:byte . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-datatypes-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-datatypes-02.ttl new file mode 100644 index 000000000..477bd73c3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-datatypes-02.ttl @@ -0,0 +1,3 @@ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +<s> <p> "123"^^xsd:string . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-01.ttl new file mode 100644 index 000000000..e69de29bb diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-02.ttl new file mode 100644 index 000000000..e6d327d50 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-02.ttl @@ -0,0 +1 @@ +#Empty file. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-03.ttl new file mode 100644 index 000000000..a9ca0358a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-file-03.ttl @@ -0,0 +1,2 @@ +#One comment, one empty line. + diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-01.ttl new file mode 100644 index 000000000..854c75681 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-01.ttl @@ -0,0 +1 @@ +<s> <p> true . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-02.ttl new file mode 100644 index 000000000..c948160b9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-02.ttl @@ -0,0 +1 @@ +<s> <p> false . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-03.ttl new file mode 100644 index 000000000..bb479bfa5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-kw-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s a :C . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-01.ttl new file mode 100644 index 000000000..c6ee0fbed --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p () . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-02.ttl new file mode 100644 index 000000000..06a0cd1e6 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p (1 "2" :o) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-03.ttl new file mode 100644 index 000000000..e71f02736 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +(1) :p (1) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-04.ttl new file mode 100644 index 000000000..a98853896 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +(()) :p (()) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-05.ttl new file mode 100644 index 000000000..43e68a443 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-lists-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +(1 2 (1 2)) :p (( "a") "b" :o) . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ln-colons.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ln-colons.ttl new file mode 100644 index 000000000..80a2e3df8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ln-colons.ttl @@ -0,0 +1,6 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s:1 :p:1 :o:1 . +:s::2 :p::2 :o::2 . +:3:s :3:p :3 . +::s ::p ::o . +::s: ::p: ::o: . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ln-dots.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ln-dots.ttl new file mode 100644 index 000000000..ca5bba978 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ln-dots.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s.1 :p.1 :o.1 . +:s..2 :p..2 :o..2. +:3.s :3.p :3. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ns-dots.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ns-dots.ttl new file mode 100644 index 000000000..1059b5768 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-ns-dots.ttl @@ -0,0 +1,2 @@ +@prefix e.g: <http://www.w3.org/2013/TurtleTests/> . +e.g:s e.g:p e.g:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-01.ttl new file mode 100644 index 000000000..016fa8f2a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-01.ttl @@ -0,0 +1 @@ +<s> <p> 123 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-02.ttl new file mode 100644 index 000000000..66d1b389c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-02.ttl @@ -0,0 +1 @@ +<s> <p> -123 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-03.ttl new file mode 100644 index 000000000..441428576 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-03.ttl @@ -0,0 +1 @@ +<s> <p> +123 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-04.ttl new file mode 100644 index 000000000..ab48cbc6c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-04.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> 123.0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-05.ttl new file mode 100644 index 000000000..a8d5845aa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-05.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> .1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-06.ttl new file mode 100644 index 000000000..cb3a2b068 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-06.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> -123.0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-07.ttl new file mode 100644 index 000000000..8b0050e6a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-07.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> +123.0 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-08.ttl new file mode 100644 index 000000000..70ddeed3b --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-08.ttl @@ -0,0 +1,2 @@ +# This is an integer +<s> <p> 123. diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-09.ttl new file mode 100644 index 000000000..386b819f5 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-09.ttl @@ -0,0 +1 @@ +<s> <p> 123.0e1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-10.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-10.ttl new file mode 100644 index 000000000..46875e94a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-10.ttl @@ -0,0 +1 @@ +<s> <p> -123e-1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-11.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-11.ttl new file mode 100644 index 000000000..1d8c367ef --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-number-11.ttl @@ -0,0 +1 @@ +<s> <p> 123.E+1 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-01.ttl new file mode 100644 index 000000000..5a3a5fd75 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\_\%AA . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-02.ttl new file mode 100644 index 000000000..5d806cf46 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :0123\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\_\%AA123 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-03.ttl new file mode 100644 index 000000000..9949c52be --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-pname-esc-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:xyz\~ :abc\.: : . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-01.ttl new file mode 100644 index 000000000..7fd693278 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-01.ttl @@ -0,0 +1 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-02.ttl new file mode 100644 index 000000000..99d4ae452 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-02.ttl @@ -0,0 +1 @@ +PreFIX : <http://www.w3.org/2013/TurtleTests/> diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-03.ttl new file mode 100644 index 000000000..c834d10f8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-03.ttl @@ -0,0 +1,2 @@ +PREFIX : <http://www.w3.org/2013/TurtleTests/> +:s :p :123 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-04.ttl new file mode 100644 index 000000000..4ff94dc01 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :%20 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-05.ttl new file mode 100644 index 000000000..30441026a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +: : : . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-06.ttl new file mode 100644 index 000000000..7044be5ab --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-06.ttl @@ -0,0 +1,4 @@ +# colon is a legal pname character +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +:a:b:c x:d:e:f :::: . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-07.ttl new file mode 100644 index 000000000..1db61e8a9 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-07.ttl @@ -0,0 +1,3 @@ +# dash is a legal pname character +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +x:a-b-c x:p x:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-08.ttl new file mode 100644 index 000000000..f969a4af8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-08.ttl @@ -0,0 +1,3 @@ +# underscore is a legal pname character +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +x:_ x:p_1 x:o . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-09.ttl new file mode 100644 index 000000000..5c57ebea4 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-prefix-09.ttl @@ -0,0 +1,4 @@ +# percents +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +:a%3E x:%25 :a%3Eb . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-01.ttl new file mode 100644 index 000000000..f11f2827c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\n" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-02.ttl new file mode 100644 index 000000000..0b77f95a7 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-02.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\u0020b" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-03.ttl new file mode 100644 index 000000000..af1e3281c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-str-esc-03.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\U00000020b" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-01.ttl new file mode 100644 index 000000000..7bf8a6d4f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-02.ttl new file mode 100644 index 000000000..8cb89e983 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-02.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-03.ttl new file mode 100644 index 000000000..312d1d671 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-03.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@en-uk . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-04.ttl new file mode 100644 index 000000000..3ecdea3ab --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-04.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 'string' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-05.ttl new file mode 100644 index 000000000..f32b6d020 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-05.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 'string'@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-06.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-06.ttl new file mode 100644 index 000000000..77399380a --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-06.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 'string'@en-uk . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-07.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-07.ttl new file mode 100644 index 000000000..6c3e6a44e --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-07.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> """abc""def''ghi""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-08.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-08.ttl new file mode 100644 index 000000000..2fb0227bc --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-08.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> """abc +def""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-09.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-09.ttl new file mode 100644 index 000000000..390c8af9f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-09.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> '''abc +def''' . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-10.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-10.ttl new file mode 100644 index 000000000..5b6e5c35f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-10.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> """abc +def"""@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-11.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-11.ttl new file mode 100644 index 000000000..7b78abf10 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-string-11.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> '''abc +def'''@en . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-01.ttl new file mode 100644 index 000000000..990e51601 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :o1 , :o2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-02.ttl new file mode 100644 index 000000000..0684b2fec --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-02.ttl @@ -0,0 +1,3 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ; + :p2 :o2 . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-03.ttl new file mode 100644 index 000000000..1e3035153 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-03.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ; + :p2 :o2 ; + . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-04.ttl new file mode 100644 index 000000000..3d1bf3b0d --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-04.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ;; + :p2 :o2 + . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-05.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-05.ttl new file mode 100644 index 000000000..c39e04119 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-struct-05.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ; + :p2 :o2 ;; + . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-01.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-01.ttl new file mode 100644 index 000000000..2e2d5baf0 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-02.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-02.ttl new file mode 100644 index 000000000..f355d38cd --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-02.ttl @@ -0,0 +1,2 @@ +# x53 is capital S +<http://www.w3.org/2013/TurtleTests/\u0053> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-03.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-03.ttl new file mode 100644 index 000000000..0ea581afe --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-03.ttl @@ -0,0 +1,2 @@ +# x53 is capital S +<http://www.w3.org/2013/TurtleTests/\U00000053> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-04.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-04.ttl new file mode 100644 index 000000000..db805c8fa --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/turtle-syntax-uri-04.ttl @@ -0,0 +1,3 @@ +# IRI with all chars in it. +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/two_LITERAL_LONG2s.nt b/org.hl7.fhir.r4/src/test/resources/turtle/two_LITERAL_LONG2s.nt new file mode 100644 index 000000000..af94fe6af --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/two_LITERAL_LONG2s.nt @@ -0,0 +1,2 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "first long literal" . +<http://example.org/ex#c> <http://example.org/ex#d> "second long literal" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/two_LITERAL_LONG2s.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/two_LITERAL_LONG2s.ttl new file mode 100644 index 000000000..ceaad3d4c --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/two_LITERAL_LONG2s.ttl @@ -0,0 +1,4 @@ +# Test long literal twice to ensure it does not over-quote +@prefix : <http://example.org/ex#> . +:a :b """first long literal""" . +:c :d """second long literal""" . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/underscore_in_localName.nt b/org.hl7.fhir.r4/src/test/resources/turtle/underscore_in_localName.nt new file mode 100644 index 000000000..f9d0c4f1f --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/underscore_in_localName.nt @@ -0,0 +1 @@ +<http://a.example/s_> <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/turtle/underscore_in_localName.ttl b/org.hl7.fhir.r4/src/test/resources/turtle/underscore_in_localName.ttl new file mode 100644 index 000000000..34596fdf8 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/turtle/underscore_in_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s_ <http://a.example/p> <http://a.example/o> . diff --git a/org.hl7.fhir.r4/src/test/resources/ucum/ucum-essence.xml b/org.hl7.fhir.r4/src/test/resources/ucum/ucum-essence.xml new file mode 100644 index 000000000..0c61882eb --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/ucum/ucum-essence.xml @@ -0,0 +1,2047 @@ +<?xml version="1.0" encoding="ascii"?> +<root xmlns="http://unitsofmeasure.org/ucum-essence" version="2.0.1" + revision="$Revision: 439 $" + revision-date="$Date: 2015-11-13 15:13:19 -0500 (Fri, 13 Nov 2015) $"> + <prefix Code="Y" CODE="YA"> + <name>yotta</name> + <printSymbol>Y</printSymbol> + <value value="1e24">1 × 10<sup>24</sup> + </value> + </prefix> + <prefix Code="Z" CODE="ZA"> + <name>zetta</name> + <printSymbol>Z</printSymbol> + <value value="1e21">1 × 10<sup>21</sup> + </value> + </prefix> + <prefix Code="E" CODE="EX"> + <name>exa</name> + <printSymbol>E</printSymbol> + <value value="1e18">1 × 10<sup>18</sup> + </value> + </prefix> + <prefix Code="P" CODE="PT"> + <name>peta</name> + <printSymbol>P</printSymbol> + <value value="1e15">1 × 10<sup>15</sup> + </value> + </prefix> + <prefix Code="T" CODE="TR"> + <name>tera</name> + <printSymbol>T</printSymbol> + <value value="1e12">1 × 10<sup>12</sup> + </value> + </prefix> + <prefix Code="G" CODE="GA"> + <name>giga</name> + <printSymbol>G</printSymbol> + <value value="1e9">1 × 10<sup>9</sup> + </value> + </prefix> + <prefix Code="M" CODE="MA"> + <name>mega</name> + <printSymbol>M</printSymbol> + <value value="1e6">1 × 10<sup>6</sup> + </value> + </prefix> + <prefix Code="k" CODE="K"> + <name>kilo</name> + <printSymbol>k</printSymbol> + <value value="1e3">1 × 10<sup>3</sup> + </value> + </prefix> + <prefix Code="h" CODE="H"> + <name>hecto</name> + <printSymbol>h</printSymbol> + <value value="1e2">1 × 10<sup>2</sup> + </value> + </prefix> + <prefix Code="da" CODE="DA"> + <name>deka</name> + <printSymbol>da</printSymbol> + <value value="1e1">1 × 10<sup>1</sup> + </value> + </prefix> + <prefix Code="d" CODE="D"> + <name>deci</name> + <printSymbol>d</printSymbol> + <value value="1e-1">1 × 10<sup>-1</sup> + </value> + </prefix> + <prefix Code="c" CODE="C"> + <name>centi</name> + <printSymbol>c</printSymbol> + <value value="1e-2">1 × 10<sup>-2</sup> + </value> + </prefix> + <prefix Code="m" CODE="M"> + <name>milli</name> + <printSymbol>m</printSymbol> + <value value="1e-3">1 × 10<sup>-3</sup> + </value> + </prefix> + <prefix Code="u" CODE="U"> + <name>micro</name> + <printSymbol>μ</printSymbol> + <value value="1e-6">1 × 10<sup>-6</sup> + </value> + </prefix> + <prefix Code="n" CODE="N"> + <name>nano</name> + <printSymbol>n</printSymbol> + <value value="1e-9">1 × 10<sup>-9</sup> + </value> + </prefix> + <prefix Code="p" CODE="P"> + <name>pico</name> + <printSymbol>p</printSymbol> + <value value="1e-12">1 × 10<sup>-12</sup> + </value> + </prefix> + <prefix Code="f" CODE="F"> + <name>femto</name> + <printSymbol>f</printSymbol> + <value value="1e-15">1 × 10<sup>-15</sup> + </value> + </prefix> + <prefix Code="a" CODE="A"> + <name>atto</name> + <printSymbol>a</printSymbol> + <value value="1e-18">1 × 10<sup>-18</sup> + </value> + </prefix> + <prefix Code="z" CODE="ZO"> + <name>zepto</name> + <printSymbol>z</printSymbol> + <value value="1e-21">1 × 10<sup>-21</sup> + </value> + </prefix> + <prefix Code="y" CODE="YO"> + <name>yocto</name> + <printSymbol>y</printSymbol> + <value value="1e-24">1 × 10<sup>-24</sup> + </value> + </prefix> + <base-unit Code="m" CODE="M" dim="L"> + <name>meter</name> + <printSymbol>m</printSymbol> + <property>length</property> + </base-unit> + <base-unit Code="s" CODE="S" dim="T"> + <name>second</name> + <printSymbol>s</printSymbol> + <property>time</property> + </base-unit> + <base-unit Code="g" CODE="G" dim="M"> + <name>gram</name> + <printSymbol>g</printSymbol> + <property>mass</property> + </base-unit> + <base-unit Code="rad" CODE="RAD" dim="A"> + <name>radian</name> + <printSymbol>rad</printSymbol> + <property>plane angle</property> + </base-unit> + <base-unit Code="K" CODE="K" dim="C"> + <name>kelvin</name> + <printSymbol>K</printSymbol> + <property>temperature</property> + </base-unit> + <base-unit Code="C" CODE="C" dim="Q"> + <name>coulomb</name> + <printSymbol>C</printSymbol> + <property>electric charge</property> + </base-unit> + <base-unit Code="cd" CODE="CD" dim="F"> + <name>candela</name> + <printSymbol>cd</printSymbol> + <property>luminous intensity</property> + </base-unit> + <unit Code="10*" CODE="10*" isMetric="no" class="dimless"> + <name>the number ten for arbitrary powers</name> + <printSymbol>10</printSymbol> + <property>number</property> + <value Unit="1" UNIT="1" value="10">10</value> + </unit> + <unit Code="10^" CODE="10^" isMetric="no" class="dimless"> + <name>the number ten for arbitrary powers</name> + <printSymbol>10</printSymbol> + <property>number</property> + <value Unit="1" UNIT="1" value="10">10</value> + </unit> + <unit Code="[pi]" CODE="[PI]" isMetric="no" class="dimless"> + <name>the number pi</name> + <printSymbol>π</printSymbol> + <property>number</property> + <value Unit="1" UNIT="1" + value="3.1415926535897932384626433832795028841971693993751058209749445923">π</value> + </unit> + <unit Code="%" CODE="%" isMetric="no" class="dimless"> + <name>percent</name> + <printSymbol>%</printSymbol> + <property>fraction</property> + <value Unit="10*-2" UNIT="10*-2" value="1">1</value> + </unit> + <unit Code="[ppth]" CODE="[PPTH]" isMetric="no" class="dimless"> + <name>parts per thousand</name> + <printSymbol>ppth</printSymbol> + <property>fraction</property> + <value Unit="10*-3" UNIT="10*-3" value="1">1</value> + </unit> + <unit Code="[ppm]" CODE="[PPM]" isMetric="no" class="dimless"> + <name>parts per million</name> + <printSymbol>ppm</printSymbol> + <property>fraction</property> + <value Unit="10*-6" UNIT="10*-6" value="1">1</value> + </unit> + <unit Code="[ppb]" CODE="[PPB]" isMetric="no" class="dimless"> + <name>parts per billion</name> + <printSymbol>ppb</printSymbol> + <property>fraction</property> + <value Unit="10*-9" UNIT="10*-9" value="1">1</value> + </unit> + <unit Code="[pptr]" CODE="[PPTR]" isMetric="no" class="dimless"> + <name>parts per trillion</name> + <printSymbol>pptr</printSymbol> + <property>fraction</property> + <value Unit="10*-12" UNIT="10*-12" value="1">1</value> + </unit> + <unit Code="mol" CODE="MOL" isMetric="yes" class="si"> + <name>mole</name> + <printSymbol>mol</printSymbol> + <property>amount of substance</property> + <value Unit="10*23" UNIT="10*23" value="6.0221367">6.0221367</value> + </unit> + <unit Code="sr" CODE="SR" isMetric="yes" class="si"> + <name>steradian</name> + <printSymbol>sr</printSymbol> + <property>solid angle</property> + <value Unit="rad2" UNIT="RAD2" value="1">1</value> + </unit> + <unit Code="Hz" CODE="HZ" isMetric="yes" class="si"> + <name>hertz</name> + <printSymbol>Hz</printSymbol> + <property>frequency</property> + <value Unit="s-1" UNIT="S-1" value="1">1</value> + </unit> + <unit Code="N" CODE="N" isMetric="yes" class="si"> + <name>newton</name> + <printSymbol>N</printSymbol> + <property>force</property> + <value Unit="kg.m/s2" UNIT="KG.M/S2" value="1">1</value> + </unit> + <unit Code="Pa" CODE="PAL" isMetric="yes" class="si"> + <name>pascal</name> + <printSymbol>Pa</printSymbol> + <property>pressure</property> + <value Unit="N/m2" UNIT="N/M2" value="1">1</value> + </unit> + <unit Code="J" CODE="J" isMetric="yes" class="si"> + <name>joule</name> + <printSymbol>J</printSymbol> + <property>energy</property> + <value Unit="N.m" UNIT="N.M" value="1">1</value> + </unit> + <unit Code="W" CODE="W" isMetric="yes" class="si"> + <name>watt</name> + <printSymbol>W</printSymbol> + <property>power</property> + <value Unit="J/s" UNIT="J/S" value="1">1</value> + </unit> + <unit Code="A" CODE="A" isMetric="yes" class="si"> + <name>ampère</name> + <printSymbol>A</printSymbol> + <property>electric current</property> + <value Unit="C/s" UNIT="C/S" value="1">1</value> + </unit> + <unit Code="V" CODE="V" isMetric="yes" class="si"> + <name>volt</name> + <printSymbol>V</printSymbol> + <property>electric potential</property> + <value Unit="J/C" UNIT="J/C" value="1">1</value> + </unit> + <unit Code="F" CODE="F" isMetric="yes" class="si"> + <name>farad</name> + <printSymbol>F</printSymbol> + <property>electric capacitance</property> + <value Unit="C/V" UNIT="C/V" value="1">1</value> + </unit> + <unit Code="Ohm" CODE="OHM" isMetric="yes" class="si"> + <name>ohm</name> + <printSymbol>Ω</printSymbol> + <property>electric resistance</property> + <value Unit="V/A" UNIT="V/A" value="1">1</value> + </unit> + <unit Code="S" CODE="SIE" isMetric="yes" class="si"> + <name>siemens</name> + <printSymbol>S</printSymbol> + <property>electric conductance</property> + <value Unit="Ohm-1" UNIT="OHM-1" value="1">1</value> + </unit> + <unit Code="Wb" CODE="WB" isMetric="yes" class="si"> + <name>weber</name> + <printSymbol>Wb</printSymbol> + <property>magentic flux</property> + <value Unit="V.s" UNIT="V.S" value="1">1</value> + </unit> + <unit Code="Cel" CODE="CEL" isMetric="yes" isSpecial="yes" class="si"> + <name>degree Celsius</name> + <printSymbol>°C</printSymbol> + <property>temperature</property> + <value Unit="cel(1 K)" UNIT="CEL(1 K)"> + <function name="Cel" value="1" Unit="K"/> + </value> + </unit> + <unit Code="T" CODE="T" isMetric="yes" class="si"> + <name>tesla</name> + <printSymbol>T</printSymbol> + <property>magnetic flux density</property> + <value Unit="Wb/m2" UNIT="WB/M2" value="1">1</value> + </unit> + <unit Code="H" CODE="H" isMetric="yes" class="si"> + <name>henry</name> + <printSymbol>H</printSymbol> + <property>inductance</property> + <value Unit="Wb/A" UNIT="WB/A" value="1">1</value> + </unit> + <unit Code="lm" CODE="LM" isMetric="yes" class="si"> + <name>lumen</name> + <printSymbol>lm</printSymbol> + <property>luminous flux</property> + <value Unit="cd.sr" UNIT="CD.SR" value="1">1</value> + </unit> + <unit Code="lx" CODE="LX" isMetric="yes" class="si"> + <name>lux</name> + <printSymbol>lx</printSymbol> + <property>illuminance</property> + <value Unit="lm/m2" UNIT="LM/M2" value="1">1</value> + </unit> + <unit Code="Bq" CODE="BQ" isMetric="yes" class="si"> + <name>becquerel</name> + <printSymbol>Bq</printSymbol> + <property>radioactivity</property> + <value Unit="s-1" UNIT="S-1" value="1">1</value> + </unit> + <unit Code="Gy" CODE="GY" isMetric="yes" class="si"> + <name>gray</name> + <printSymbol>Gy</printSymbol> + <property>energy dose</property> + <value Unit="J/kg" UNIT="J/KG" value="1">1</value> + </unit> + <unit Code="Sv" CODE="SV" isMetric="yes" class="si"> + <name>sievert</name> + <printSymbol>Sv</printSymbol> + <property>dose equivalent</property> + <value Unit="J/kg" UNIT="J/KG" value="1">1</value> + </unit> + <unit Code="gon" CODE="GON" isMetric="no" class="iso1000"> + <name>gon</name> + <name>grade</name> + <printSymbol>□<sup>g</sup> + </printSymbol> + <property>plane angle</property> + <value Unit="deg" UNIT="DEG" value="0.9">0.9</value> + </unit> + <unit Code="deg" CODE="DEG" isMetric="no" class="iso1000"> + <name>degree</name> + <printSymbol>°</printSymbol> + <property>plane angle</property> + <value Unit="[pi].rad/360" UNIT="[PI].RAD/360" value="2">2</value> + </unit> + <unit Code="'" CODE="'" isMetric="no" class="iso1000"> + <name>minute</name> + <printSymbol>'</printSymbol> + <property>plane angle</property> + <value Unit="deg/60" UNIT="DEG/60" value="1">1</value> + </unit> + <unit Code="''" CODE="''" isMetric="no" class="iso1000"> + <name>second</name> + <printSymbol>''</printSymbol> + <property>plane angle</property> + <value Unit="'/60" UNIT="'/60" value="1">1</value> + </unit> + <unit Code="l" CODE="L" isMetric="yes" class="iso1000"> + <name>liter</name> + <printSymbol>l</printSymbol> + <property>volume</property> + <value Unit="dm3" UNIT="DM3" value="1">1</value> + </unit> + <unit Code="L" isMetric="yes" class="iso1000"> + <name>liter</name> + <printSymbol>L</printSymbol> + <property>volume</property> + <value Unit="l" value="1">1</value> + </unit> + <unit Code="ar" CODE="AR" isMetric="yes" class="iso1000"> + <name>are</name> + <printSymbol>a</printSymbol> + <property>area</property> + <value Unit="m2" UNIT="M2" value="100">100</value> + </unit> + <unit Code="min" CODE="MIN" isMetric="no" class="iso1000"> + <name>minute</name> + <printSymbol>min</printSymbol> + <property>time</property> + <value Unit="s" UNIT="S" value="60">60</value> + </unit> + <unit Code="h" CODE="HR" isMetric="no" class="iso1000"> + <name>hour</name> + <printSymbol>h</printSymbol> + <property>time</property> + <value Unit="min" UNIT="MIN" value="60">60</value> + </unit> + <unit Code="d" CODE="D" isMetric="no" class="iso1000"> + <name>day</name> + <printSymbol>d</printSymbol> + <property>time</property> + <value Unit="h" UNIT="HR" value="24">24</value> + </unit> + <unit Code="a_t" CODE="ANN_T" isMetric="no" class="iso1000"> + <name>tropical year</name> + <printSymbol>a<sub>t</sub> + </printSymbol> + <property>time</property> + <value Unit="d" UNIT="D" value="365.24219">365.24219</value> + </unit> + <unit Code="a_j" CODE="ANN_J" isMetric="no" class="iso1000"> + <name>mean Julian year</name> + <printSymbol>a<sub>j</sub> + </printSymbol> + <property>time</property> + <value Unit="d" UNIT="D" value="365.25">365.25</value> + </unit> + <unit Code="a_g" CODE="ANN_G" isMetric="no" class="iso1000"> + <name>mean Gregorian year</name> + <printSymbol>a<sub>g</sub> + </printSymbol> + <property>time</property> + <value Unit="d" UNIT="D" value="365.2425">365.2425</value> + </unit> + <unit Code="a" CODE="ANN" isMetric="no" class="iso1000"> + <name>year</name> + <printSymbol>a</printSymbol> + <property>time</property> + <value Unit="a_j" UNIT="ANN_J" value="1">1</value> + </unit> + <unit Code="wk" CODE="WK" isMetric="no" class="iso1000"> + <name>week</name> + <printSymbol>wk</printSymbol> + <property>time</property> + <value Unit="d" UNIT="D" value="7">7</value> + </unit> + <unit Code="mo_s" CODE="MO_S" isMetric="no" class="iso1000"> + <name>synodal month</name> + <printSymbol>mo<sub>s</sub> + </printSymbol> + <property>time</property> + <value Unit="d" UNIT="D" value="29.53059">29.53059</value> + </unit> + <unit Code="mo_j" CODE="MO_J" isMetric="no" class="iso1000"> + <name>mean Julian month</name> + <printSymbol>mo<sub>j</sub> + </printSymbol> + <property>time</property> + <value Unit="a_j/12" UNIT="ANN_J/12" value="1">1</value> + </unit> + <unit Code="mo_g" CODE="MO_G" isMetric="no" class="iso1000"> + <name>mean Gregorian month</name> + <printSymbol>mo<sub>g</sub> + </printSymbol> + <property>time</property> + <value Unit="a_g/12" UNIT="ANN_G/12" value="1">1</value> + </unit> + <unit Code="mo" CODE="MO" isMetric="no" class="iso1000"> + <name>month</name> + <printSymbol>mo</printSymbol> + <property>time</property> + <value Unit="mo_j" UNIT="MO_J" value="1">1</value> + </unit> + <unit Code="t" CODE="TNE" isMetric="yes" class="iso1000"> + <name>tonne</name> + <printSymbol>t</printSymbol> + <property>mass</property> + <value Unit="kg" UNIT="KG" value="1e3">1 × 10<sup>3</sup> + </value> + </unit> + <unit Code="bar" CODE="BAR" isMetric="yes" class="iso1000"> + <name>bar</name> + <printSymbol>bar</printSymbol> + <property>pressure</property> + <value Unit="Pa" UNIT="PAL" value="1e5">1 × 10<sup>5</sup> + </value> + </unit> + <unit Code="u" CODE="AMU" isMetric="yes" class="iso1000"> + <name>unified atomic mass unit</name> + <printSymbol>u</printSymbol> + <property>mass</property> + <value Unit="g" UNIT="G" value="1.6605402e-24">1.6605402 × 10<sup>-24</sup> + </value> + </unit> + <unit Code="eV" CODE="EV" isMetric="yes" class="iso1000"> + <name>electronvolt</name> + <printSymbol>eV</printSymbol> + <property>energy</property> + <value Unit="[e].V" UNIT="[E].V" value="1">1</value> + </unit> + <unit Code="AU" CODE="ASU" isMetric="no" class="iso1000"> + <name>astronomic unit</name> + <printSymbol>AU</printSymbol> + <property>length</property> + <value Unit="Mm" UNIT="MAM" value="149597.870691">149597.870691</value> + </unit> + <unit Code="pc" CODE="PRS" isMetric="yes" class="iso1000"> + <name>parsec</name> + <printSymbol>pc</printSymbol> + <property>length</property> + <value Unit="m" UNIT="M" value="3.085678e16">3.085678 × 10<sup>16</sup> + </value> + </unit> + <unit Code="[c]" CODE="[C]" isMetric="yes" class="const"> + <name>velocity of light</name> + <printSymbol> + <i>c</i> + </printSymbol> + <property>velocity</property> + <value Unit="m/s" UNIT="M/S" value="299792458">299792458</value> + </unit> + <unit Code="[h]" CODE="[H]" isMetric="yes" class="const"> + <name>Planck constant</name> + <printSymbol> + <i>h</i> + </printSymbol> + <property>action</property> + <value Unit="J.s" UNIT="J.S" value="6.6260755e-34">6.6260755 × 10<sup>-34</sup> + </value> + </unit> + <unit Code="[k]" CODE="[K]" isMetric="yes" class="const"> + <name>Boltzmann constant</name> + <printSymbol> + <i>k</i> + </printSymbol> + <property>(unclassified)</property> + <value Unit="J/K" UNIT="J/K" value="1.380658e-23">1.380658 × 10<sup>-23</sup> + </value> + </unit> + <unit Code="[eps_0]" CODE="[EPS_0]" isMetric="yes" class="const"> + <name>permittivity of vacuum</name> + <printSymbol> + <i>ε<sub> + <r>0</r> + </sub> + </i> + </printSymbol> + <property>electric permittivity</property> + <value Unit="F/m" UNIT="F/M" value="8.854187817e-12">8.854187817 × 10<sup>-12</sup> + </value> + </unit> + <unit Code="[mu_0]" CODE="[MU_0]" isMetric="yes" class="const"> + <name>permeability of vacuum</name> + <printSymbol> + <i>μ<sub> + <r>0</r> + </sub> + </i> + </printSymbol> + <property>magnetic permeability</property> + <value Unit="4.[pi].10*-7.N/A2" UNIT="4.[PI].10*-7.N/A2" value="1">1</value> + </unit> + <unit Code="[e]" CODE="[E]" isMetric="yes" class="const"> + <name>elementary charge</name> + <printSymbol> + <i>e</i> + </printSymbol> + <property>electric charge</property> + <value Unit="C" UNIT="C" value="1.60217733e-19">1.60217733 × 10<sup>-19</sup> + </value> + </unit> + <unit Code="[m_e]" CODE="[M_E]" isMetric="yes" class="const"> + <name>electron mass</name> + <printSymbol> + <i>m<sub> + <r>e</r> + </sub> + </i> + </printSymbol> + <property>mass</property> + <value Unit="g" UNIT="g" value="9.1093897e-28">9.1093897 × 10<sup>-28</sup> + </value> + </unit> + <unit Code="[m_p]" CODE="[M_P]" isMetric="yes" class="const"> + <name>proton mass</name> + <printSymbol> + <i>m<sub> + <r>p</r> + </sub> + </i> + </printSymbol> + <property>mass</property> + <value Unit="g" UNIT="g" value="1.6726231e-24">1.6726231 × 10<sup>-24</sup> + </value> + </unit> + <unit Code="[G]" CODE="[GC]" isMetric="yes" class="const"> + <name>Newtonian constant of gravitation</name> + <printSymbol> + <i>G</i> + </printSymbol> + <property>(unclassified)</property> + <value Unit="m3.kg-1.s-2" UNIT="M3.KG-1.S-2" value="6.67259e-11">6.67259 × 10<sup>-11</sup> + </value> + </unit> + <unit Code="[g]" CODE="[G]" isMetric="yes" class="const"> + <name>standard acceleration of free fall</name> + <printSymbol> + <i>g<sub>n</sub> + </i> + </printSymbol> + <property>acceleration</property> + <value Unit="m/s2" UNIT="M/S2" value="980665e-5">9.80665</value> + </unit> + <unit Code="atm" CODE="ATM" isMetric="no" class="const"> + <name>standard atmosphere</name> + <printSymbol>atm</printSymbol> + <property>pressure</property> + <value Unit="Pa" UNIT="PAL" value="101325">101325</value> + </unit> + <unit Code="[ly]" CODE="[LY]" isMetric="yes" class="const"> + <name>light-year</name> + <printSymbol>l.y.</printSymbol> + <property>length</property> + <value Unit="[c].a_j" UNIT="[C].ANN_J" value="1">1</value> + </unit> + <unit Code="gf" CODE="GF" isMetric="yes" class="const"> + <name>gram-force</name> + <printSymbol>gf</printSymbol> + <property>force</property> + <value Unit="g.[g]" UNIT="G.[G]" value="1">1</value> + </unit> + <unit Code="[lbf_av]" CODE="[LBF_AV]" isMetric="no" class="const"> + <name>pound force</name> + <printSymbol>lbf</printSymbol> + <property>force</property> + <value Unit="[lb_av].[g]" UNIT="[LB_AV].[G]" value="1">1</value> + </unit> + <unit Code="Ky" CODE="KY" isMetric="yes" class="cgs"> + <name>Kayser</name> + <printSymbol>K</printSymbol> + <property>lineic number</property> + <value Unit="cm-1" UNIT="CM-1" value="1">1</value> + </unit> + <unit Code="Gal" CODE="GL" isMetric="yes" class="cgs"> + <name>Gal</name> + <printSymbol>Gal</printSymbol> + <property>acceleration</property> + <value Unit="cm/s2" UNIT="CM/S2" value="1">1</value> + </unit> + <unit Code="dyn" CODE="DYN" isMetric="yes" class="cgs"> + <name>dyne</name> + <printSymbol>dyn</printSymbol> + <property>force</property> + <value Unit="g.cm/s2" UNIT="G.CM/S2" value="1">1</value> + </unit> + <unit Code="erg" CODE="ERG" isMetric="yes" class="cgs"> + <name>erg</name> + <printSymbol>erg</printSymbol> + <property>energy</property> + <value Unit="dyn.cm" UNIT="DYN.CM" value="1">1</value> + </unit> + <unit Code="P" CODE="P" isMetric="yes" class="cgs"> + <name>Poise</name> + <printSymbol>P</printSymbol> + <property>dynamic viscosity</property> + <value Unit="dyn.s/cm2" UNIT="DYN.S/CM2" value="1">1</value> + </unit> + <unit Code="Bi" CODE="BI" isMetric="yes" class="cgs"> + <name>Biot</name> + <printSymbol>Bi</printSymbol> + <property>electric current</property> + <value Unit="A" UNIT="A" value="10">10</value> + </unit> + <unit Code="St" CODE="ST" isMetric="yes" class="cgs"> + <name>Stokes</name> + <printSymbol>St</printSymbol> + <property>kinematic viscosity</property> + <value Unit="cm2/s" UNIT="CM2/S" value="1">1</value> + </unit> + <unit Code="Mx" CODE="MX" isMetric="yes" class="cgs"> + <name>Maxwell</name> + <printSymbol>Mx</printSymbol> + <property>flux of magnetic induction</property> + <value Unit="Wb" UNIT="WB" value="1e-8">1 × 10<sup>-8</sup> + </value> + </unit> + <unit Code="G" CODE="GS" isMetric="yes" class="cgs"> + <name>Gauss</name> + <printSymbol>Gs</printSymbol> + <property>magnetic flux density</property> + <value Unit="T" UNIT="T" value="1e-4">1 × 10<sup>-4</sup> + </value> + </unit> + <unit Code="Oe" CODE="OE" isMetric="yes" class="cgs"> + <name>Oersted</name> + <printSymbol>Oe</printSymbol> + <property>magnetic field intensity</property> + <value Unit="/[pi].A/m" UNIT="/[PI].A/M" value="250">250</value> + </unit> + <unit Code="Gb" CODE="GB" isMetric="yes" class="cgs"> + <name>Gilbert</name> + <printSymbol>Gb</printSymbol> + <property>magnetic tension</property> + <value Unit="Oe.cm" UNIT="OE.CM" value="1">1</value> + </unit> + <unit Code="sb" CODE="SB" isMetric="yes" class="cgs"> + <name>stilb</name> + <printSymbol>sb</printSymbol> + <property>lum. intensity density</property> + <value Unit="cd/cm2" UNIT="CD/CM2" value="1">1</value> + </unit> + <unit Code="Lmb" CODE="LMB" isMetric="yes" class="cgs"> + <name>Lambert</name> + <printSymbol>L</printSymbol> + <property>brightness</property> + <value Unit="cd/cm2/[pi]" UNIT="CD/CM2/[PI]" value="1">1</value> + </unit> + <unit Code="ph" CODE="PHT" isMetric="yes" class="cgs"> + <name>phot</name> + <printSymbol>ph</printSymbol> + <property>illuminance</property> + <value Unit="lx" UNIT="LX" value="1e-4">1 × 10<sup>-4</sup> + </value> + </unit> + <unit Code="Ci" CODE="CI" isMetric="yes" class="cgs"> + <name>Curie</name> + <printSymbol>Ci</printSymbol> + <property>radioactivity</property> + <value Unit="Bq" UNIT="BQ" value="37e9">3.7 × 10<sup>10</sup> + </value> + </unit> + <unit Code="R" CODE="ROE" isMetric="yes" class="cgs"> + <name>Roentgen</name> + <printSymbol>R</printSymbol> + <property>ion dose</property> + <value Unit="C/kg" UNIT="C/KG" value="2.58e-4">2.58 × 10<sup>-4</sup> + </value> + </unit> + <unit Code="RAD" CODE="[RAD]" isMetric="yes" class="cgs"> + <name>radiation absorbed dose</name> + <printSymbol>RAD</printSymbol> + <property>energy dose</property> + <value Unit="erg/g" UNIT="ERG/G" value="100">100</value> + </unit> + <unit Code="REM" CODE="[REM]" isMetric="yes" class="cgs"> + <name>radiation equivalent man</name> + <printSymbol>REM</printSymbol> + <property>dose equivalent</property> + <value Unit="RAD" UNIT="[RAD]" value="1">1</value> + </unit> + <unit Code="[in_i]" CODE="[IN_I]" isMetric="no" class="intcust"> + <name>inch</name> + <printSymbol>in</printSymbol> + <property>length</property> + <value Unit="cm" UNIT="CM" value="254e-2">2.54</value> + </unit> + <unit Code="[ft_i]" CODE="[FT_I]" isMetric="no" class="intcust"> + <name>foot</name> + <printSymbol>ft</printSymbol> + <property>length</property> + <value Unit="[in_i]" UNIT="[IN_I]" value="12">12</value> + </unit> + <unit Code="[yd_i]" CODE="[YD_I]" isMetric="no" class="intcust"> + <name>yard</name> + <printSymbol>yd</printSymbol> + <property>length</property> + <value Unit="[ft_i]" UNIT="[FT_I]" value="3">3</value> + </unit> + <unit Code="[mi_i]" CODE="[MI_I]" isMetric="no" class="intcust"> + <name>mile</name> + <printSymbol>mi</printSymbol> + <property>length</property> + <value Unit="[ft_i]" UNIT="[FT_I]" value="5280">5280</value> + </unit> + <unit Code="[fth_i]" CODE="[FTH_I]" isMetric="no" class="intcust"> + <name>fathom</name> + <printSymbol>fth</printSymbol> + <property>depth of water</property> + <value Unit="[ft_i]" UNIT="[FT_I]" value="6">6</value> + </unit> + <unit Code="[nmi_i]" CODE="[NMI_I]" isMetric="no" class="intcust"> + <name>nautical mile</name> + <printSymbol>n.mi</printSymbol> + <property>length</property> + <value Unit="m" UNIT="M" value="1852">1852</value> + </unit> + <unit Code="[kn_i]" CODE="[KN_I]" isMetric="no" class="intcust"> + <name>knot</name> + <printSymbol>knot</printSymbol> + <property>velocity</property> + <value Unit="[nmi_i]/h" UNIT="[NMI_I]/H" value="1">1</value> + </unit> + <unit Code="[sin_i]" CODE="[SIN_I]" isMetric="no" class="intcust"> + <name>square inch</name> + <property>area</property> + <value Unit="[in_i]2" UNIT="[IN_I]2" value="1">1</value> + </unit> + <unit Code="[sft_i]" CODE="[SFT_I]" isMetric="no" class="intcust"> + <name>square foot</name> + <property>area</property> + <value Unit="[ft_i]2" UNIT="[FT_I]2" value="1">1</value> + </unit> + <unit Code="[syd_i]" CODE="[SYD_I]" isMetric="no" class="intcust"> + <name>square yard</name> + <property>area</property> + <value Unit="[yd_i]2" UNIT="[YD_I]2" value="1">1</value> + </unit> + <unit Code="[cin_i]" CODE="[CIN_I]" isMetric="no" class="intcust"> + <name>cubic inch</name> + <property>volume</property> + <value Unit="[in_i]3" UNIT="[IN_I]3" value="1">1</value> + </unit> + <unit Code="[cft_i]" CODE="[CFT_I]" isMetric="no" class="intcust"> + <name>cubic foot</name> + <property>volume</property> + <value Unit="[ft_i]3" UNIT="[FT_I]3" value="1">1</value> + </unit> + <unit Code="[cyd_i]" CODE="[CYD_I]" isMetric="no" class="intcust"> + <name>cubic yard</name> + <printSymbol>cu.yd</printSymbol> + <property>volume</property> + <value Unit="[yd_i]3" UNIT="[YD_I]3" value="1">1</value> + </unit> + <unit Code="[bf_i]" CODE="[BF_I]" isMetric="no" class="intcust"> + <name>board foot</name> + <property>volume</property> + <value Unit="[in_i]3" UNIT="[IN_I]3" value="144">144</value> + </unit> + <unit Code="[cr_i]" CODE="[CR_I]" isMetric="no" class="intcust"> + <name>cord</name> + <property>volume</property> + <value Unit="[ft_i]3" UNIT="[FT_I]3" value="128">128</value> + </unit> + <unit Code="[mil_i]" CODE="[MIL_I]" isMetric="no" class="intcust"> + <name>mil</name> + <printSymbol>mil</printSymbol> + <property>length</property> + <value Unit="[in_i]" UNIT="[IN_I]" value="1e-3">1 × 10<sup>-3</sup> + </value> + </unit> + <unit Code="[cml_i]" CODE="[CML_I]" isMetric="no" class="intcust"> + <name>circular mil</name> + <printSymbol>circ.mil</printSymbol> + <property>area</property> + <value Unit="[pi]/4.[mil_i]2" UNIT="[PI]/4.[MIL_I]2" value="1">1</value> + </unit> + <unit Code="[hd_i]" CODE="[HD_I]" isMetric="no" class="intcust"> + <name>hand</name> + <printSymbol>hd</printSymbol> + <property>height of horses</property> + <value Unit="[in_i]" UNIT="[IN_I]" value="4">4</value> + </unit> + <unit Code="[ft_us]" CODE="[FT_US]" isMetric="no" class="us-lengths"> + <name>foot</name> + <printSymbol>ft<sub>us</sub> + </printSymbol> + <property>length</property> + <value Unit="m/3937" UNIT="M/3937" value="1200">1200</value> + </unit> + <unit Code="[yd_us]" CODE="[YD_US]" isMetric="no" class="us-lengths"> + <name>yard</name> + <property>length</property> + <value Unit="[ft_us]" UNIT="[FT_US]" value="3">3</value> + </unit> + <unit Code="[in_us]" CODE="[IN_US]" isMetric="no" class="us-lengths"> + <name>inch</name> + <property>length</property> + <value Unit="[ft_us]/12" UNIT="[FT_US]/12" value="1">1</value> + </unit> + <unit Code="[rd_us]" CODE="[RD_US]" isMetric="no" class="us-lengths"> + <name>rod</name> + <property>length</property> + <value Unit="[ft_us]" UNIT="[FT_US]" value="16.5">16.5</value> + </unit> + <unit Code="[ch_us]" CODE="[CH_US]" isMetric="no" class="us-lengths"> + <name>Gunter's chain</name> + <name>Surveyor's chain</name> + <property>length</property> + <value Unit="[rd_us]" UNIT="[RD_US]" value="4">4</value> + </unit> + <unit Code="[lk_us]" CODE="[LK_US]" isMetric="no" class="us-lengths"> + <name>link for Gunter's chain</name> + <property>length</property> + <value Unit="[ch_us]/100" UNIT="[CH_US]/100" value="1">1</value> + </unit> + <unit Code="[rch_us]" CODE="[RCH_US]" isMetric="no" class="us-lengths"> + <name>Ramden's chain</name> + <name>Engineer's chain</name> + <property>length</property> + <value Unit="[ft_us]" UNIT="[FT_US]" value="100">100</value> + </unit> + <unit Code="[rlk_us]" CODE="[RLK_US]" isMetric="no" class="us-lengths"> + <name>link for Ramden's chain</name> + <property>length</property> + <value Unit="[rch_us]/100" UNIT="[RCH_US]/100" value="1">1</value> + </unit> + <unit Code="[fth_us]" CODE="[FTH_US]" isMetric="no" class="us-lengths"> + <name>fathom</name> + <property>length</property> + <value Unit="[ft_us]" UNIT="[FT_US]" value="6">6</value> + </unit> + <unit Code="[fur_us]" CODE="[FUR_US]" isMetric="no" class="us-lengths"> + <name>furlong</name> + <property>length</property> + <value Unit="[rd_us]" UNIT="[RD_US]" value="40">40</value> + </unit> + <unit Code="[mi_us]" CODE="[MI_US]" isMetric="no" class="us-lengths"> + <name>mile</name> + <property>length</property> + <value Unit="[fur_us]" UNIT="[FUR_US]" value="8">8</value> + </unit> + <unit Code="[acr_us]" CODE="[ACR_US]" isMetric="no" class="us-lengths"> + <name>acre</name> + <property>area</property> + <value Unit="[rd_us]2" UNIT="[RD_US]2" value="160">160</value> + </unit> + <unit Code="[srd_us]" CODE="[SRD_US]" isMetric="no" class="us-lengths"> + <name>square rod</name> + <property>area</property> + <value Unit="[rd_us]2" UNIT="[RD_US]2" value="1">1</value> + </unit> + <unit Code="[smi_us]" CODE="[SMI_US]" isMetric="no" class="us-lengths"> + <name>square mile</name> + <property>area</property> + <value Unit="[mi_us]2" UNIT="[MI_US]2" value="1">1</value> + </unit> + <unit Code="[sct]" CODE="[SCT]" isMetric="no" class="us-lengths"> + <name>section</name> + <property>area</property> + <value Unit="[mi_us]2" UNIT="[MI_US]2" value="1">1</value> + </unit> + <unit Code="[twp]" CODE="[TWP]" isMetric="no" class="us-lengths"> + <name>township</name> + <property>area</property> + <value Unit="[sct]" UNIT="[SCT]" value="36">36</value> + </unit> + <unit Code="[mil_us]" CODE="[MIL_US]" isMetric="no" class="us-lengths"> + <name>mil</name> + <property>length</property> + <value Unit="[in_us]" UNIT="[IN_US]" value="1e-3">1 × 10<sup>-3</sup> + </value> + </unit> + <unit Code="[in_br]" CODE="[IN_BR]" isMetric="no" class="brit-length"> + <name>inch</name> + <property>length</property> + <value Unit="cm" UNIT="CM" value="2.539998">2.539998</value> + </unit> + <unit Code="[ft_br]" CODE="[FT_BR]" isMetric="no" class="brit-length"> + <name>foot</name> + <property>length</property> + <value Unit="[in_br]" UNIT="[IN_BR]" value="12">12</value> + </unit> + <unit Code="[rd_br]" CODE="[RD_BR]" isMetric="no" class="brit-length"> + <name>rod</name> + <property>length</property> + <value Unit="[ft_br]" UNIT="[FT_BR]" value="16.5">16.5</value> + </unit> + <unit Code="[ch_br]" CODE="[CH_BR]" isMetric="no" class="brit-length"> + <name>Gunter's chain</name> + <property>length</property> + <value Unit="[rd_br]" UNIT="[RD_BR]" value="4">4</value> + </unit> + <unit Code="[lk_br]" CODE="[LK_BR]" isMetric="no" class="brit-length"> + <name>link for Gunter's chain</name> + <property>length</property> + <value Unit="[ch_br]/100" UNIT="[CH_BR]/100" value="1">1</value> + </unit> + <unit Code="[fth_br]" CODE="[FTH_BR]" isMetric="no" class="brit-length"> + <name>fathom</name> + <property>length</property> + <value Unit="[ft_br]" UNIT="[FT_BR]" value="6">6</value> + </unit> + <unit Code="[pc_br]" CODE="[PC_BR]" isMetric="no" class="brit-length"> + <name>pace</name> + <property>length</property> + <value Unit="[ft_br]" UNIT="[FT_BR]" value="2.5">2.5</value> + </unit> + <unit Code="[yd_br]" CODE="[YD_BR]" isMetric="no" class="brit-length"> + <name>yard</name> + <property>length</property> + <value Unit="[ft_br]" UNIT="[FT_BR]" value="3">3</value> + </unit> + <unit Code="[mi_br]" CODE="[MI_BR]" isMetric="no" class="brit-length"> + <name>mile</name> + <property>length</property> + <value Unit="[ft_br]" UNIT="[FT_BR]" value="5280">5280</value> + </unit> + <unit Code="[nmi_br]" CODE="[NMI_BR]" isMetric="no" class="brit-length"> + <name>nautical mile</name> + <property>length</property> + <value Unit="[ft_br]" UNIT="[FT_BR]" value="6080">6080</value> + </unit> + <unit Code="[kn_br]" CODE="[KN_BR]" isMetric="no" class="brit-length"> + <name>knot</name> + <property>velocity</property> + <value Unit="[nmi_br]/h" UNIT="[NMI_BR]/H" value="1">1</value> + </unit> + <unit Code="[acr_br]" CODE="[ACR_BR]" isMetric="no" class="brit-length"> + <name>acre</name> + <property>area</property> + <value Unit="[yd_br]2" UNIT="[YD_BR]2" value="4840">4840</value> + </unit> + <unit Code="[gal_us]" CODE="[GAL_US]" isMetric="no" class="us-volumes"> + <name>Queen Anne's wine gallon</name> + <property>fluid volume</property> + <value Unit="[in_i]3" UNIT="[IN_I]3" value="231">231</value> + </unit> + <unit Code="[bbl_us]" CODE="[BBL_US]" isMetric="no" class="us-volumes"> + <name>barrel</name> + <property>fluid volume</property> + <value Unit="[gal_us]" UNIT="[GAL_US]" value="42">42</value> + </unit> + <unit Code="[qt_us]" CODE="[QT_US]" isMetric="no" class="us-volumes"> + <name>quart</name> + <property>fluid volume</property> + <value Unit="[gal_us]/4" UNIT="[GAL_US]/4" value="1">1</value> + </unit> + <unit Code="[pt_us]" CODE="[PT_US]" isMetric="no" class="us-volumes"> + <name>pint</name> + <property>fluid volume</property> + <value Unit="[qt_us]/2" UNIT="[QT_US]/2" value="1">1</value> + </unit> + <unit Code="[gil_us]" CODE="[GIL_US]" isMetric="no" class="us-volumes"> + <name>gill</name> + <property>fluid volume</property> + <value Unit="[pt_us]/4" UNIT="[PT_US]/4" value="1">1</value> + </unit> + <unit Code="[foz_us]" CODE="[FOZ_US]" isMetric="no" class="us-volumes"> + <name>fluid ounce</name> + <printSymbol>oz fl</printSymbol> + <property>fluid volume</property> + <value Unit="[gil_us]/4" UNIT="[GIL_US]/4" value="1">1</value> + </unit> + <unit Code="[fdr_us]" CODE="[FDR_US]" isMetric="no" class="us-volumes"> + <name>fluid dram</name> + <property>fluid volume</property> + <value Unit="[foz_us]/8" UNIT="[FOZ_US]/8" value="1">1</value> + </unit> + <unit Code="[min_us]" CODE="[MIN_US]" isMetric="no" class="us-volumes"> + <name>minim</name> + <property>fluid volume</property> + <value Unit="[fdr_us]/60" UNIT="[FDR_US]/60" value="1">1</value> + </unit> + <unit Code="[crd_us]" CODE="[CRD_US]" isMetric="no" class="us-volumes"> + <name>cord</name> + <property>fluid volume</property> + <value Unit="[ft_i]3" UNIT="[FT_I]3" value="128">128</value> + </unit> + <unit Code="[bu_us]" CODE="[BU_US]" isMetric="no" class="us-volumes"> + <name>bushel</name> + <property>dry volume</property> + <value Unit="[in_i]3" UNIT="[IN_I]3" value="2150.42">2150.42</value> + </unit> + <unit Code="[gal_wi]" CODE="[GAL_WI]" isMetric="no" class="us-volumes"> + <name>historical winchester gallon</name> + <property>dry volume</property> + <value Unit="[bu_us]/8" UNIT="[BU_US]/8" value="1">1</value> + </unit> + <unit Code="[pk_us]" CODE="[PK_US]" isMetric="no" class="us-volumes"> + <name>peck</name> + <property>dry volume</property> + <value Unit="[bu_us]/4" UNIT="[BU_US]/4" value="1">1</value> + </unit> + <unit Code="[dqt_us]" CODE="[DQT_US]" isMetric="no" class="us-volumes"> + <name>dry quart</name> + <property>dry volume</property> + <value Unit="[pk_us]/8" UNIT="[PK_US]/8" value="1">1</value> + </unit> + <unit Code="[dpt_us]" CODE="[DPT_US]" isMetric="no" class="us-volumes"> + <name>dry pint</name> + <property>dry volume</property> + <value Unit="[dqt_us]/2" UNIT="[DQT_US]/2" value="1">1</value> + </unit> + <unit Code="[tbs_us]" CODE="[TBS_US]" isMetric="no" class="us-volumes"> + <name>tablespoon</name> + <property>volume</property> + <value Unit="[foz_us]/2" UNIT="[FOZ_US]/2" value="1">1</value> + </unit> + <unit Code="[tsp_us]" CODE="[TSP_US]" isMetric="no" class="us-volumes"> + <name>teaspoon</name> + <property>volume</property> + <value Unit="[tbs_us]/3" UNIT="[TBS_US]/3" value="1">1</value> + </unit> + <unit Code="[cup_us]" CODE="[CUP_US]" isMetric="no" class="us-volumes"> + <name>cup</name> + <property>volume</property> + <value Unit="[tbs_us]" UNIT="[TBS_US]" value="16">16</value> + </unit> + <unit Code="[foz_m]" CODE="[FOZ_M]" isMetric="no" class="us-volumes"> + <name>metric fluid ounce</name> + <printSymbol>oz fl</printSymbol> + <property>fluid volume</property> + <value Unit="mL" UNIT="ML" value="30">30</value> + </unit> + <unit Code="[cup_m]" CODE="[CUP_M]" isMetric="no" class="us-volumes"> + <name>metric cup</name> + <property>volume</property> + <value Unit="mL" UNIT="ML" value="240">240</value> + </unit> + <unit Code="[tsp_m]" CODE="[TSP_M]" isMetric="no" class="us-volumes"> + <name>metric teaspoon</name> + <property>volume</property> + <value Unit="mL" UNIT="mL" value="5">5</value> + </unit> + <unit Code="[tbs_m]" CODE="[TBS_M]" isMetric="no" class="us-volumes"> + <name>metric tablespoon</name> + <property>volume</property> + <value Unit="mL" UNIT="mL" value="15">15</value> + </unit> + <unit Code="[gal_br]" CODE="[GAL_BR]" isMetric="no" class="brit-volumes"> + <name>gallon</name> + <property>volume</property> + <value Unit="l" UNIT="L" value="4.54609">4.54609</value> + </unit> + <unit Code="[pk_br]" CODE="[PK_BR]" isMetric="no" class="brit-volumes"> + <name>peck</name> + <property>volume</property> + <value Unit="[gal_br]" UNIT="[GAL_BR]" value="2">2</value> + </unit> + <unit Code="[bu_br]" CODE="[BU_BR]" isMetric="no" class="brit-volumes"> + <name>bushel</name> + <property>volume</property> + <value Unit="[pk_br]" UNIT="[PK_BR]" value="4">4</value> + </unit> + <unit Code="[qt_br]" CODE="[QT_BR]" isMetric="no" class="brit-volumes"> + <name>quart</name> + <property>volume</property> + <value Unit="[gal_br]/4" UNIT="[GAL_BR]/4" value="1">1</value> + </unit> + <unit Code="[pt_br]" CODE="[PT_BR]" isMetric="no" class="brit-volumes"> + <name>pint</name> + <property>volume</property> + <value Unit="[qt_br]/2" UNIT="[QT_BR]/2" value="1">1</value> + </unit> + <unit Code="[gil_br]" CODE="[GIL_BR]" isMetric="no" class="brit-volumes"> + <name>gill</name> + <property>volume</property> + <value Unit="[pt_br]/4" UNIT="[PT_BR]/4" value="1">1</value> + </unit> + <unit Code="[foz_br]" CODE="[FOZ_BR]" isMetric="no" class="brit-volumes"> + <name>fluid ounce</name> + <property>volume</property> + <value Unit="[gil_br]/5" UNIT="[GIL_BR]/5" value="1">1</value> + </unit> + <unit Code="[fdr_br]" CODE="[FDR_BR]" isMetric="no" class="brit-volumes"> + <name>fluid dram</name> + <property>volume</property> + <value Unit="[foz_br]/8" UNIT="[FOZ_BR]/8" value="1">1</value> + </unit> + <unit Code="[min_br]" CODE="[MIN_BR]" isMetric="no" class="brit-volumes"> + <name>minim</name> + <property>volume</property> + <value Unit="[fdr_br]/60" UNIT="[FDR_BR]/60" value="1">1</value> + </unit> + <unit Code="[gr]" CODE="[GR]" isMetric="no" class="avoirdupois"> + <name>grain</name> + <property>mass</property> + <value Unit="mg" UNIT="MG" value="64.79891">64.79891</value> + </unit> + <unit Code="[lb_av]" CODE="[LB_AV]" isMetric="no" class="avoirdupois"> + <name>pound</name> + <printSymbol>lb</printSymbol> + <property>mass</property> + <value Unit="[gr]" UNIT="[GR]" value="7000">7000.0000</value> + </unit> + <unit Code="[oz_av]" CODE="[OZ_AV]" isMetric="no" class="avoirdupois"> + <name>ounce</name> + <printSymbol>oz</printSymbol> + <property>mass</property> + <value Unit="[lb_av]/16" UNIT="[LB_AV]/16" value="1">1</value> + </unit> + <unit Code="[dr_av]" CODE="[DR_AV]" isMetric="no" class="avoirdupois"> + <name>dram</name> + <property>mass</property> + <value Unit="[oz_av]/16" UNIT="[OZ_AV]/16" value="1">1</value> + </unit> + <unit Code="[scwt_av]" CODE="[SCWT_AV]" isMetric="no" class="avoirdupois"> + <name>short hundredweight</name> + <name>U.S. hundredweight</name> + <property>mass</property> + <value Unit="[lb_av]" UNIT="[LB_AV]" value="100">100</value> + </unit> + <unit Code="[lcwt_av]" CODE="[LCWT_AV]" isMetric="no" class="avoirdupois"> + <name>long hunderdweight</name> + <name>British hundredweight</name> + <property>mass</property> + <value Unit="[lb_av]" UNIT="[LB_AV]" value="112">112</value> + </unit> + <unit Code="[ston_av]" CODE="[STON_AV]" isMetric="no" class="avoirdupois"> + <name>short ton</name> + <name>U.S. ton</name> + <property>mass</property> + <value Unit="[scwt_av]" UNIT="[SCWT_AV]" value="20">20</value> + </unit> + <unit Code="[lton_av]" CODE="[LTON_AV]" isMetric="no" class="avoirdupois"> + <name>long ton</name> + <name>British ton</name> + <property>mass</property> + <value Unit="[lcwt_av]" UNIT="[LCWT_AV]" value="20">20</value> + </unit> + <unit Code="[stone_av]" CODE="[STONE_AV]" isMetric="no" class="avoirdupois"> + <name>stone</name> + <name>British stone</name> + <property>mass</property> + <value Unit="[lb_av]" UNIT="[LB_AV]" value="14">14</value> + </unit> + <unit Code="[pwt_tr]" CODE="[PWT_TR]" isMetric="no" class="troy"> + <name>pennyweight</name> + <property>mass</property> + <value Unit="[gr]" UNIT="[GR]" value="24">24</value> + </unit> + <unit Code="[oz_tr]" CODE="[OZ_TR]" isMetric="no" class="troy"> + <name>ounce</name> + <property>mass</property> + <value Unit="[pwt_tr]" UNIT="[PWT_TR]" value="20">20</value> + </unit> + <unit Code="[lb_tr]" CODE="[LB_TR]" isMetric="no" class="troy"> + <name>pound</name> + <property>mass</property> + <value Unit="[oz_tr]" UNIT="[OZ_TR]" value="12">12</value> + </unit> + <unit Code="[sc_ap]" CODE="[SC_AP]" isMetric="no" class="apoth"> + <name>scruple</name> + <property>mass</property> + <value Unit="[gr]" UNIT="[GR]" value="20">20</value> + </unit> + <unit Code="[dr_ap]" CODE="[DR_AP]" isMetric="no" class="apoth"> + <name>dram</name> + <name>drachm</name> + <property>mass</property> + <value Unit="[sc_ap]" UNIT="[SC_AP]" value="3">3</value> + </unit> + <unit Code="[oz_ap]" CODE="[OZ_AP]" isMetric="no" class="apoth"> + <name>ounce</name> + <property>mass</property> + <value Unit="[dr_ap]" UNIT="[DR_AP]" value="8">8</value> + </unit> + <unit Code="[lb_ap]" CODE="[LB_AP]" isMetric="no" class="apoth"> + <name>pound</name> + <property>mass</property> + <value Unit="[oz_ap]" UNIT="[OZ_AP]" value="12">12</value> + </unit> + <unit Code="[oz_m]" CODE="[OZ_M]" isMetric="no" class="apoth"> + <name>metric ounce</name> + <property>mass</property> + <value Unit="g" UNIT="g" value="28">28</value> + </unit> + <unit Code="[lne]" CODE="[LNE]" isMetric="no" class="typeset"> + <name>line</name> + <property>length</property> + <value Unit="[in_i]/12" UNIT="[IN_I]/12" value="1">1</value> + </unit> + <unit Code="[pnt]" CODE="[PNT]" isMetric="no" class="typeset"> + <name>point</name> + <property>length</property> + <value Unit="[lne]/6" UNIT="[LNE]/6" value="1">1</value> + </unit> + <unit Code="[pca]" CODE="[PCA]" isMetric="no" class="typeset"> + <name>pica</name> + <property>length</property> + <value Unit="[pnt]" UNIT="[PNT]" value="12">12</value> + </unit> + <unit Code="[pnt_pr]" CODE="[PNT_PR]" isMetric="no" class="typeset"> + <name>Printer's point</name> + <property>length</property> + <value Unit="[in_i]" UNIT="[IN_I]" value="0.013837">0.013837</value> + </unit> + <unit Code="[pca_pr]" CODE="[PCA_PR]" isMetric="no" class="typeset"> + <name>Printer's pica</name> + <property>length</property> + <value Unit="[pnt_pr]" UNIT="[PNT_PR]" value="12">12</value> + </unit> + <unit Code="[pied]" CODE="[PIED]" isMetric="no" class="typeset"> + <name>pied</name> + <name>French foot</name> + <property>length</property> + <value Unit="cm" UNIT="CM" value="32.48">32.48</value> + </unit> + <unit Code="[pouce]" CODE="[POUCE]" isMetric="no" class="typeset"> + <name>pouce</name> + <name>French inch</name> + <property>length</property> + <value Unit="[pied]/12" UNIT="[PIED]/12" value="1">1</value> + </unit> + <unit Code="[ligne]" CODE="[LIGNE]" isMetric="no" class="typeset"> + <name>ligne</name> + <name>French line</name> + <property>length</property> + <value Unit="[pouce]/12" UNIT="[POUCE]/12" value="1">1</value> + </unit> + <unit Code="[didot]" CODE="[DIDOT]" isMetric="no" class="typeset"> + <name>didot</name> + <name>Didot's point</name> + <property>length</property> + <value Unit="[ligne]/6" UNIT="[LIGNE]/6" value="1">1</value> + </unit> + <unit Code="[cicero]" CODE="[CICERO]" isMetric="no" class="typeset"> + <name>cicero</name> + <name>Didot's pica</name> + <property>length</property> + <value Unit="[didot]" UNIT="[DIDOT]" value="12">12</value> + </unit> + <unit Code="[degF]" CODE="[DEGF]" isMetric="no" isSpecial="yes" class="heat"> + <name>degree Fahrenheit</name> + <printSymbol>°F</printSymbol> + <property>temperature</property> + <value Unit="degf(5 K/9)" UNIT="DEGF(5 K/9)"> + <function name="degF" value="5" Unit="K/9"/> + </value> + </unit> + <unit Code="[degR]" CODE="[degR]" isMetric="no" class="heat"> + <name>degree Rankine</name> + <printSymbol>°R</printSymbol> + <property>temperature</property> + <value value="5" Unit="K/9" UNIT="K/9">5</value> + </unit> + <unit Code="[degRe]" CODE="[degRe]" isMetric="no" isSpecial="yes" class="heat"> + <name>degree Réaumur</name> + <printSymbol>°Ré</printSymbol> + <property>temperature</property> + <value Unit="degre(5 K/4)" UNIT="DEGRE(5 K/4)"> + <function name="degRe" value="5" Unit="K/4"/> + </value> + </unit> + <unit Code="cal_[15]" CODE="CAL_[15]" isMetric="yes" class="heat"> + <name>calorie at 15 °C</name> + <printSymbol>cal<sub>15°C</sub> + </printSymbol> + <property>energy</property> + <value Unit="J" UNIT="J" value="4.18580">4.18580</value> + </unit> + <unit Code="cal_[20]" CODE="CAL_[20]" isMetric="yes" class="heat"> + <name>calorie at 20 °C</name> + <printSymbol>cal<sub>20°C</sub> + </printSymbol> + <property>energy</property> + <value Unit="J" UNIT="J" value="4.18190">4.18190</value> + </unit> + <unit Code="cal_m" CODE="CAL_M" isMetric="yes" class="heat"> + <name>mean calorie</name> + <printSymbol>cal<sub>m</sub> + </printSymbol> + <property>energy</property> + <value Unit="J" UNIT="J" value="4.19002">4.19002</value> + </unit> + <unit Code="cal_IT" CODE="CAL_IT" isMetric="yes" class="heat"> + <name>international table calorie</name> + <printSymbol>cal<sub>IT</sub> + </printSymbol> + <property>energy</property> + <value Unit="J" UNIT="J" value="4.1868">4.1868</value> + </unit> + <unit Code="cal_th" CODE="CAL_TH" isMetric="yes" class="heat"> + <name>thermochemical calorie</name> + <printSymbol>cal<sub>th</sub> + </printSymbol> + <property>energy</property> + <value Unit="J" UNIT="J" value="4.184">4.184</value> + </unit> + <unit Code="cal" CODE="CAL" isMetric="yes" class="heat"> + <name>calorie</name> + <printSymbol>cal</printSymbol> + <property>energy</property> + <value Unit="cal_th" UNIT="CAL_TH" value="1">1</value> + </unit> + <unit Code="[Cal]" CODE="[CAL]" isMetric="no" class="heat"> + <name>nutrition label Calories</name> + <printSymbol>Cal</printSymbol> + <property>energy</property> + <value Unit="kcal_th" UNIT="KCAL_TH" value="1">1</value> + </unit> + <unit Code="[Btu_39]" CODE="[BTU_39]" isMetric="no" class="heat"> + <name>British thermal unit at 39 °F</name> + <printSymbol>Btu<sub>39°F</sub> + </printSymbol> + <property>energy</property> + <value Unit="kJ" UNIT="kJ" value="1.05967">1.05967</value> + </unit> + <unit Code="[Btu_59]" CODE="[BTU_59]" isMetric="no" class="heat"> + <name>British thermal unit at 59 °F</name> + <printSymbol>Btu<sub>59°F</sub> + </printSymbol> + <property>energy</property> + <value Unit="kJ" UNIT="kJ" value="1.05480">1.05480</value> + </unit> + <unit Code="[Btu_60]" CODE="[BTU_60]" isMetric="no" class="heat"> + <name>British thermal unit at 60 °F</name> + <printSymbol>Btu<sub>60°F</sub> + </printSymbol> + <property>energy</property> + <value Unit="kJ" UNIT="kJ" value="1.05468">1.05468</value> + </unit> + <unit Code="[Btu_m]" CODE="[BTU_M]" isMetric="no" class="heat"> + <name>mean British thermal unit</name> + <printSymbol>Btu<sub>m</sub> + </printSymbol> + <property>energy</property> + <value Unit="kJ" UNIT="kJ" value="1.05587">1.05587</value> + </unit> + <unit Code="[Btu_IT]" CODE="[BTU_IT]" isMetric="no" class="heat"> + <name>international table British thermal unit</name> + <printSymbol>Btu<sub>IT</sub> + </printSymbol> + <property>energy</property> + <value Unit="kJ" UNIT="kJ" value="1.05505585262">1.05505585262</value> + </unit> + <unit Code="[Btu_th]" CODE="[BTU_TH]" isMetric="no" class="heat"> + <name>thermochemical British thermal unit</name> + <printSymbol>Btu<sub>th</sub> + </printSymbol> + <property>energy</property> + <value Unit="kJ" UNIT="kJ" value="1.054350">1.054350</value> + </unit> + <unit Code="[Btu]" CODE="[BTU]" isMetric="no" class="heat"> + <name>British thermal unit</name> + <printSymbol>btu</printSymbol> + <property>energy</property> + <value Unit="[Btu_th]" UNIT="[BTU_TH]" value="1">1</value> + </unit> + <unit Code="[HP]" CODE="[HP]" isMetric="no" class="heat"> + <name>horsepower</name> + <property>power</property> + <value Unit="[ft_i].[lbf_av]/s" UNIT="[FT_I].[LBF_AV]/S" value="550">550</value> + </unit> + <unit Code="tex" CODE="TEX" isMetric="yes" class="heat"> + <name>tex</name> + <printSymbol>tex</printSymbol> + <property>linear mass density (of textile thread)</property> + <value value="1" Unit="g/km" UNIT="G/KM">1</value> + </unit> + <unit Code="[den]" CODE="[DEN]" isMetric="no" class="heat"> + <name>Denier</name> + <printSymbol>den</printSymbol> + <property>linear mass density (of textile thread)</property> + <value value="1" Unit="g/9/km" UNIT="G/9/KM">1</value> + </unit> + <unit Code="m[H2O]" CODE="M[H2O]" isMetric="yes" class="clinical"> + <name>meter of water column</name> + <printSymbol>m H<sub> + <r>2</r> + </sub>O</printSymbol> + <property>pressure</property> + <value Unit="kPa" UNIT="KPAL" value="980665e-5">9.80665</value> + </unit> + <unit Code="m[Hg]" CODE="M[HG]" isMetric="yes" class="clinical"> + <name>meter of mercury column</name> + <printSymbol>m Hg</printSymbol> + <property>pressure</property> + <value Unit="kPa" UNIT="KPAL" value="133.3220">133.3220</value> + </unit> + <unit Code="[in_i'H2O]" CODE="[IN_I'H2O]" isMetric="no" class="clinical"> + <name>inch of water column</name> + <printSymbol>in H<sub> + <r>2</r> + </sub>O</printSymbol> + <property>pressure</property> + <value Unit="m[H2O].[in_i]/m" UNIT="M[H2O].[IN_I]/M" value="1">1</value> + </unit> + <unit Code="[in_i'Hg]" CODE="[IN_I'HG]" isMetric="no" class="clinical"> + <name>inch of mercury column</name> + <printSymbol>in Hg</printSymbol> + <property>pressure</property> + <value Unit="m[Hg].[in_i]/m" UNIT="M[HG].[IN_I]/M" value="1">1</value> + </unit> + <unit Code="[PRU]" CODE="[PRU]" isMetric="no" class="clinical"> + <name>peripheral vascular resistance unit</name> + <printSymbol>P.R.U.</printSymbol> + <property>fluid resistance</property> + <value Unit="mm[Hg].s/ml" UNIT="MM[HG].S/ML" value="1">1</value> + </unit> + <unit Code="[wood'U]" CODE="[WOOD'U]" isMetric="no" class="clinical"> + <name>Wood unit</name> + <printSymbol>Wood U.</printSymbol> + <property>fluid resistance</property> + <value Unit="mm[Hg].min/L" UNIT="MM[HG].MIN/L" value="1">1</value> + </unit> + <unit Code="[diop]" CODE="[DIOP]" isMetric="no" class="clinical"> + <name>diopter</name> + <printSymbol>dpt</printSymbol> + <property>refraction of a lens</property> + <value Unit="/m" UNIT="/M" value="1">1</value> + </unit> + <unit Code="[p'diop]" CODE="[P'DIOP]" isMetric="no" isSpecial="yes" class="clinical"> + <name>prism diopter</name> + <printSymbol>PD</printSymbol> + <property>refraction of a prism</property> + <value Unit="100tan(1 rad)" UNIT="100TAN(1 RAD)"> + <function name="tanTimes100" value="1" Unit="deg"/> + </value> + </unit> + <unit Code="%[slope]" CODE="%[SLOPE]" isMetric="no" isSpecial="yes" class="clinical"> + <name>percent of slope</name> + <printSymbol>%</printSymbol> + <property>slope</property> + <value Unit="100tan(1 rad)" UNIT="100TAN(1 RAD)"> + <function name="100tan" value="1" Unit="deg"/> + </value> + </unit> + <unit Code="[mesh_i]" CODE="[MESH_I]" isMetric="no" class="clinical"> + <name>mesh</name> + <property>lineic number</property> + <value Unit="/[in_i]" UNIT="/[IN_I]" value="1">1</value> + </unit> + <unit Code="[Ch]" CODE="[CH]" isMetric="no" class="clinical"> + <name>Charrière</name> + <name>french</name> + <printSymbol>Ch</printSymbol> + <property>gauge of catheters</property> + <value Unit="mm/3" UNIT="MM/3" value="1">1</value> + </unit> + <unit Code="[drp]" CODE="[DRP]" isMetric="no" class="clinical"> + <name>drop</name> + <printSymbol>drp</printSymbol> + <property>volume</property> + <value Unit="ml/20" UNIT="ML/20" value="1">1</value> + </unit> + <unit Code="[hnsf'U]" CODE="[HNSF'U]" isMetric="no" class="clinical"> + <name>Hounsfield unit</name> + <printSymbol>HF</printSymbol> + <property>x-ray attenuation</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[MET]" CODE="[MET]" isMetric="no" class="clinical"> + <name>metabolic equivalent</name> + <printSymbol>MET</printSymbol> + <property>metabolic cost of physical activity</property> + <value Unit="mL/min/kg" UNIT="ML/MIN/KG" value="3.5">3.5</value> + </unit> + <unit Code="[hp'_X]" CODE="[HP'_X]" isMetric="no" isSpecial="yes" class="clinical"> + <name>homeopathic potency of decimal series (retired)</name> + <printSymbol>X</printSymbol> + <property>homeopathic potency (retired)</property> + <value Unit="hpX(1 1)" UNIT="HPX(1 1)"> + <function name="hpX" value="1" Unit="1"/> + </value> + </unit> + <unit Code="[hp'_C]" CODE="[HP'_C]" isMetric="no" isSpecial="yes" class="clinical"> + <name>homeopathic potency of centesimal series (retired)</name> + <printSymbol>C</printSymbol> + <property>homeopathic potency (retired)</property> + <value Unit="hpC(1 1)" UNIT="HPC(1 1)"> + <function name="hpC" value="1" Unit="1"/> + </value> + </unit> + <unit Code="[hp'_M]" CODE="[HP'_M]" isMetric="no" isSpecial="yes" class="clinical"> + <name>homeopathic potency of millesimal series (retired)</name> + <printSymbol>M</printSymbol> + <property>homeopathic potency (retired)</property> + <value Unit="hpM(1 1)" UNIT="HPM(1 1)"> + <function name="hpM" value="1" Unit="1"/> + </value> + </unit> + <unit Code="[hp'_Q]" CODE="[HP'_Q]" isMetric="no" isSpecial="yes" class="clinical"> + <name>homeopathic potency of quintamillesimal series (retired)</name> + <printSymbol>Q</printSymbol> + <property>homeopathic potency (retired)</property> + <value Unit="hpQ(1 1)" UNIT="HPQ(1 1)"> + <function name="hpQ" value="1" Unit="1"/> + </value> + </unit> + <unit Code="[hp_X]" CODE="[HP_X]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of decimal hahnemannian series</name> + <printSymbol>X</printSymbol> + <property>homeopathic potency (Hahnemann)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[hp_C]" CODE="[HP_C]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of centesimal hahnemannian series</name> + <printSymbol>C</printSymbol> + <property>homeopathic potency (Hahnemann)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[hp_M]" CODE="[HP_M]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of millesimal hahnemannian series</name> + <printSymbol>M</printSymbol> + <property>homeopathic potency (Hahnemann)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[hp_Q]" CODE="[HP_Q]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of quintamillesimal hahnemannian series</name> + <printSymbol>Q</printSymbol> + <property>homeopathic potency (Hahnemann)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[kp_X]" CODE="[KP_X]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of decimal korsakovian series</name> + <printSymbol>X</printSymbol> + <property>homeopathic potency (Korsakov)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[kp_C]" CODE="[KP_C]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of centesimal korsakovian series</name> + <printSymbol>C</printSymbol> + <property>homeopathic potency (Korsakov)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[kp_M]" CODE="[KP_M]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of millesimal korsakovian series</name> + <printSymbol>M</printSymbol> + <property>homeopathic potency (Korsakov)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[kp_Q]" CODE="[KP_Q]" isMetric="no" isArbitrary="yes" class="clinical"> + <name>homeopathic potency of quintamillesimal korsakovian series</name> + <printSymbol>Q</printSymbol> + <property>homeopathic potency (Korsakov)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="eq" CODE="EQ" isMetric="yes" class="chemical"> + <name>equivalents</name> + <printSymbol>eq</printSymbol> + <property>amount of substance</property> + <value Unit="mol" UNIT="MOL" value="1">1</value> + </unit> + <unit Code="osm" CODE="OSM" isMetric="yes" class="chemical"> + <name>osmole</name> + <printSymbol>osm</printSymbol> + <property>amount of substance (dissolved particles)</property> + <value Unit="mol" UNIT="MOL" value="1">1</value> + </unit> + <unit Code="[pH]" CODE="[PH]" isMetric="no" isSpecial="yes" class="chemical"> + <name>pH</name> + <printSymbol>pH</printSymbol> + <property>acidity</property> + <value Unit="pH(1 mol/l)" UNIT="PH(1 MOL/L)"> + <function name="pH" value="1" Unit="mol/l"/> + </value> + </unit> + <unit Code="g%" CODE="G%" isMetric="yes" class="chemical"> + <name>gram percent</name> + <printSymbol>g%</printSymbol> + <property>mass concentration</property> + <value Unit="g/dl" UNIT="G/DL" value="1">1</value> + </unit> + <unit Code="[S]" CODE="[S]" isMetric="no" class="chemical"> + <name>Svedberg unit</name> + <printSymbol>S</printSymbol> + <property>sedimentation coefficient</property> + <value Unit="10*-13.s" UNIT="10*-13.S" value="1">1</value> + </unit> + <unit Code="[HPF]" CODE="[HPF]" isMetric="no" class="chemical"> + <name>high power field</name> + <printSymbol>HPF</printSymbol> + <property>view area in microscope</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[LPF]" CODE="[LPF]" isMetric="no" class="chemical"> + <name>low power field</name> + <printSymbol>LPF</printSymbol> + <property>view area in microscope</property> + <value Unit="1" UNIT="1" value="100">100</value> + </unit> + <unit Code="kat" CODE="KAT" isMetric="yes" class="chemical"> + <name>katal</name> + <printSymbol>kat</printSymbol> + <property>catalytic activity</property> + <value Unit="mol/s" UNIT="MOL/S" value="1">1</value> + </unit> + <unit Code="U" CODE="U" isMetric="yes" class="chemical"> + <name>Unit</name> + <printSymbol>U</printSymbol> + <property>catalytic activity</property> + <value Unit="umol/min" UNIT="UMOL/MIN" value="1">1</value> + </unit> + <unit Code="[iU]" CODE="[IU]" isMetric="yes" isArbitrary="yes" class="chemical"> + <name>international unit</name> + <printSymbol>IU</printSymbol> + <property>arbitrary</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[IU]" CODE="[IU]" isMetric="yes" isArbitrary="yes" class="chemical"> + <name>international unit</name> + <printSymbol>i.U.</printSymbol> + <property>arbitrary</property> + <value Unit="[iU]" UNIT="[IU]" value="1">1</value> + </unit> + <unit Code="[arb'U]" CODE="[ARB'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>arbitary unit</name> + <printSymbol>arb. U</printSymbol> + <property>arbitrary</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[USP'U]" CODE="[USP'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>United States Pharmacopeia unit</name> + <printSymbol>U.S.P.</printSymbol> + <property>arbitrary</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[GPL'U]" CODE="[GPL'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>GPL unit</name> + <property>biologic activity of anticardiolipin IgG</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[MPL'U]" CODE="[MPL'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>MPL unit</name> + <property>biologic activity of anticardiolipin IgM</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[APL'U]" CODE="[APL'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>APL unit</name> + <property>biologic activity of anticardiolipin IgA</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[beth'U]" CODE="[BETH'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>Bethesda unit</name> + <property>biologic activity of factor VIII inhibitor</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[anti'Xa'U]" CODE="[ANTI'XA'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>anti factor Xa unit</name> + <property>biologic activity of factor Xa inhibitor (heparin)</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[todd'U]" CODE="[TODD'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>Todd unit</name> + <property>biologic activity antistreptolysin O</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[dye'U]" CODE="[DYE'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>Dye unit</name> + <property>biologic activity of amylase</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[smgy'U]" CODE="[SMGY'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>Somogyi unit</name> + <property>biologic activity of amylase</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[bdsk'U]" CODE="[BDSK'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>Bodansky unit</name> + <property>biologic activity of phosphatase</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[ka'U]" CODE="[KA'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>King-Armstrong unit</name> + <property>biologic activity of phosphatase</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[knk'U]" CODE="[KNK'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>Kunkel unit</name> + <property>arbitrary biologic activity</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[mclg'U]" CODE="[MCLG'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>Mac Lagan unit</name> + <property>arbitrary biologic activity</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[tb'U]" CODE="[TB'U]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>tuberculin unit</name> + <property>biologic activity of tuberculin</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[CCID_50]" CODE="[CCID_50]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>50% cell culture infectious dose</name> + <printSymbol>CCID<sub>50</sub> + </printSymbol> + <property>biologic activity (infectivity) of an infectious agent preparation</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[TCID_50]" CODE="[TCID_50]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>50% tissue culture infectious dose</name> + <printSymbol>TCID<sub>50</sub> + </printSymbol> + <property>biologic activity (infectivity) of an infectious agent preparation</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[EID_50]" CODE="[EID_50]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>50% embryo infectious dose</name> + <printSymbol>EID<sub>50</sub> + </printSymbol> + <property>biologic activity (infectivity) of an infectious agent preparation</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[PFU]" CODE="[PFU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>plaque forming units</name> + <printSymbol>PFU</printSymbol> + <property>amount of an infectious agent</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[FFU]" CODE="[FFU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>focus forming units</name> + <printSymbol>FFU</printSymbol> + <property>amount of an infectious agent</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[CFU]" CODE="[CFU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>colony forming units</name> + <printSymbol>CFU</printSymbol> + <property>amount of a proliferating organism</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[IR]" CODE="[IR]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>index of reactivity</name> + <printSymbol>IR</printSymbol> + <property>amount of an allergen callibrated through in-vivo testing using the Stallergenes® method.</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[BAU]" CODE="[BAU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>bioequivalent allergen unit</name> + <printSymbol>BAU</printSymbol> + <property>amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[AU]" CODE="[AU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>allergen unit</name> + <printSymbol>AU</printSymbol> + <property>procedure defined amount of an allergen using some reference standard</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[Amb'a'1'U]" CODE="[AMB'A'1'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>allergen unit for Ambrosia artemisiifolia</name> + <printSymbol>Amb a 1 U</printSymbol> + <property>procedure defined amount of the major allergen of ragweed.</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[PNU]" CODE="[PNU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>protein nitrogen unit</name> + <printSymbol>PNU</printSymbol> + <property>procedure defined amount of a protein substance</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[Lf]" CODE="[LF]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>Limit of flocculation</name> + <printSymbol>Lf</printSymbol> + <property>procedure defined amount of an antigen substance</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[D'ag'U]" CODE="[D'AG'U]" isMetric="no" isArbitrary="yes" + class="chemical"> + <name>D-antigen unit</name> + <printSymbol/> + <property>procedure defined amount of a poliomyelitis d-antigen substance</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[FEU]" CODE="[FEU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>fibrinogen equivalent unit</name> + <printSymbol/> + <property>amount of fibrinogen broken down into the measured d-dimers</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[ELU]" CODE="[ELU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>ELISA unit</name> + <printSymbol/> + <property>arbitrary ELISA unit</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="[EU]" CODE="[EU]" isMetric="no" isArbitrary="yes" class="chemical"> + <name>Ehrlich unit</name> + <printSymbol/> + <property>Ehrlich unit</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="Np" CODE="NEP" isMetric="yes" isSpecial="yes" class="levels"> + <name>neper</name> + <printSymbol>Np</printSymbol> + <property>level</property> + <value Unit="ln(1 1)" UNIT="LN(1 1)"> + <function name="ln" value="1" Unit="1"/> + </value> + </unit> + <unit Code="B" CODE="B" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel</name> + <printSymbol>B</printSymbol> + <property>level</property> + <value Unit="lg(1 1)" UNIT="LG(1 1)"> + <function name="lg" value="1" Unit="1"/> + </value> + </unit> + <unit Code="B[SPL]" CODE="B[SPL]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel sound pressure</name> + <printSymbol>B(SPL)</printSymbol> + <property>pressure level</property> + <value Unit="2lg(2 10*-5.Pa)" UNIT="2LG(2 10*-5.PAL)"> + <function name="lgTimes2" value="2" Unit="10*-5.Pa"/> + </value> + </unit> + <unit Code="B[V]" CODE="B[V]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel volt</name> + <printSymbol>B(V)</printSymbol> + <property>electric potential level</property> + <value Unit="2lg(1 V)" UNIT="2LG(1 V)"> + <function name="lgTimes2" value="1" Unit="V"/> + </value> + </unit> + <unit Code="B[mV]" CODE="B[MV]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel millivolt</name> + <printSymbol>B(mV)</printSymbol> + <property>electric potential level</property> + <value Unit="2lg(1 mV)" UNIT="2LG(1 MV)"> + <function name="lgTimes2" value="1" Unit="mV"/> + </value> + </unit> + <unit Code="B[uV]" CODE="B[UV]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel microvolt</name> + <printSymbol>B(μV)</printSymbol> + <property>electric potential level</property> + <value Unit="2lg(1 uV)" UNIT="2LG(1 UV)"> + <function name="lgTimes2" value="1" Unit="uV"/> + </value> + </unit> + <unit Code="B[10.nV]" CODE="B[10.NV]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel 10 nanovolt</name> + <printSymbol>B(10 nV)</printSymbol> + <property>electric potential level</property> + <value Unit="2lg(10 nV)" UNIT="2LG(10 NV)"> + <function name="lgTimes2" value="10" Unit="nV"/> + </value> + </unit> + <unit Code="B[W]" CODE="B[W]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel watt</name> + <printSymbol>B(W)</printSymbol> + <property>power level</property> + <value Unit="lg(1 W)" UNIT="LG(1 W)"> + <function name="lg" value="1" Unit="W"/> + </value> + </unit> + <unit Code="B[kW]" CODE="B[KW]" isMetric="yes" isSpecial="yes" class="levels"> + <name>bel kilowatt</name> + <printSymbol>B(kW)</printSymbol> + <property>power level</property> + <value Unit="lg(1 kW)" UNIT="LG(1 KW)"> + <function name="lg" value="1" Unit="kW"/> + </value> + </unit> + <unit Code="st" CODE="STR" isMetric="yes" class="misc"> + <name>stere</name> + <printSymbol>st</printSymbol> + <property>volume</property> + <value Unit="m3" UNIT="M3" value="1">1</value> + </unit> + <unit Code="Ao" CODE="AO" isMetric="no" class="misc"> + <name>Ångström</name> + <printSymbol>Å</printSymbol> + <property>length</property> + <value Unit="nm" UNIT="NM" value="0.1">0.1</value> + </unit> + <unit Code="b" CODE="BRN" isMetric="no" class="misc"> + <name>barn</name> + <printSymbol>b</printSymbol> + <property>action area</property> + <value Unit="fm2" UNIT="FM2" value="100">100</value> + </unit> + <unit Code="att" CODE="ATT" isMetric="no" class="misc"> + <name>technical atmosphere</name> + <printSymbol>at</printSymbol> + <property>pressure</property> + <value Unit="kgf/cm2" UNIT="KGF/CM2" value="1">1</value> + </unit> + <unit Code="mho" CODE="MHO" isMetric="yes" class="misc"> + <name>mho</name> + <printSymbol>mho</printSymbol> + <property>electric conductance</property> + <value Unit="S" UNIT="S" value="1">1</value> + </unit> + <unit Code="[psi]" CODE="[PSI]" isMetric="no" class="misc"> + <name>pound per sqare inch</name> + <printSymbol>psi</printSymbol> + <property>pressure</property> + <value Unit="[lbf_av]/[in_i]2" UNIT="[LBF_AV]/[IN_I]2" value="1">1</value> + </unit> + <unit Code="circ" CODE="CIRC" isMetric="no" class="misc"> + <name>circle</name> + <printSymbol>circ</printSymbol> + <property>plane angle</property> + <value Unit="[pi].rad" UNIT="[PI].RAD" value="2">2</value> + </unit> + <unit Code="sph" CODE="SPH" isMetric="no" class="misc"> + <name>spere</name> + <printSymbol>sph</printSymbol> + <property>solid angle</property> + <value Unit="[pi].sr" UNIT="[PI].SR" value="4">4</value> + </unit> + <unit Code="[car_m]" CODE="[CAR_M]" isMetric="no" class="misc"> + <name>metric carat</name> + <printSymbol>ct<sub>m</sub> + </printSymbol> + <property>mass</property> + <value Unit="g" UNIT="G" value="2e-1">0.2</value> + </unit> + <unit Code="[car_Au]" CODE="[CAR_AU]" isMetric="no" class="misc"> + <name>carat of gold alloys</name> + <printSymbol>ct<sub> + <r>Au</r> + </sub> + </printSymbol> + <property>mass fraction</property> + <value Unit="/24" UNIT="/24" value="1">1</value> + </unit> + <unit Code="[smoot]" CODE="[SMOOT]" isMetric="no" class="misc"> + <name>Smoot</name> + <printSymbol/> + <property>length</property> + <value Unit="[in_i]" UNIT="[IN_I]" value="67">67</value> + </unit> + <unit Code="[m/s2/Hz^(1/2)]" CODE="[M/S2/HZ^(1/2)]" isMetric="no" isSpecial="yes" + class="misc"> + <name>meter per square seconds per square root of hertz</name> + <printSymbol/> + <property>amplitude spectral density</property> + <value Unit="sqrt(1 m2/s4/Hz)" UNIT="SQRT(1 M2/S4/HZ)"> + <function name="sqrt" value="1" Unit="m2/s4/Hz"/> + </value> + </unit> + <unit Code="bit_s" CODE="BIT_S" isMetric="no" isSpecial="yes" class="infotech"> + <name>bit</name> + <printSymbol>bit<sub>s</sub> + </printSymbol> + <property>amount of information</property> + <value Unit="ld(1 1)" UNIT="ld(1 1)"> + <function name="ld" value="1" Unit="1"/> + </value> + </unit> + <unit Code="bit" CODE="BIT" isMetric="yes" class="infotech"> + <name>bit</name> + <printSymbol>bit</printSymbol> + <property>amount of information</property> + <value Unit="1" UNIT="1" value="1">1</value> + </unit> + <unit Code="By" CODE="BY" isMetric="yes" class="infotech"> + <name>byte</name> + <printSymbol>B</printSymbol> + <property>amount of information</property> + <value Unit="bit" UNIT="bit" value="8">8</value> + </unit> + <unit Code="Bd" CODE="BD" isMetric="yes" class="infotech"> + <name>baud</name> + <printSymbol>Bd</printSymbol> + <property>signal transmission rate</property> + <value Unit="/s" UNIT="/s" value="1">1</value> + </unit> + <prefix Code="Ki" CODE="KIB"> + <name>kibi</name> + <printSymbol>Ki</printSymbol> + <value value="1024">1024</value> + </prefix> + <prefix Code="Mi" CODE="MIB"> + <name>mebi</name> + <printSymbol>Mi</printSymbol> + <value value="1048576">1048576</value> + </prefix> + <prefix Code="Gi" CODE="GIB"> + <name>gibi</name> + <printSymbol>Gi</printSymbol> + <value value="1073741824">1073741824</value> + </prefix> + <prefix Code="Ti" CODE="TIB"> + <name>tebi</name> + <printSymbol>Ti</printSymbol> + <value value="1099511627776">1099511627776</value> + </prefix> +</root> \ No newline at end of file diff --git a/org.hl7.fhir.r4/src/test/resources/unicode.xml b/org.hl7.fhir.r4/src/test/resources/unicode.xml new file mode 100644 index 000000000..061504bce --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/unicode.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<CodeSystem xmlns="http://hl7.org/fhir"> + <status value="active"/> + <caseSensitive value="true"/> + <content value="complete"/> + <concept> + <code value="125901"/> + <display value="CARDIOsphere"/> + <definition value="CARDIOsphere™ ultrasonic contrast agent produced by POINT Biomedical"/> + </concept> +</CodeSystem> diff --git a/org.hl7.fhir.r4/src/test/resources/valueset-example-expansion.xml b/org.hl7.fhir.r4/src/test/resources/valueset-example-expansion.xml new file mode 100644 index 000000000..ad8e162a3 --- /dev/null +++ b/org.hl7.fhir.r4/src/test/resources/valueset-example-expansion.xml @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="UTF-8"?><ValueSet xmlns="http://hl7.org/fhir"> + <id value="example-expansion"/> + <meta> + <!-- many expansions are not shareable, but this one is --> + <profile value="http://hl7.org/fhir/StructureDefinition/shareablevalueset"/> + </meta> + <text> + <status value="generated"/> + <div xmlns="http://www.w3.org/1999/xhtml"> + <table class="grid"> + <tr> + <td>http://loinc.org</td> + <td>14647-2</td> + <td>Cholesterol [Moles/volume] in Serum or Plasma</td> + </tr> + <tr> + <td colspan="3"> + <b>Additional Cholesterol codes</b> + </td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>2093-3</td> + <td>Cholesterol [Mass/volume] in Serum or Plasma</td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>48620-9</td> + <td>Cholesterol [Mass/volume] in Serum or Plasma ultracentrifugate</td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>9342-7</td> + <td>Cholesterol [Percentile]</td> + </tr> + <tr> + <td colspan="3"> + <b>Cholesterol Ratios</b> + </td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>2096-6</td> + <td>Cholesterol/Triglyceride [Mass Ratio] in Serum or Plasma</td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>35200-5</td> + <td>Cholesterol/Triglyceride [Mass Ratio] in Serum or Plasma</td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>48089-7</td> + <td>Cholesterol/Apolipoprotein B [Molar ratio] in Serum or Plasma</td> + </tr> + <tr> + <td>http://loinc.org</td> + <td>55838-7</td> + <td>Cholesterol/Phospholipid [Molar ratio] in Serum or Plasma</td> + </tr> + </table> + </div> + </text> + <url value="http://hl7.org/fhir/ValueSet/example-expansion"/> + <version value="20150622"/> + <name value="LOINC Codes for Cholesterol in Serum/Plasma"/> + <status value="draft"/> + <experimental value="true"/> + <!-- Expansions that are not intended for persistence often do not have + all the metadata. But this one, intended for persistence, does --> + <date value="2015-06-22"/> + <publisher value="FHIR Project team"/> + <contact> + <telecom> + <system value="url"/> + <value value="http://hl7.org/fhir"/> + </telecom> + </contact> + <description value="This is an example value set that includes all the LOINC codes for serum/plasma cholesterol from v2.36."/> + <copyright value="This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use."/> + <!-- it's optional whether to include the content logical definition, but + when an expansion is being persisted, it's better to do so (avoids + subsequent mystification as to what the intent was) + --> + <compose> + <include> + <system value="http://loinc.org"/> + <filter> + <property value="parent"/> + <op value="="/> + <value value="LP43571-6"/> + </filter> + </include> + </compose> + <!-- + ok, and now the expansion + --> + <expansion> + <!-- a reference to the original content - if there is one. Note that + when you store an expansion, there often won't be one --> + <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expansionSource"> + <valueUri value="http://hl7.org/fhir/ValueSet/example-extensional"/> + </extension> + <!-- always assigned to any expansion, this is cacheable id --> + <identifier value="urn:uuid:42316ff8-2714-4680-9980-f37a6d1a71bc"/> + <!-- this instance of expansion --> + <timestamp value="2015-06-22T13:56:07Z"/> + <!-- it's useful to routinely fill out the total --> + <total value="8"/> + <!-- providing an offset - implies that this expansion was requested using paging - --> + <offset value="0"/> + <!-- + now, parameters that describe how the expansion was generated. + These may help with managing caching, or limit its use + (e.g. this expansion was generated for a text filter) --> + <parameter> + <!-- for now, parameter names and values are server specific. + it is likely these will be standardised in a future version. + + This example: underlying LOINC version --> + <name value="version"/> + <valueString value="2.50"/> + </parameter> + <!-- and the actual expansion --> + <!-- + this expansion is made as a hierarchy - a preferred code, followed by two + sets of codes categorized by a label. This is to help a human user + navigate the list (e.g. in a picklist) + + Note that the hierarchy might not have anything to do with the + definitions of the codes (e.g. could be divided into common and less common) + + Building a hierarchy like this is not explicitly specified in a standard value set, + but may be controlled by extensions, the expansion profile, or just performed + by the expansion service. + --> + <contains> + <system value="http://loinc.org"/> + <!-- + the version can be specified for either the expansion, or + each individual codes. Technically, these aren't quite the same + thing, but it would be pretty weird for them to differ using LOINC + --> + <version value="2.50"/> + <code value="14647-2"/> + <display value="Cholesterol [Moles/volume] in Serum or Plasma"/> + </contains> + <contains> + <abstract value="true"/> + <display value="Cholesterol codes"/> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="2093-3"/> + <display value="Cholesterol [Mass/volume] in Serum or Plasma"/> + </contains> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="48620-9"/> + <display value="Cholesterol [Mass/volume] in Serum or Plasma ultracentrifugate"/> + </contains> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="9342-7"/> + <display value="Cholesterol [Percentile]"/> + </contains> + </contains> + <contains> + <abstract value="true"/> + <display value="Cholesterol Ratios"/> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="2096-6"/> + <display value="Cholesterol/Triglyceride [Mass Ratio] in Serum or Plasma"/> + </contains> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="35200-5"/> + <display value="Cholesterol/Triglyceride [Mass Ratio] in Serum or Plasma"/> + </contains> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="48089-7"/> + <display value="Cholesterol/Apolipoprotein B [Molar ratio] in Serum or Plasma"/> + </contains> + <contains> + <system value="http://loinc.org"/> + <version value="2.50"/> + <code value="55838-7"/> + <display value="Cholesterol/Phospholipid [Molar ratio] in Serum or Plasma"/> + </contains> + </contains> + </expansion> +</ValueSet> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/conversion/tests/R3R4ConversionTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/conversion/tests/R3R4ConversionTests.java index f98ec6a84..54ee3aa5b 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/conversion/tests/R3R4ConversionTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/conversion/tests/R3R4ConversionTests.java @@ -33,9 +33,9 @@ import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r4.model.ResourceFactory; import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.model.StructureMap; import org.hl7.fhir.r4.model.UriType; -import org.hl7.fhir.r4.test.support.TestingUtilities; import org.hl7.fhir.r4.utils.IResourceValidator; import org.hl7.fhir.r4.utils.IResourceValidator.IValidatorResourceFetcher; import org.hl7.fhir.r4.utils.IResourceValidator.ReferenceValidationPolicy; diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/TransformationTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/TransformationTests.java index ca6aaa42d..a506e20cb 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/TransformationTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/TransformationTests.java @@ -2,7 +2,7 @@ package org.hl7.fhir.validation.r4.tests; import java.io.File; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.validation.Validator; import org.hl7.fhir.utilities.Utilities; import org.junit.Test; diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationEngineTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationEngineTests.java index fadc74872..b99c3c66e 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationEngineTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationEngineTests.java @@ -7,7 +7,7 @@ import org.hl7.fhir.r4.model.FhirPublication; import org.hl7.fhir.r4.model.OperationOutcome; import org.hl7.fhir.r4.model.OperationOutcome.IssueSeverity; import org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.validation.ValidationEngine; import org.hl7.fhir.utilities.Utilities; import org.junit.Assert; diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationTestSuite.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationTestSuite.java index 54095f89b..0484bfebf 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationTestSuite.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/r4/tests/ValidationTestSuite.java @@ -32,7 +32,7 @@ import org.hl7.fhir.r4.model.Patient; import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r4.model.TypeDetails; -import org.hl7.fhir.r4.test.support.TestingUtilities; +import org.hl7.fhir.r4.test.utils.TestingUtilities; import org.hl7.fhir.r4.utils.FHIRPathEngine.IEvaluationContext; import org.hl7.fhir.r4.utils.IResourceValidator; import org.hl7.fhir.r4.utils.IResourceValidator.IValidatorResourceFetcher;