afs commented on issue #3571:
URL: https://github.com/apache/jena/issues/3571#issuecomment-3493571731
```turtle
String x = """
PREFIX cdt: <http://w3id.org/awslabs/neptune/SPARQL-CDTs/>
PREFIX ex: <http://example.org/>
ex:s ex:p "[_:b, 42]"^^cdt:List .
""";
Graph g1 = RDFParser.fromString(x, Lang.TURTLE).toGraph();
Node o1 = g1.find().next().getObject();
Graph g2 = RDFParser.fromString(x, Lang.TURTLE).toGraph();
Node o2 = g2.find().next().getObject();
System.out.println("Same term: "+o1.sameTermAs(o2) );
//System.out.println("Same value: "+o1.sameValueAs(o2) ); // This
case is caught by the datatype.
System.out.println(o1.getLiteralValue().equals(o2.getLiteralValue()));
```
--
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]