W3C home > Mailing lists > Public > public-rdf-wg@w3.org > April 2011

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

From: Richard Cyganiak <richard@cyganiak.de>
Date: Mon, 11 Apr 2011 18:23:55 +0100
Cc: RDF Working Group WG <public-rdf-wg@w3.org>, Ian Davis <me@iandavis.com>
Message-Id: <2890703F-23E7-4815-A9A6-96F18FC0657F@cyganiak.de>
To: Steve Harris <steve.harris@garlik.com>
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.

Best,
Richard


> 
> - 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
> 
Received on Monday, 11 April 2011 17:24:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:41 GMT