remove shex

This commit is contained in:
Grahame Grieve 2023-07-18 11:06:06 +10:00
parent 27961d3da5
commit 55c12301ba
3 changed files with 21 additions and 21 deletions

View File

@ -111,6 +111,14 @@
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc -->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.42.0.0</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -54,14 +54,6 @@
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- ShEx -->
<dependency>
<groupId>es.weso</groupId>
<artifactId>shexs_2.12</artifactId>
<version>0.2.31</version>
<optional>true</optional>
</dependency>
<!-- JSON Parsers --> <!-- JSON Parsers -->
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>

View File

@ -7,9 +7,6 @@ import java.nio.file.Path;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import es.weso.shex.Schema;
import es.weso.shex.validator.ShExsValidator;
import es.weso.shex.validator.ShExsValidatorBuilder;
import org.fhir.ucum.UcumException; import org.fhir.ucum.UcumException;
import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.conformance.profile.ProfileUtilities; import org.hl7.fhir.r5.conformance.profile.ProfileUtilities;
@ -353,12 +350,13 @@ public class ShexGeneratorTests {
if (validateShEx) { if (validateShEx) {
try { try {
ShExsValidator validator = ShExsValidatorBuilder.fromStringSync(schema, "ShexC"); throw new Error("Not supported while ShEx library support is re-investigated");
Schema sch = validator.schema(); // ShExsValidator validator = ShExsValidatorBuilder.fromStringSync(schema, "ShexC");
// Schema sch = validator.schema();
Assert.assertNotNull(sch); //
// Assert.assertNotNull(sch);
System.out.println("VALIDATION PASSED for ShEx Schema " + sd.getName() + " (Kind:" + cat + ")"); //
// System.out.println("VALIDATION PASSED for ShEx Schema " + sd.getName() + " (Kind:" + cat + ")");
} catch (Exception e) { } catch (Exception e) {
System.out.println("VALIDATION FAILED for ShEx Schema " + sd.getName() + " (Kind:" + cat + ")"); System.out.println("VALIDATION FAILED for ShEx Schema " + sd.getName() + " (Kind:" + cat + ")");
e.printStackTrace(); e.printStackTrace();
@ -405,11 +403,13 @@ public class ShexGeneratorTests {
if (!schema.isEmpty()) { if (!schema.isEmpty()) {
if (validateShEx) { if (validateShEx) {
try { try {
ShExsValidator validator = ShExsValidatorBuilder.fromStringSync(schema, "ShexC"); throw new Error("Not supported while ShEx library support is re-investigated");
Schema sch = validator.schema();
Assert.assertNotNull(sch); // ShExsValidator validator = ShExsValidatorBuilder.fromStringSync(schema, "ShexC");
System.out.println("VALIDATION PASSED for ShEx Schema ALL SHEX STRUCTURES"); // Schema sch = validator.schema();
//
// Assert.assertNotNull(sch);
// System.out.println("VALIDATION PASSED for ShEx Schema ALL SHEX STRUCTURES");
} catch (Exception e) { } catch (Exception e) {
System.out.println("VALIDATION FAILED for ShEx Schema ALL SHEX STRUCTURES"); System.out.println("VALIDATION FAILED for ShEx Schema ALL SHEX STRUCTURES");
e.printStackTrace(); e.printStackTrace();