W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2004

RE: Proposed XQuery requirement and/or objective

From: Rob Shearer <Rob.Shearer@networkinference.com>
Date: Tue, 20 Jul 2004 09:17:52 -0700
Message-ID: <CFE388CECDDB1E43AB1F60136BEB4973028107@rome.ad.networkinference.com>
To: "Steve Harris" <S.W.Harris@ecs.soton.ac.uk>, <public-rdf-dawg@w3.org>

> > for $member in doc(http://foo/people.xml)/Person
> > where asserted($member/URI, http://foo#worksFor, 
> http://foo#NetworkInference)
> > return $member/name
> 
> Wouldn't "Person" in the first line require some 
> namespace/prefix? Also, I
> dont quite understand why the / after doc() implies the 
> rdf:type part of the
> 	($memeber  rdf:type  foo:Person)
> triple. Is it just shorthand? if so, why "/"?

No; this example was meant to demonstrate use of XML along with RDF
stuff, so the XPath expression was just selecting all the top-level
<Person> elements in some XML doc in the conventional way. Everything
but the asserted() call is vanilla XQuery.
Received on Tuesday, 20 July 2004 12:20:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:20 GMT