Discusses extension functions, section 11.3 says: "A function is named by URIRef in a QName form, and returns a boolean value. "true" means accept; "false" means reject this solution." That seems at odds with the way the return values of other functions are interpreted. For example: Graph: Ex:Fido a ex:Dog. Query: Select ?x where {?x a ex:Dog. FILTER xs:string(1 > 2)} By my reading on the latest draft, this query would return a value since it's the effective boolean value of the _whole_ constraint clause that determines whether or not a solution is accepted (and the xsd:string "false", the result of coercing the value of the comparison into a string, is non-empty so is considered TRUE.) But section 11.3 implies that: Graph: Ex:Fido a ex:Dog. Query: Select ?x where {?x a ex:Dog. FILTER xs:string(my:even(1))} would not return a value (since my:even has returned false meaning reject the solution). Am I misunderstanding something? Is that the intent? And if not, why restrict extension functions to returning boolean values? -Geoff ChappellReceived on Saturday, 19 March 2005 20:05:56 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:48 GMT