afs commented on issue #1710: URL: https://github.com/apache/jena/issues/1710#issuecomment-1374161477
Try `IsoMatcher.isomorphic(Graph, Graph)`. `IsoMatcher` handles quoted triples correctly. `IsoMatcher` is a naive (= simplistic back tracking) on collections of list of terms. Rows, in other words. It gets used for SPARQL result set checking and for graph isomorphism in tests. It was easier to adapt to RDF-star and applies to more than just graphs. `RDFStar.encodeAsRDF` introduces a URN per unique quoted triple and the URN is based on the hash of quoted triple which makes the URN sensitive to the blank node label. This break the isomorphism but conversely is better for streaming. (Otherwise the process needs to keep state of seen blank nodes, which at scale consumes memory.) -- 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]
