Skip to content

Commit 5300320

Browse files
authored
Merge main into develop (#4912)
2 parents b505f58 + 5882ab3 commit 5300320

File tree

11 files changed

+37
-20
lines changed

11 files changed

+37
-20
lines changed

.github/workflows/develop-status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
jdk: [11, 21]
14+
jdk: [11, 17]
1515

1616
steps:
1717
- uses: actions/checkout@v2

.github/workflows/main-status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
jdk: [11, 21]
14+
jdk: [11, 17]
1515

1616
steps:
1717
- uses: actions/checkout@v2

core/rio/api/src/main/java/org/eclipse/rdf4j/rio/helpers/RDFaParserSettings.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@
2222
public class RDFaParserSettings {
2323

2424
/**
25-
* Boolean setting for parser to determine the RDFa version to use when processing the document.
26-
* <p>
27-
* Defaults to {@link RDFaVersion#RDFA_1_0}.
25+
* Boolean setting for parser to determine the RDFa version to use when processing the document. Note that although
26+
* these settings are not used within RDF4J, they are in use by external plugins.
27+
*
28+
* @see <a href=
29+
* "https://github.com/eclipse-rdf4j/rdf4j/issues/4779">https://github.com/eclipse-rdf4j/rdf4j/issues/4779</a>
30+
* <p>
31+
* Defaults to {@link RDFaVersion#RDFA_1_0}.
2832
*/
29-
@Deprecated(since = "4.3.0", forRemoval = true)
3033
public static final RioSetting<RDFaVersion> RDFA_COMPATIBILITY = new RioSettingImpl<>(
3134
"org.eclipse.rdf4j.rio.rdfa.version", "RDFa Version Compatibility", RDFaVersion.RDFA_1_0);
3235

core/rio/api/src/main/java/org/eclipse/rdf4j/rio/helpers/RDFaVersion.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
package org.eclipse.rdf4j.rio.helpers;
1212

1313
/**
14-
* Enumeration for tracking versions of the RDFa specification to specify processing capabilities of RDFa modules.
14+
* Enumeration for tracking versions of the RDFa specification to specify processing capabilities of RDFa modules. Note
15+
* that although these settings are not used within RDF4J, they are in use by external plugins.
16+
*
17+
* @see <a href=
18+
* "https://github.com/eclipse-rdf4j/rdf4j/issues/4779">https://github.com/eclipse-rdf4j/rdf4j/issues/4779</a>
1519
*
1620
* @author Peter Ansell
1721
*/
18-
@Deprecated(since = "4.3.0", forRemoval = true)
1922
public enum RDFaVersion {
2023

2124
/**

core/sail/elasticsearch-store/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
<httpPort>9200</httpPort>
194194
<environmentVariables>
195195
<ingest.geoip.downloader.enabled>false</ingest.geoip.downloader.enabled>
196-
<ES_JAVA_OPTS>${java.sec.mgr} -Xmx1g</ES_JAVA_OPTS>
196+
<ES_JAVA_OPTS>${java.sec.mgr} -Xmx1G -Xms1G</ES_JAVA_OPTS>
197197
</environmentVariables>
198198
<instanceCount>1</instanceCount>
199199
<instanceSettings>

core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/ShaclValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static ValidationReport validate(Sail dataRepo, Sail shapesRepo) {
7777

7878
}
7979
shapesConnection.commit();
80-
} catch (Exception e) {
80+
} catch (Throwable e) {
8181
logger.warn("Failed to read shapes", e);
8282
throw e;
8383
}
@@ -98,7 +98,7 @@ public static ValidationReport validate(Sail dataRepo, Sail shapesRepo) {
9898
return performValidation(shapes, new ConnectionsGroup(verySimpleRdfsBackwardsChainingConnection, null,
9999
null, null, new Stats(), () -> reasoner,
100100
new ShaclSailConnection.Settings(true, true, true, IsolationLevels.NONE), true));
101-
} catch (Exception e) {
101+
} catch (Throwable e) {
102102
logger.warn("Failed to validate shapes", e);
103103
throw e;
104104
}

core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/ShapeValidationContainer.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ public ShapeValidationContainer(Shape shape, Supplier<PlanNode> planNodeSupplier
5353
} else {
5454
this.planNode = planNode;
5555
}
56-
} catch (Exception e) {
56+
} catch (Throwable e) {
57+
logger.warn("Error processing SHACL Shape {}", shape.getId(), e);
58+
logger.warn("Error processing SHACL Shape\n{}", shape, e);
59+
if (e instanceof Error) {
60+
throw e;
61+
}
5762
throw new SailException("Error processing SHACL Shape " + shape.getId() + "\n" + shape, e);
5863
}
5964

@@ -76,8 +81,12 @@ public ValidationResultIterator performValidation() {
7681
try (CloseableIteration<? extends ValidationTuple> iterator = planNode.iterator()) {
7782
validationResults = new ValidationResultIterator(iterator, effectiveValidationResultsLimitPerConstraint);
7883
return validationResults;
79-
} catch (Exception e) {
84+
} catch (Throwable e) {
8085
logger.warn("Error validating SHACL Shape {}", shape.getId(), e);
86+
logger.warn("Error validating SHACL Shape\n{}", shape, e);
87+
if (e instanceof Error) {
88+
throw e;
89+
}
8190
throw new SailException("Error validating SHACL Shape " + shape.getId() + "\n" + shape, e);
8291
} finally {
8392
handlePostLogging(before, validationResults);

core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/ast/Shape.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/results/lazy/LazyValidationReport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private void evaluateLazyAspect() {
8181
validationResultIterators = null;
8282

8383
}
84-
} catch (Exception e) {
84+
} catch (Throwable e) {
8585
logger.warn("Error evaluating lazy validation report", e);
8686
throw e;
8787
}
@@ -104,7 +104,7 @@ public Model asModel(Model model) {
104104
}
105105

106106
return model;
107-
} catch (Exception e) {
107+
} catch (Throwable e) {
108108
logger.warn("Error converting validation report to model", e);
109109
throw e;
110110
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@
724724
<plugin>
725725
<groupId>org.apache.maven.plugins</groupId>
726726
<artifactId>maven-javadoc-plugin</artifactId>
727-
<version>3.6.0</version>
727+
<version>3.6.3</version>
728728
<configuration>
729729
<encoding>utf8</encoding>
730730
<source>11</source>

site/content/documentation/programming/lmdb-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Please note that the actual footprint also depends largely on the size of IRIs a
125125
Some basic information about LMDB database and RAM sizes can be found in the
126126
[OpenLDAP & LMDB Sizing Guide](https://3bmahv3xwn6030jbn72hlx3j-wpengine.netdna-ssl.com/wp-content/uploads/2018/08/OpenLDAP-LMDB-Sizing-Guide.pdf).
127127

128-
The bottom line is thatt more RAM is better. The best is to have enough RAM to accommodate the
128+
The bottom line is that more RAM is better. The best is to have enough RAM to accommodate the
129129

130130
entire database or at least the database's working set.
131131

0 commit comments

Comments
 (0)