Dave; You can save any file in Turtle format. You can use Export... >
Export/Merge/Convert RDF Graphs, and choose Turtle as the export
format. Or you can do a Save As... and specify a file with a .ttl
extension. Be sure to choose a different base URI, or remove the old
file to avoid duplicate file names (base URIs are used basically as a
named graph in Composer).
For both Export... and Compare with..., the feature is applied to the
currently open model. So to using Compare with..., you need to first
open a model, then apply Compare with... and choose the model to
compare with. That may be the issue you are having.
The "Run SPARQL query from SPIN template..." step (which should say
"Model > Run SPARQL query from SPIN template...") also works the same
way. After executing the Compare with... a .diff file will open that
represents the differences. The Help file explains this model some -
you can open it and explore it more.
The diff model uses the model open in Composer as the new version.
Triples that appear in the old model (selected in the Compare with...
dialog), but not the new model, are marked as "deleted" - they are
deleted relative to the new model. Triples appearing in the new model
but not the old model are marked as added. As stated in the Help
file, the .diff model can be browsed or queried for instances
With that file (the .diff file) open, choose "Model > Run SPARQL query
from SPIN template...", then choose the diff:ShowAllDiffs template
from the List. Choosing the diff:ShowRelatedDiffs template will show
changes related to the resource being viewed in the Form View. As
stated in the Help file, the query templates used to compute the diff
are shown in the template selection dialog. Given these examples, you
can create your own templates or use these to create your own queries
to analyze model differences. For example, the following query will
find all added triples:
SELECT ?subj ?pred ?obj
WHERE
{ ?x a diff:AddedTripleDiff .
?x rdf:subject ?subj .
?x rdf:predicate ?pred .
?x rdf:object ?obj
}
Note that the change model represents changes as reifications on the
triples defined in either the old or new model.
Hopefully that helps get you to the point that you can open the file
and explore the .diff model a bit.
-- Scott
On Nov 4, 7:46 am, DaveL <[email protected]> wrote:
> Thank you, Irene. I saw a previous thread on the diff topic which
> mentioned it.
>
> If it turns out that the diff described in the Help can't be made to
> work or is clunkier to use than writing the files in Turtle format and
> using an external diff, I might resort to your solution.
>
> Dave
>
> On Nov 3, 5:44 pm, "Irene Polikoff" <[email protected]> wrote:
>
> > You can go to Preferences -> I/O in TBC and select sorted Turtle writer.
> > These would be used with .ttl files.
>
> > The algorithm should work well with line-based versioning systems, as it
> > will sort the resources and then their properties and objects
> > alphabetically. Depending on the ontology though, there may be some issues
> > with ordering blank nodes.
>
> > Irene
>
> > -----Original Message-----
> > From: [email protected]
>
> > [mailto:[email protected]] On Behalf Of DaveL
> > Sent: Thursday, November 03, 2011 4:58 PM
> > To: TopBraid Suite Users
> > Subject: [topbraid-users] TBC Maestro Edition "diff"
>
> > I am using TBC ME 3.4. I've read "How to?" / "Compare RDF Graphs" in
> > the Help area. I've tried to make it happen. I have had no success.
>
> > Can someone please write a set of instructions that gives more detail
> > on how to use this feature? The starting point might be a project
> > where both models (one under an assumed name) are present in a project
> > folder, for example. That is where I started, in any case.
>
> > I can select both .owl files in the Navigator, do "Model"/"Compare
> > with..."/"Each other". This displays a new window containing a textual
> > diff of the two models. In the Help, the next step is incomplete. It
> > says to use "Run SPARQL query from SPIN template..." and pick
> > "diff:ShowAllDiffs".
>
> > However, If I am in the textual diff window that command is not
> > available. If I am in a window showing either of the .owl files being
> > compared, the choice "diff:ShowAllDiffs" is not shown. If I am in a
> > window with "diff.rdf" open (I couldn't find the later-mentioned
> > "diff.owl" file), that choice is shown, but running it appears to have
> > no effect on any of the models/windows involved. A "Diffs" panel
> > appears but has nothing in it.
>
> > Obviously I'm missing something here.
>
> > Wouldn't it be easier to have a mode of saving the models that sorts
> > them in a predictable order?
>
> > Thanks,
>
> > Dave
>
> > --
> > You received this message because you are subscribed to the Google
> > Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
> > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> > To post to this group, send email to
> > [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group
> > athttp://groups.google.com/group/topbraid-users?hl=en
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en