Aklakan commented on code in PR #3508:
URL: https://github.com/apache/jena/pull/3508#discussion_r2422852854
##########
jena-arq/src/main/java/org/apache/jena/rdfs/engine/ApplyRDFS.java:
##########
@@ -129,10 +129,12 @@ final private void range(X s, X p, X o, Output<X> out) {
return;
}
Set<X> x = setup.getRange(p);
- x.forEach(c -> {
- derive(o, rdfType, c, out);
- subClass(o, rdfType, c, out);
- });
+ if (!mapper.isLiteral(o)) {
Review Comment:
The question is how to minimize materialization in this check. One can check
for whether a NodeId is an inlined value and return early. But not sure if from
the NodeId alone it can be decided whether its a literal or not.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]