Actually, I pasted the wrong query in. It should look something like:
> CONSTRUCT {?this Relex:ratio ?ratio}
> WHERE
> {
> { SELECT (sum(?rate) AS ?sysRate)
> WHERE {?this a Relex:Failure .
> ?this Relex:refsSystem ?system .
?system Relex:failsAs ?failure .
> ?failure Relex:failureRate ?rate}
> }
> ?this Relex:failureRate ?rate .
> LET (?ratio := 100 * ?rate / ?sysRate)
>
> }
On Apr 10, 2:19 pm, "Schmitz, Jeffrey A"
<[email protected]> wrote:
> Hello,
> I'd like to enter a spin:rule as a CONSTRUCT query that contains a sub
> SELECT query within it (see example below). When I do this, the SELECT
> query seems to disappear in the form. Is this type of query not
> supported as a spin CONSTRUCT query?
>
> CONSTRUCT {?failure Relex:ratio ?ratio}
> WHERE
> {
> { SELECT ?item (sum(?rate) AS ?sysRate)
> WHERE {?item a Neutral:RepairItem .
> ?item Neutral:failsAs ?failure .
> ?failure Neutral:hasFailureRate ?fr .
> ?fr Neutral:failureRate ?rate}
> GROUP BY ?item
> }
> ?item Neutral:failsAs ?failure .
> ?failure Neutral:hasFailureRate ?fr .
> ?fr Neutral:failureRate ?rate
> LET (?ratio := 100 * ?rate / ?sysRate)
>
> }
>
> Thanks!
> Jeff
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---