- From: Boris Villazon-Terrazas <bvillazon@fi.upm.es>
- Date: Tue, 6 Mar 2012 12:36:11 +0100
- To: Richard Cyganiak <richard@cyganiak.de>
- Cc: Public-Rdb2rdf-Wg RDB2RDF <public-rdb2rdf-wg@w3.org>
- Message-Id: <35E7C454-2C39-4F11-8BC8-FCC12F11BBD3@fi.upm.es>
Hi Richard
On Mar 6, 2012, at 2:44 AM, Richard Cyganiak wrote:
> 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?
>
Yes, please let me clarify.
In order to generate the html doc [1], I'm using NxParser [2] for parsing the output files (nq files), and currently it has some problems parsing that URIs. I'll look for a work around. It seems to be there is a new version of the parser [3].
Boris
[1] http://www.w3.org/2001/sw/rdb2rdf/wiki/TestCases
[2] http://sw.deri.org/2006/08/nxparser/
[3] http://code.google.com/p/nxparser/
> 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 11:36:38 UTC