W3C home > Mailing lists > Public > semantic-web@w3.org > October 2010

Re: Is there an RDF diff tool?

From: Jie Bao <baojie@gmail.com>
Date: Sat, 30 Oct 2010 18:41:32 -0400
Message-ID: <AANLkTinkgfd90VwE8Yc1DbR+PN348P1qfE-LpMu-+tnR@mail.gmail.com>
To: Semantic Web at W3C <semantic-web@w3.org>
P.S. Just found TopBraid Composer [1] has a "compare with" menu. It
works very well with my ontologies.

[1] http://www.topquadrant.com/products/TB_Composer.html


On Sat, Oct 30, 2010 at 18:19, Jie Bao <baojie@gmail.com> wrote:
> Thank you all.
>
> I summarized some of the answers on a wiki page
> http://tw.rpi.edu/portal/How_to_diff_RDF
>
> Feel free to expand the list there.
>
> Cheers
> Jie
>
> 2010/10/30 Niklas Lindström <lindstream@gmail.com>:
>> Hi Jie!
>>
>> In RDFLib 3, the Python library for RDF, there is a module
>> (rdflib.compare), which has tools for diff:ing graphs (using an
>> algorithm by Sean B. Palmer for e.g. comparing bnodes). Take a look at
>> the documentation (docstrings) in the module for some usage examples:
>>
>>    <http://code.google.com/p/rdflib/source/browse/trunk/rdflib/compare.py>
>>
>> It's programmatic usage, but since you get the diffs as graphs, you
>> can serialize them using the API, e.g.:
>>
>>    from rdflib import Graph
>>    from rdflib.compare import to_isomorphic, graph_diff
>>    # ... use code like in the documentation
>>    # ...
>>    print in_both.serialize(format="n3")
>>    print in_first.serialize(format="n3")
>>    print in_second.serialize(format="n3")
>>
>> Best regards,
>> Niklas
>>
>>
>>
>> On Sat, Oct 30, 2010 at 5:44 PM, Jie Bao <baojie@gmail.com> wrote:
>>> Hi
>>>
>>> I'm again seeking for help from our really helpful SW list.
>>>
>>> I'm looking for a tool, or an online service, that can generate diff
>>> of two RDF files. That is, by inputing two RDF files, the tool will
>>> generate another RDF file, containing triples in the first RDF but not
>>> in the second.
>>>
>>> There have been some papers on this topic. I wonder if there is any
>>> working implementation available.
>>>
>>> Again, thanks in advance!
>>>
>>> Jie
>>> -----
>>> Jie Bao
>>> Tetherless World Constellation
>>> Rensselaer Polytechnic Institute
>>> baojie@cs.rpi.edu
>>> http://www.cs.rpi.edu/~baojie
>>>
>>>
>>
>
Received on Saturday, 30 October 2010 22:42:23 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:41:24 UTC