If TopBraid recognizes a graph's URI as one within the current workspace
(e.g. http://topbraid.org/examples/kennedys) it queries the local copy. 

The simplest way to query local and remote data together is to create a new
model and then import the relevant graphs into that model. In the online
help, see TopBraid Composer > User Interface Overview > Imports View; note
that the icon with a + over a picture of the world lets you specify remote
files to import, so you can include both local and remote data in the model.
(If you get a chance to attend our upcoming training in September or
December, you'll see this in action many times. See
http://www.topquadrant.com/training/training_overview.html for more
information.) 

How much to include in each file: owl:sameAs is unnecessary here. If the two
triples

  <http://some/path#person2> foaf:familyName "Smith" . 
  <http://some/path#person2> foaf:givenName "Joe" .

are in two different files are not, it doesn't matter as long as the query
has access to all the relevant triples. The Imports View described above is
the best way to group multiple files together for easy access to all of
their data at once with a single query. 

As to your third question, yes, that's me!

Bob


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of brucewhealton
Sent: Thursday, September 01, 2011 5:26 PM
To: TopBraid Suite Users
Subject: [topbraid-users] Re: SPARQL Queries across different files in a
project?

Does Top Braid go out to the web and get the files to run these
queries?  I mean if you are running a query using the FROM clauses
that specify URI addresses, does it try to go get them when you select
execute query?

Quite often during development, I know where I am going to put my
files, the final URI, and URL, but I also have local versions of the
files.  For example, it is often the case that people will have
foaf:Person resources for other people inside their own FOAF file.
I'm not sure if there is any benefit to that.  I was doing some
modeling for a Genealogy project and was thinking, "well, I could
specify the information about person2 inside person1's file and use an
owl:sameAs to say there is more information in this other file about
person2" or I could just say person1 bio:mother <http://uri/for/
mother>.
Some say redundancy is ok but the decision gets down to how much
should one include in any one file, especially if every possible query
that one might want to do later is not known.
Any thoughts?  I guess it is somewhat of a subjective issue.
Thanks,
Bruce
P.S.  I'll have to get that book on SPARQL that you wrote, Bob.  I
assume that you are the same person that wrote that book.

On Aug 18, 6:40 pm, "Bob Ducharme" <[email protected]> wrote:
> There are two ways to query multiple RDF files at once: first, as you
> describe, import them into a single graph and query that. Another way
would
> be specify the base URI of each graph in a FROM clause, like this:
>
>   SELECT DISTINCT ?class
>   FROM <http://topbraid.org/examples/kennedys>
>   FROM <http://topbraid.org/countries>
>   FROM <http://www.w3.org/TR/2003/PR-owl-guide-20031209/food>
>   WHERE {
>     ?s a ?class .
>   }
>
> There is no simple way, though, to query all the RDF files that happen to
be
> in the same project.
>
> Bob
>
>
>
>
>
>
>
> -----Original Message-----
> From: [email protected]
>
> [mailto:[email protected]] On Behalf Of brucewhealton
> Sent: Thursday, August 18, 2011 5:46 PM
> To: TopBraid Suite Users
> Subject: [topbraid-users] SPARQL Queries across different files in a
> project?
>
> Hello,
>           I was wondering if TBC supported making queries across
> different RDF files that are in the same project?  Or does one have to
> import all the files into one ontology, one file?
> Thanks,
> Bruce
>
> --
> 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

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

Reply via email to