I see two main options:
1) Get all instances of a metaclass :
SELECT ?class
WHERE {
?metaClass rdfs:subClassOf* rdfs:Class .
?class a ?metaClass .
}
2) Get all subclasses of the root class
SELECT ?class
WHERE {
?class rdfs:subClassOf* rdfs:Resource .
}
Regards,
Holger
On May 18, 2010, at 11:52 AM, aziza wrote:
> Hi!
> I have a question .
> How could I form a sparql query to get all classes from a class
> hierarchy (taxonomy)?
> Actually I want to view taxonomy in graph representation.
> Thanks.
>
> --
> 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