- From: Richard Cyganiak <richard@cyganiak.de>
- Date: Tue, 6 Mar 2012 01:44:56 +0000
- To: Boris Villazon-Terrazas <bvillazon@fi.upm.es>
- Cc: Public-Rdb2rdf-Wg RDB2RDF <public-rdb2rdf-wg@w3.org>
On 5 Mar 2012, at 23:29, Boris Villazon-Terrazas wrote:
>> Note: Juan requested weird corner cases, so here's one that's actually kind of cool. Let's use a VARBINARY column in a URI template to create data URIs [1]:
>>
>> rr:template "data:image/png;base64,{\"Photo\"}";
>>
>> This should produce something like this:
>>
>> data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==
>>
>> If everything works, you can actually open that URI in your browser (it produces a small round red dot).
>
> If I understood you correctly, we should have sth like [1], so for the predicateObjectMap we would have
>
> rr:predicateObjectMap
> [
> rr:predicate ex:photo;
> rr:objectMap [ rr:template "data:image/png;base64,{\"Photo\"}"; ];
> ];
>
> .
>
> so, the resultant object would be an IRI ?
> <data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==>
Yes.
> If this is the case, I'm not sure if we can parse that as URI
I don't understand what you mean by that. Who is “we” and why can't we parse it as an IRI?
Richard
>
> Best
>
> Boris
>
> [1] http://www.w3.org/2001/sw/rdb2rdf/test-cases/#R2RMLTC0016e
>
>
>>
>> Best,
>> Richard
>>
>> [1] http://en.wikipedia.org/wiki/Data_URI_scheme
>
Received on Tuesday, 6 March 2012 01:45:26 UTC