In addition to Irene's responses, on #3, the Diagram view does a decent job of displaying all of the properties that are used by class instances. This includes both domain references and local restrictions for the class. Also, it is instructive to look at the Help entry for spl:relevantPropertyAtClass (Help > Reference > Functions Overview) where you will find the SPARQL definition for that magic property.
-- Scott On Feb 14, 11:45 pm, "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
