Ninus; What is the error?  It could be caused by the empty line that
appears in the query in my post.  Removing the extra line may resolve
the problem (?)  I'm assuming you are using Composer 3.1+

The "# of individuals" query finds all individuals that are members of
subclass definitions of owl:Thing.  I.e. it will not include
individuals that are members of owl:Thing.  If you also want members
of owl:Thing, then include owl:Thing in the subClassOf part of the
query:

SELECT count(?inst)
WHERE {
    ?cls rdfs:subClassOf* owl:Thing .
    ?inst a ?cls .
}

This should get the same number of instances as displayed in
Composer's classes view.

-- Scott

On Nov 2, 10:39 am, Nick Khamis <[email protected]> wrote:
> Hey Scott,
>
> Thanks again for your reply I really appreciate it. The queries worked great
> except for (I am not sure if its a minor or major detail) the + sign after
> rdfs:subClassOf. The sparql interface in TBC does not seem to like the +
> sign I get an error but it still works without it.
> Another strange thing, for the "# of individuals query"
>
> SELECT count(?inst)
> WHERE {
>    ?cls rdfs:subClassOf owl:Thing .
>    ?inst a ?cls .
>
> }
>
> It worked like a dream for one of the KBs but gave a different number than
> the one that was next to owl:Thing (239) for the second KB. And it is not a
> number that makes sense when looking at the number of instances next to
> subclasess of owl:Thing.
>
> Regardless, Thanks Again!
> Ninus.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to