Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow skipping ShEx in --validate-go-cams when --shex is omitted #422

Merged
merged 1 commit into from
Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -920,13 +920,13 @@ else if(!model_iris.add(modeluri)) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

if(checkShex) {
if(checkShex) {
shex.setActive(true);
}else {
shex.setActive(false);
}
shex.setActive(true);
}else {
shex.setActive(false);
}

//shex validator is ready, now build the inference provider (which provides access to the shex validator and provides inferences useful for shex)
String reasonerOpt = "arachne";
LOGGER.info("Building OWL inference provider: "+reasonerOpt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public class ShexValidationReport extends ModelValidationReport{
/**
*
*/
public ShexValidationReport(String id, Model model) {
super(id, tracker, rulefile);
public ShexValidationReport() {
super(null, tracker, rulefile);
}

public String getAsText() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static Map<String, String> makeGoQueryMap(String shapemap_file) throws IO

public ShexValidationReport runShapeMapValidation(Model test_model) {
boolean explain = true;
ShexValidationReport r = new ShexValidationReport(null, test_model);
ShexValidationReport r = new ShexValidationReport();
JenaRDF jr = new JenaRDF();
//this shex implementation likes to use the commons JenaRDF interface, nothing exciting here
JenaGraph shexy_graph = jr.asGraph(test_model);
Expand Down Expand Up @@ -282,7 +282,7 @@ public Violation getTimeoutViolation(String node, String shapelabel) {


public ShexValidationReport runShapeMapValidationWithRecursiveSingleNodeValidation(Model test_model, boolean stream_output) throws Exception {
ShexValidationReport r = new ShexValidationReport(null, test_model);
ShexValidationReport r = new ShexValidationReport();
JenaRDF jr = new JenaRDF();
//this shex implementation likes to use the commons JenaRDF interface, nothing exciting here
JenaGraph shexy_graph = jr.asGraph(test_model);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static InferenceProvider create(OWLReasoner r, OWLOntology ont, MinervaSh
reasoner_validation.addViolation(i_v);
}
//shex
ShexValidationReport shex_validation = null;
ShexValidationReport shex_validation = new ShexValidationReport();
if(shex.isActive()) {
//generate an RDF model
Model model = JenaOwlTool.getJenaModel(ont);
Expand Down