Butt dear Scott it is not not working..
I am trying this..
"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "+
"PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> " +
"PREFIX owl:<http://www.w3.org/2002/07/owl#> " +
"Select ?uri"+
" WHERE { "+
"?uri    rdfs:subClassOf* owl:Pizza . " +
"}";

should it return all the subclasses of Pizza and subclasses of pizza's
subclasses in tree hierarchy..
i want result in the following form. What should i do.??
Pizza
      subofpizza1
                subofsubofpizza1
                subofsubofpizza2
      subofpizza2
                subofsubofpizza1
                subofsubofpizza2
      subofpizza3


AND thanks for help :)


On Fri, Feb 10, 2012 at 7:26 AM, Scott Henninger <[email protected]
> wrote:

> Umar; the following query will get all subclasses of owl:Thing.  If
> you want subclasses of some other class, just replace owl:Thing with
> the URI of the class.
>
> SELECT ?cls
> WHERE
> {  ?cls rdfs:subClassOf* owl:Thing .
> }
>
>
> If you don't want to include owl:Thing in the results, use '+' instead
> of '*'.
>
> Both TopBraid Composer and Ensemble provide out-of-the-box components
> to display subclass trees.  Ensemble runs in a J2EE application
> server. See http://www.topquadrant.com/products/TB_Ensemble.html, and
> you can display tree structures of any object property.  Enterprise
> Vocabulary Net (http://www.topquadrant.com/solutions/
> ent_vocab_net.html) display tree structures for SKOS vocabularies.
>
> -- Scott
>
> On Feb 10, 5:56 am, umar farooq <[email protected]> wrote:
> > Hello everyone,
> >                      I want to show all classes of ontology in tree
> > form in web based J2EE application. So i have some confusions. What
> > would be sparql query for that and how to iterate the data to show the
> > results in tree form..
>
> --
> 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
>



-- 
*Best Regards,
Umar*

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