- From: Andy Seaborne <andy.seaborne@talis.com>
- Date: Fri, 04 Jun 2010 18:04:23 +0100
- To: Axel Polleres <axel.polleres@deri.org>
- CC: SPARQL Working Group <public-rdf-dawg@w3.org>
http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#func-iri Andy On 04/06/2010 2:06 PM, Axel Polleres wrote: > I added Peter Ansell's question on the comments page. > > Before we send an official answer to that... In the current draft of > Constructor Functions > http://www.w3.org/TR/sparql11-query/#FunctionMapping > I indeed miss casting to IRI. I think I'd agree that we need this > direction of > conversion to IRIs. > > In RIF there is a predicate http://www.w3.org/TR/rif-dtb/#pred:iri-string > for that. > > Once we agree on that, the answer to the request should be clear (then > the desired behaviour would be doable with a subquery) > > best, > Axel > > Begin forwarded message: > >> *Resent-From: *public-rdf-dawg-comments@w3.org >> <mailto:public-rdf-dawg-comments@w3.org> >> *From: *"Peter Ansell" <ansell.peter@gmail.com >> <mailto:ansell.peter@gmail.com>> >> *Date: *4 June 2010 08:01:16 GMT+03:00 >> *To: *<public-rdf-dawg-comments@w3.org >> <mailto:public-rdf-dawg-comments@w3.org>> >> *Subject: **IRI creation and encoding* >> *archived-at: >> *<http://www.w3.org/mid/AANLkTilYqYnjuntFjsa_8ufqWVqzYWBeqPOO2d5NOgG2@mail.gmail.com> >> >> 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 >> > > > ------------------------------------------------------------------------ > Please consider the environment before printing this email. > > Find out more about Talis at http://www.talis.com/ > shared innovation™ > > Any views or personal opinions expressed within this email may not be > those of Talis Information Ltd or its employees. The content of this > email message and any files that may be attached are confidential, and > for the usage of the intended recipient only. If you are not the > intended recipient, then please return this message to the sender and > delete it. Any use of this e-mail by an unauthorised recipient is > prohibited. > > Talis Information Ltd is a member of the Talis Group of companies and is > registered in England No 3638278 with its registered office at Knights > Court, Solihull Parkway, Birmingham Business Park, B37 7YB.
Received on Friday, 4 June 2010 17:04:27 UTC