Re: A use case for graph literals: Schemapedia (ISSUE-5)

On 2011-04-11, at 18:23, Richard Cyganiak wrote:

> On 11 Apr 2011, at 14:33, Steve Harris wrote:
>> I'm not sure in this situation you'd want example fragments to be handled as a named graph type of first class object, but maybe I'm missing the use-case.
>> 
>> Suppose I write
>> 
>> <some-schema> a :Schema ;
>>             :example "@prefix some: <http://some.schema.example> .\n<bob> some:has <Thing> .\n" .
>> 
>> Do I want those example triples to be accessible for e.g. in SPARQL queries?
> 
> In this particular case I don't think so.
> 
>> Or do I just want a convenient datatype to stash the literal text in RDF?
> 
> Yes. It would be more … accurate … to declare explicitly that this literal is a Turtle literal. That's all.
> 
> It's not a particularly powerful use case for graph literals, but a real one that I happened to come across.

Ah, I see. I don't see how it's a usecase for graph literals at all, but I think I see where you're coming from now.

- Steve

>> On 2011-04-08, at 11:32, Richard Cyganiak wrote:
>> 
>>> I just had a conversation with Ian Davis on Twitter that yielded a use case for defining datatype IRIs for graph literals. I thought I'd share it as input into ISSUE-5 [1].
>>> 
>>> He uses Turtle snippets as literals in SchemaPedia [2]. SchemaPedia is a site that helps find RDF vocabularies, and it lists example usage snippets for the vocabularies. The site's back-end is RDF-based. Turtle literals are used to store the examples, as well as change events when examples are modified. See [3] for a typical change event.
>>> 
>>> Currently Ian uses plain literals, because no datatype was readily available.
>>> 
>>> The idea of abusing Ivan's format URIs from [4] came up.
>>> 
>>> Best,
>>> Richard
>>> 
>>> 
>>> [1] http://www.w3.org/2011/rdf-wg/track/issues/5
>>> [2] http://schemapedia.com/
>>> [3] http://api.talis.com/stores/openvocab/meta?about=http://open.vocab.org/changes/f07ca76699a536dd38b5cbbbe1ba181d&output=rdf
>>> [4] http://www.w3.org/ns/formats/
>> 
>> -- 
>> Steve Harris, CTO, Garlik Limited
>> 1-3 Halford Road, Richmond, TW10 6AW, UK
>> +44 20 8439 8203  http://www.garlik.com/
>> Registered in England and Wales 535 7233 VAT # 849 0517 11
>> Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
>> 
> 

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD

Received on Monday, 11 April 2011 17:27:49 UTC