W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2001

Re: Storing RDF in a relational database

From: Aaron Swartz <me@aaronsw.com>
Date: Mon, 18 Jun 2001 18:10:47 -0400 (EDT)
Message-Id: <200106182213.f5IMDWQ01628@theinfo.org>
Cc: "RDF-Interest" <www-rdf-interest@w3.org>
To: "Danny Ayers" <danny.ayers@btinternet.com>
On Monday, June 18, 2001, at 04:16  PM, Danny Ayers wrote:

> I've had a look at the SWAP (I assume you're meaning the 
> internals of cwm)
> but still haven't grokked what's going on with the _ids - 
> perhaps you could
> help me with an example, what would go in the various fields 
> with the (all
> too familiar ;-)example below.

Sure, my system spits out :

   context (id): 
http://blogspace.com/rdf/swap/ns/2001-06-18/44/#_formula (1)
   subject (id): http://www.w3.org/Home/Lassila (0)
predicate (id): http://description.org/schema/Creator (0)
    object (id): Ora Lassila (2)

notation3.py defines these IDs as:

	RESOURCE = 0        # which or may not have a fragment
	FORMULA = 1         # A { } set of statements
	LITERAL = 2         # string etc - maps to data:
	ANONYMOUS = 3       # existentially qualified unlabelled resource
	VARIABLE = 4        #

The http://blogspace.com/rdf/swap/ns/2001-06-18/44/ is a made-up 
URI to distinguish different entries (files/submissions) which 
are stored in the database. This lets me do provenance-type 
stuff, like looking up who said what and when.

--
[ "Aaron Swartz" ; <mailto:me@aaronsw.com> ; <http://www.aaronsw.com/> ]
Received on Monday, 18 June 2001 22:21:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:49 GMT