RE: TimeZones in RDF

Here's an RDFQL script that will gather them all...

--Geoff Chappell
====================================================================


session.namespaces["inet"] =
"http://www.intellidimension.com/namespaces/inet#";

var res = new Datasource();

getDir("http://www.w3.org/2002/12/cal/tzd/", res)

select ?p ?s ?o using #res where {?p ?s ?o};

function getDir(dir, res)
{
	Response.write("Getting Dir:" + dir);
	var ds = new datasource("inet?parsetype=html&url=" +
server.urlencode(dir));

	var rs = (select ?f using #ds where {[inet:_href] ?x ?f} and
regexp(?f, ".rdf") <> '');
	while (!rs.EOF)
	{
		Response.write("Getting file:" + dir + rs[0]);
		var dsRDF = new datasource("inet?parsetype=rdf&url=" +
server.urlencode(dir + rs[0]));
		(insert {?p ?s ?o} into #res using #dsRDF where {?p ?s
?o});

		rs.MoveNext();
	}	

	rs = (select ?dir using #ds where {[inet:_href] ?x ?dir} and
regexp(?dir, "^[^/]+/") <> '');
	while (!rs.EOF)
	{
		getDir(dir + rs[0], res);

		rs.MoveNext();
	}
}

-----Original Message-----
From: www-rdf-calendar-request@w3.org
[mailto:www-rdf-calendar-request@w3.org] On Behalf Of Tim Spurway
Sent: Friday, May 09, 2003 11:34 AM
To: www-rdf-calendar@w3.org
Subject: TimeZones in RDF


Hello -

I have found the RDF version of the timezone database at 
www.w3.org/2002/12/cal/#tzd - does anyone know if there is a 'tarred' 
or 'zipped' version of these RDF files online somewhere?

Tim Spurway
www.semaview.com

Received on Friday, 9 May 2003 13:30:21 UTC