public Model validateNodeAgainstShape(Dataset dataset,URI shapesGraphURI,Node focusNode,Node shape,Resource minSeverity,Predicate<SHConstraint> constraintFilter,Function<RDFNode,String> labelFunction,ProgressMonitor monitor){
  Model results=JenaUtil.createMemoryModel();
  Model oldResults=getCurrentResultsModel();
  setCurrentResultsModel(results);
  addResourceViolations(dataset,shapesGraphURI,focusNode,shape,SHACLUtil.getAllConstraintProperties(true),minSeverity,constraintFilter,results,labelFunction,monitor);
  setCurrentResultsModel(oldResults);
  return results;
}

public Model validateNodeAgainstShape ( Dataset dataset , URI shapesGraphURI , Node focusNode , Node shape , Resource minSeverity , Predicate < SHConstraint > constraintFilter , Function < RDFNode , String > labelFunction , ProgressMonitor monitor ) { Model results = JenaUtil . createMemoryModel ( ) ; Model oldResults = getCurrentResultsModel ( ) ; setCurrentResultsModel ( results ) ; addResourceViolations ( dataset , shapesGraphURI , focusNode , shape , SHACLUtil . getAllConstraintProperties ( true ) , minSeverity , constraintFilter , results , labelFunction , monitor ) ; setCurrentResultsModel ( oldResults ) ; return results ; }
validates a given resource against a given shape .
