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:
   Perhaps the method needs to be `isNotLiteral`. I couldn't find a way to 
determine whether a NodeId is a literal without going through node.
   One can check whether its a non-short-string inline value though.
   Not sure if IRIs can be inlined.



-- 
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]

Reply via email to