@@ -450,8 +450,9 @@ public PlanNode generatePlans(ConnectionsGroup connectionsGroup, ValidationSetti
450450 } else {
451451 throw new ShaclUnsupportedException ("Unknown validation approach: " + validationApproach );
452452 }
453- } catch (RuntimeException e ) {
453+ } catch (Throwable e ) {
454454 logger .warn ("Error processing SHACL Shape {}" , id , e );
455+ logger .warn ("Error processing SHACL Shape\n {}" , this , e );
455456 throw new SailException ("Error processing SHACL Shape " + id + "\n " + this , e );
456457 }
457458
@@ -707,7 +708,7 @@ public static List<ContextWithShape> getShapesInContext(ShapeSource shapeSource,
707708 .map (r -> {
708709 try {
709710 return new ShaclProperties (r , shapeSourceWithContext );
710- } catch (Exception e ) {
711+ } catch (Throwable e ) {
711712 logger .warn ("Error parsing shape {}" , r , e );
712713 throw new ShaclShapeParsingException (e , r );
713714 }
@@ -720,7 +721,7 @@ public static List<ContextWithShape> getShapesInContext(ShapeSource shapeSource,
720721 return PropertyShape .getInstance (p , shapeSourceWithContext , parseSettings , cache );
721722 }
722723 throw new ShaclShapeParsingException ("Unknown shape type" , p .getId ());
723- } catch (Exception e ) {
724+ } catch (Throwable e ) {
724725 logger .warn ("Error parsing shape {}" , p .getId (), e );
725726 if (e instanceof ShaclShapeParsingException ) {
726727 throw e ;
@@ -746,6 +747,7 @@ public String toString() {
746747 statements .setNamespace (RSX .NS );
747748 statements .setNamespace (RDFS .NS );
748749 statements .setNamespace (RDF .NS );
750+ statements .setNamespace (DASH .NS );
749751 WriterConfig writerConfig = new WriterConfig ()
750752 .set (BasicWriterSettings .PRETTY_PRINT , true )
751753 .set (BasicWriterSettings .INLINE_BLANK_NODES , true );
0 commit comments