On Wed, Sep 23, 2015 at 5:12 PM, Chris Dollin <[email protected]>
wrote:

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


I guess I would have to implement this on my own.

I'm sure somebody has tried to do this before :)


>
>
> Chris
>

Reply via email to