On 24/03/15 14:25, Rurik Thomas Greenall wrote:
Is there any way to do BIND assignments with QueryBuilder
(ConstructBuilder)?

I'm attempting to return plain string literals from

PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ex: <http://example.com/onto/>

CONSTRUCT {?url dcterms:date ?date }
WHERE {
   ?url dcterms:date ?d
   BIND (str(?d) as ?date)
}

Regards,

Rurik.


Hi Rurik,

Claude may be able to say more; as far as I can see, the ConstructBuilder takes a WhereClause, and the WhereClause has no direct support for BIND, only FILTER.

However, it does have subqueries so:

CONSTRUCT {?url dcterms:date ?date }
WHERE {
   SELECT ?url (str(?d) as ?date) {
     ?url dcterms:date ?d
   }
}

should work.

        Andy

Reply via email to