Don; You can't use an expression in the CONSTRUCT clause, as it only
allows graph patterns.  You can bind a variable using IF/smf:if and
use that in CONSTRUCT.  E.g.:

CONSTRUCT
{  :someURI :someProp ?isFound
}
WHERE
{  ...
   OPTIONAL {:someURI :aprop ?obj}
   BIND (IF(bound(?obj), true, false) AS ?isFound)
}

This would set the value of the :someProp to true or false, depending
on whether ?obj was bound in the OPTIONAL triple pattern.

Note that I used the SPARQL 1.1 IF.  The only difference between IF
and sml:if is that the third parameter (the "else" binding) is not
required in smf:if.

-- Scott

On Aug 1, 12:32 pm, Dilphat <[email protected]> wrote:
> Could you please provide a few examples of how to use smf;if  in a
> CONSTRUCT statement?

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

Reply via email to