File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed
core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 2020 with :
2121 java-version : ${{ matrix.jdk }}
2222 - name : Cache local Maven repository
23- uses : actions/cache@v2
23+ uses : actions/cache@v4
2424 with :
2525 path : ~/.m2/repository
2626 key : ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change 2020 with :
2121 java-version : ${{ matrix.jdk }}
2222 - name : Cache local Maven repository
23- uses : actions/cache@v2
23+ uses : actions/cache@v4
2424 with :
2525 path : ~/.m2/repository
2626 key : ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change 1515 with :
1616 java-version : ${{ matrix.jdk }}
1717 - name : Cache local Maven repository
18- uses : actions/cache@v2
18+ uses : actions/cache@v4
1919 with :
2020 path : ~/.m2/repository
2121 key : ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-${{ hashFiles('**/pom.xml') }}
4848 with :
4949 java-version : 11
5050 - name : Cache local Maven repository
51- uses : actions/cache@v2
51+ uses : actions/cache@v4
5252 with :
5353 path : ~/.m2/repository
5454 key : ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }}
8181 with :
8282 java-version : 11
8383 - name : Cache local Maven repository
84- uses : actions/cache@v2
84+ uses : actions/cache@v4
8585 with :
8686 path : ~/.m2/repository
8787 key : ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }}
@@ -107,7 +107,7 @@ jobs:
107107 with :
108108 java-version : 11
109109 - name : Cache local Maven repository
110- uses : actions/cache@v2
110+ uses : actions/cache@v4
111111 with :
112112 path : ~/.m2/repository
113113 key : ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }}
@@ -133,7 +133,7 @@ jobs:
133133 with :
134134 java-version : 11
135135 - name : Cache local Maven repository
136- uses : actions/cache@v2
136+ uses : actions/cache@v4
137137 with :
138138 path : ~/.m2/repository
139139 key : ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change 2525public class ShaclSailValidationException extends SailException implements ValidationException {
2626
2727 private final ValidationReport validationReport ;
28+ private Model cachedModel = null ;
2829
2930 ShaclSailValidationException (ValidationReport validationReport ) {
3031 super ("Failed SHACL validation" );
@@ -36,6 +37,9 @@ public class ShaclSailValidationException extends SailException implements Valid
3637 */
3738 @ Override
3839 public Model validationReportAsModel () {
40+ if (cachedModel != null ) {
41+ return cachedModel ;
42+ }
3943 Model model = getValidationReport ().asModel ();
4044
4145 model .setNamespace (RSX .NS );
@@ -45,6 +49,8 @@ public Model validationReportAsModel() {
4549 model .setNamespace (RDF .NS );
4650 model .setNamespace (RDFS .NS );
4751
52+ cachedModel = model ;
53+
4854 return model ;
4955 }
5056
You can’t perform that action at this time.
0 commit comments