Bruce; Some responses inline:

On Feb 17, 5:42 pm, Bruce Whealton <[email protected]> wrote:
> What is meant by  ?|1?  Is that some way of expressing a variable?
> I've never seen a variable follow a?  With a pipe character followed
> by a number.

Character in some fonts are difficult to interpret.  The pipe
character above is actually a lowercase "L".

> I wonder if I can use something like transitive closure on a genealogy
> application.  The ralationship vocabulary defines rel:descendantOf, so
> I can define that between a person and each of their parents.  If the
> bio vocabulary defines this as transitive then the ancestorOf each of
> my parents is the bio:ancestorOf me and so on.  However, we need a
> reasoner to accomplish this, right?  And while intuitively we would
> expect this property to be transitive, I don't see anything in the
> specification that declares this property to be transitive.

In terms of transitive relationships you can use a reasoner to compute
the transitive closure.  Note, though, that this will compute *all*
transitive relationships in your model.  If you want to compute this
on a limited set of resources, such as "my ancestors", I'd suggest
using property paths.  The '*' syntax will give you a path of zero or
more occurrences of bio:ancestorOf. So in effect, it computes the
transitive closure of the property:

SELECT ?ancestor
WHERE
{ ?ancestor bio:ancestorOf* :me .
}

 A '+' will get you one or more occurrences.  I.e. a * gets all
ancestors, including :me - the transitive closure.  A + get you all
ancestors (not including :me).

-- Scott

>Perhaps, someone could review the relationship vocabulary for me.  I don't have
> the link handy but it should be easy to find.
> I am doing this on a semantic mediawiki install so I don't know if
> there is any extension to mediawiki to perform reasoning on data in a
> semantic mediawiki site.
> Thanks for any help or feedback,
> Bruce
>
> On Feb 15, 12:45 am, "Irene Polikoff" <[email protected]> wrote:
>
>
>
>
>
>
>
> > Umar,
>
> > 1)      Your query looks correct. What do you mean by "not working"?
>
> > .          Star (*) operator performs transitive closure. It will get all
> > subclasses transitively
>
> > 2)      Looks OK as well, except if you want to select both, uri and the
> > label, you should put ?uri ?l1 after SELECT
>
> > 3)      You can use one of the functions included with TopBraid -
> > spl:relevantPropertyAtClass
> > <http://127.0.0.1:2506/help/topic/org.topbraidcomposer.help/html/smf.h...
> > l:relevantPropertyAtClass> : this is a magic property that establishes a
> > relationship between properties (left) and classes (right) to determine
> > which properties are "relevant" for the class. So, you could use a pattern
> > like  {?p spl:relevantPropertyAtClass pz:Pizza} to get all properties for
> > the class pz:Pizza
>
> > 4)      This page shows an example web service that takes an argument and
> > explains how to create 
> > it:http://www.topquadrant.com/products/SPARQLMotion_docs/SPARQLMotion_ex...
> > aCapitals.html. You may also want to look at this 
> > presentationhttp://www.topquadrant.com/docs/sparqlmotion/SemanticWebServices_in5s...
> > ingTopBraid.pdf
>
> > Regards,
>
> > Irene Polikoff
>
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of umar farooq
> > Sent: Tuesday, February 14, 2012 11:45 PM
> > To: [email protected]
> > Subject: Re: [topbraid-users] Re: Processing 10,000 files
>
> > Hi guys,
>
> >            I have some problems if you can solve i will be thankful to you.
>
> > 1) First of all i need query that returns SubClasses of owl:Thing.
>
> > i wrote this one. is it correct.
>
> > SELECT ?cls
>
> > WHERE
>
> > {  ?cls rdfs:subClassOf* owl:Thing .
>
> > }
>
> > it is not working...?
>
> > and what is * in rdfs:subClassOf*.
>
> > 2) I want labels of the classes as well as classes uri
>
> > I wrote this query
>
> > "PREFIX rdf:< 
> > <http://www.w3.org/1999/02/22-rdf-syntax-ns>http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> >  "+
>
> >              "PREFIX rdfs:< 
> > <http://www.w3.org/2000/01/rdf-schema>http://www.w3.org/2000/01/rdf-schema#>
> >  " +
>
> >              "PREFIX owl:< 
> > <http://www.w3.org/2002/07/owl>http://www.w3.org/2002/07/owl#> " +
>
> >              "PREFIX pz:<
> > <http://www.co-ode.org/ontologies/pizza/2005/10/18/pizza.owl>http://www.co-ode.org/ontologies/pizza/2005/10/18/pizza.owl#>
> >  " +
>
> >              "Select ?l1"+
>
> >              " WHERE { "+
>
> >              "?uri    rdfs:subClassOf pz:Pizza ." +
>
> >              "?uri rdfs:label ?l1 ."+
>
> >              "}";
>
> > But it gives wrong results
>
> > 3) I want to get all the properties of the class when a user clicks on the
> > class as protege dose. What would be the query.
>
> > 4) How to pass argument to the web service. Such that if i want to find All
> > subclasses of Pizza then i should pass pizza in argument.

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), 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