Catrina;  It seems the Help files could use an example sucha s the
following:

SELECT n
WHERE {
  LET (?n := smf:countResults("SELECT ?person WHERE {?person
a :Person}"))
}

Aggregates also work nicely in this context:

SELECT (count(?person) as ?n)
WHERE {
  ?person a :Person
}

..and one can use Group By to get counts on result rows:

SELECT ?person (count (?child) as ?n)
WHERE
{  ?person a :Person .
   ?person :child ?child .
} GROUP BY ?person

-- Scott

On Jun 9, 8:22 am, <[email protected]> wrote:
> Would someone mind showing me a SPARQL example using the
> smf:countResults function?  I'm trying to figure out how to use this
> function without using the SPARQLMotion module, but I don't think I'm
> using the right syntax.  I want to use the smf:countResults function
> within a SPARQL select query.
>
> Thanks,
>
> Catrina
--~--~---------~--~----~------------~-------~--~----~
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