Message from discussion
relational data as a bona fide member of the SM
Received: by 10.42.146.136 with SMTP id j8mr10593960icv.8.1321062269851;
Fri, 11 Nov 2011 17:44:29 -0800 (PST)
X-BeenThere: thosch@googlegroups.com
Received: by 10.231.120.35 with SMTP id b35ls6566555ibr.4.gmail; Fri, 11 Nov
2011 17:44:29 -0800 (PST)
Received: by 10.43.117.133 with SMTP id fm5mr10686512icc.7.1321062269597;
Fri, 11 Nov 2011 17:44:29 -0800 (PST)
Received: by 10.43.117.133 with SMTP id fm5mr10686511icc.7.1321062269587;
Fri, 11 Nov 2011 17:44:29 -0800 (PST)
Return-Path: <semantic-web-requ...@listhub.w3.org>
Received: from frink.w3.org (frink.w3.org. [128.30.52.56])
by gmr-mx.google.com with ESMTPS id ic2si2411713icc.3.2011.11.11.17.44.29
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 11 Nov 2011 17:44:29 -0800 (PST)
Received-SPF: pass (google.com: domain of semantic-web-requ...@listhub.w3.org designates 128.30.52.56 as permitted sender) client-ip=128.30.52.56;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of semantic-web-requ...@listhub.w3.org designates 128.30.52.56 as permitted sender) smtp.mail=semantic-web-requ...@listhub.w3.org
Received: from lists by frink.w3.org with local (Exim 4.69)
(envelope-from <semantic-web-requ...@listhub.w3.org>)
id 1RP2bC-0006J4-Td
for semantic-web-d...@listhub.w3.org; Sat, 12 Nov 2011 01:41:38 +0000
Received: from aji.keio.w3.org ([133.27.228.206])
by frink.w3.org with esmtp (Exim 4.69)
(envelope-from <t...@g5n.co.uk>)
id 1RP2b4-0006GW-F2
for semantic-...@listhub.w3.org; Sat, 12 Nov 2011 01:41:30 +0000
Received: from lvps109-104-78-5.vps.webfusion.co.uk ([109.104.78.5] helo=mail.g5n.co.uk)
by aji.keio.w3.org with esmtp (Exim 4.72)
(envelope-from <t...@g5n.co.uk>)
id 1RP2ay-0003rP-EK
for semantic-...@w3.org; Sat, 12 Nov 2011 01:41:29 +0000
Received: from localhost (localhost.localdomain [127.0.0.1])
by mail.g5n.co.uk (Postfix) with ESMTP id DD70919580006;
Sat, 12 Nov 2011 01:40:56 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at g5n.co.uk
Received: from mail.g5n.co.uk ([127.0.0.1])
by localhost (lvps109-104-78-5.vps.webfusion.co.uk [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id cNHHt-mjD1fx; Sat, 12 Nov 2011 01:40:53 +0000 (GMT)
Received: from miranda.g5n.co.uk (unknown [217.169.28.122])
(Authenticated sender: tai)
by mail.g5n.co.uk (Postfix) with ESMTPA id 5144D19580004;
Sat, 12 Nov 2011 01:40:53 +0000 (GMT)
Date: Sat, 12 Nov 2011 01:42:03 +0000
From: Toby Inkster <t...@g5n.co.uk>
To: Sampo Syreeni <de...@iki.fi>
Cc: Semantic Web List <semantic-...@w3.org>
Message-ID: <20111112014203.3454d...@miranda.g5n.co.uk>
In-Reply-To: <Pine.LNX.4.64.1111030952210.32...@lakka.kapsi.fi>
References: <Pine.LNX.4.64.1111030952210.32...@lakka.kapsi.fi>
X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.9; i586-mandriva-linux-gnu)
Link: <http://tobyinkster.co.uk/#i>; rel="http://xmlns.com/foaf/0.1/maker
http://purl.org/dc/terms/creator"; rev="http://xmlns.com/foaf/0.1/made"
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Received-SPF: none client-ip=109.104.78.5; envelope-from=...@g5n.co.uk; helo=mail.g5n.co.uk
X-W3C-Hub-Spam-Status: No, score=-0.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RDNS_DYNAMIC=0.982
X-W3C-Scan-Sig: aji.keio.w3.org 1RP2ay-0003rP-EK 627fcc7a4791750996529c559bea3201
X-Original-To: semantic-...@w3.org
Subject: Re: relational data as a bona fide member of the SM
Archived-At: <http://www.w3.org/mid/20111112014203.3454d...@miranda.g5n.co.uk>
Resent-From: semantic-...@w3.org
X-Mailing-List: <semantic-...@w3.org> archive/latest/17464
X-Loop: semantic-...@w3.org
Resent-Sender: semantic-web-requ...@w3.org
Precedence: list
List-Id: <semantic-web.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:semantic-...@w3.org>
List-Unsubscribe: <mailto:semantic-web-requ...@w3.org?subject=unsubscribe>
Resent-Message-Id: <E1RP2bC-0006J4...@frink.w3.org>
Resent-Date: Sat, 12 Nov 2011 01:41:38 +0000
On Thu, 3 Nov 2011 09:57:08 +0200 (EET)
Sampo Syreeni <de...@iki.fi> wrote:
> As a relational minded guy, I wonder why there aren't any genuinely
> relational minded formats/syntaxes/data around
Strikes me that N3 and SPARQL could be extended with some pretty
simple syntactic sugar to get this done.
#### employment_history.n3x ###########################
@prefix j: <http://example.com/job#> .
@relation JOB; j:Job, j:Employment; (j:title j:employer) .
<#joe>
foaf:name "Joe Bloggs" ;
is j:employee of
JOB("Bee Keeper" "W3C") ,
JOB("Senior Vice-President" "CompuGlobalHyperMeganet") ,
JOB("Polar Bear Wrangler" "DHARMA Initiative") .
#######################################################
The "@relation" directive would establish a relationship identifier. (In
the above case, "JOB".) Relationship types take a set of classes (above,
j:Job and j:Employment) and a list of properties.
When parsing, if the relationship identifier is encountered, the parser
consumes this, and then consumes an RDF list, but rather than adding
the list to the graph, it interpolates the classes and properties.
JOB("Bee Keeper" "W3C")
is treated as:
[ a j:Job, j:Employment; j:title "Bee Keeper"; j:employer "W3C" ]
An extended version of SPARQL (SPARQL-R, say) could include a similar
facility.
I've been playing with extending N3 syntax:
http://www.w3.org/wiki/ShorthandRDF#RDF-TriN3_Implementation
http://goddamn.co.uk/svn-web/perlmods/view/RDF-TriN3/examples/vcard_ttl.pl
This certainly seems like a useful idea, and I'd be happy to experiment
with something along these lines.
--
Toby A Inkster
<mailto:m...@tobyinkster.co.uk>
<http://tobyinkster.co.uk>