OK, so forget about inferencing. SPARQL queries are independent of
inferencing, and is not necessary for this example
If you reproduce exactly the exact graph shown in the Help file,
including the :gender link between :AlinaMojica and :female, you get
the query:
SELECT ?person
WHERE {
?person kennedys:gender kennedys:female .
?person kennedys:birthYear 1965 .
}
Running this gets all matches with the properties :birthYear = 1965
and :gender = female. (Clicking twice on "Generate SPARQL Query from
current Graph" - the orange star **in the Graph View** - will generate
and execute the query.)
-- Scott
On Sep 22, 1:59 pm, bradleys <[email protected]> wrote:
> OK TB is version 3.1.1.
> I am creating a SPARQL Queries by Example from you TopBraid Composer >
> How To? files. I am in the Graph Panel and as per the Kennedy example,
> I select the instance of female and check it, the click on the left
> side arro to get "has gender" to appear with a list of all the
> femails. I go to Alina Mojica and check 1965. Then I click twice the
> SPARQL button on the Graphs tool bar. When this didn't work. I added
> TopSpin to my File Settings Inferences Configuration as an expereiment
> thinking that perhaps my Inferencing hasd to be inline with my SPARQL
> query. No lunk running a query. I tried for the mailes, an no luck.
> Went back to the females and configured TOPSPIN inferecnign for
> Workspace settings. No luck with my query.
>
> I just removed TopSpin from my Inferences configuration for File and
> Workspaces and re-ran the SAPRQL query on the Graph panel toolbar. No
> luck after 5 minutes.
>
> I can go to a Centra netmeeting session here if you have time to
> troubleshoot:http://142.166.163.54/main/User/GuestAttend.jhtml?s_guid=0000009b777a...
>
> On Sep 22, 3:37 pm, Scott Henninger <[email protected]>
> wrote:
>
> > Bradley; There seem to be a number of things going on here. First is
> > that the version you gave is the Eclipse version. To find the
> > Composer version, go to Help > Software Update > Installed Software.
>
> > I'm not sure what example you refer to. By "SPARQL graphical query",
> > I assume you mean a SPARQL query on a graph structure? There is also
> > a way to create queries from the Graph view, so this can cause
> > confusion.
>
> > SPARQL queries can be executed independent of whether inference is
> > turned on or off.
>
> > If you turn the inference mode on in the SPARQL View, inferences will
> > be executed first and the SPARQL query is applied to the union of the
> > asserted and inferred graphs (i.e. original data + inferences).
> > Therefore, the SPARQL query will not be able to execute until
> > inferences have completed. I suspect this is what you are
> > experiencing.
>
> > Perhaps some details on the example you are trying will help explain
> > this more.
>
> > -- Scott
>
> > On Sep 22, 1:12 pm, bradleys <[email protected]> wrote:
>
> > > In preparation of testing my OWL ontology, I ahve been using the Graph
> > > feature in TB Maestro and using the Kennedy example OWL to try to
> > > generate a SPARQL graphical query. I tried to reporduce the example
> > > (female, 1965 and male 1965) but had no luck. The query engine runs
> > > for 30 minutes but gives no instance results ie Alina Mojica and
> > > Jeannie Ripp.
> > > I am running Meastro with the 3.4.2 M20090211-1700 update. My File
> > > Inferences has SWIFTOWLIM (owl-max) and TopSPIN (SPARQL Rules). I
> > > discovered my Workspace did not have TopSPIN (SPARQL Rules), so I
> > > configured that na dran inferences before doing the SPARQL Query.
> > > Still no luck getting any results.
>
> > > Am I missing anything obvious?- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TopBraid Composer Users" group.
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-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---