RE: Proposed XQuery requirement and/or objective

> > 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 UTC