Re: comments: PA-1

Reply looks good.

	Andy

I would like to add syntax for string contact as "+"

A + B is exactly fn:concat(A,B) except it returns a plain string, not an 
XSD string.

Note: fn:concat casts to xs:string



On 28/06/2010 4:16 PM, Axel Polleres wrote:
> I have drafted a response here:
> http://www.w3.org/2009/sparql/wiki/CommentResponse:PA-1
>
> please check!
>
> Axel
>
> On 4 Jun 2010, at 05:27, Andy Seaborne wrote:
>
>> Another possible function from F&O:
>>
>> the function is fn:encode-for-uri
>>
>> Peter also overloads "+" as string concatenation and uses expressions in the CONSTRUCT template.
>>
>> 	Andy
>>
>>
>>
>> -------- Original Message --------
>> Subject: IRI creation and encoding
>> Resent-Date: Fri, 4 Jun 2010 05:01:49 +0000
>> Resent-From:<andy.seaborne@talis.com>,	<public-rdf-dawg-comments@w3.org>
>> Date: Fri, 4 Jun 2010 15:01:16 +1000
>> From: Peter Ansell<ansell.peter@gmail.com>
>> To:<public-rdf-dawg-comments@w3.org>
>>
>> Hi,
>>
>> I am not sure what the progress has been on the (very useful)
>> extension to make it possible for SPARQL to create new URI/IRIs from
>> literals/variables [1] but it would be nice if the discussion could
>> also include something about a function for string transformation to
>> encode strings so that the URIs are valid.
>>
>> For example it would be nice to be able to do something similar to the
>> following pattern using a IRI/URI creation facility,
>>
>> CONSTRUCT
>> { ?s<skos:prefLabel>  ?label . ?s<myLibrary:hasAlternateURI>
>> IRI("http://otherlibrary.example/"+example:percentEncode(?label)+"/lang/"+example:percentEncode(lang(?label))}
>> WHERE
>> { ?s<skos:prefLabel>  ?label . }
>>
>> Cheers,
>>
>> Peter
>>
>> [1] http://www.w3.org/2009/sparql/wiki/Feature:IriBuiltIn
>>
>

Received on Wednesday, 30 June 2010 13:53:01 UTC