On 09/23/2015 04:06 PM, Juan Sequeda wrote:

I was looking into the difference and isIsomorphicWith method of a Jena
Model when there are Blank Nodes.

The isIsomorphicWith returns the expected results when two RDF graphs with
blank nodes are effectively isomorphic. However, I would expect that if two
RDF graphs are isomorphic, then there shouldn't be a difference.  But when
blank nodes are in the graph, then all the triples that have blank nodes
are considered to be different. I assume then that the difference method
has been implemented in a way that it does take in account the labels of
the blank nodes (when the definition of isIsomorphicWith states the
opposite). Is my assumption correct?

Yes. Difference just compares nodes for equality; it doesn't treat
blank nodes as variables. Two blank nodes with different labels are
different blank nodes.

Is there a way in Jena where difference follows the same definition of
isIsomorphicWith and ignores the labels on blank nodes.

Not as far as I'm aware.

Chris

Reply via email to