[Versa] Question about query
Uche Ogbuji
uche.ogbuji at fourthought.com
Sun Sep 4 09:57:06 MDT 2005
On Thu, 2005-09-01 at 11:00 -0600, Michael Olson wrote:
> The following is a legal expression in Versa:
>
> <http://foo.com>
>
> It can be used as a filter expression in a filter or traversal and it
> returns a boolean value if the resource matches, etc.
Not currently. You need eq(<http://foo.com>). We did discuss predicate
vs pattern last month but I don't recall we ever settled on such a
change.
> My question, is what if this is the top level expression and executed
> on an empty model. What are the results of the expression?
>
> Is it a boolean?
>
> Is it null because the resource does not exist?
>
> Is it just the resource's URI regardless of whether or not it exists?
Yes.
> I think it should be the empty set.
Why?
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://fourthought.com
http://copia.ogbuji.net http://4Suite.org
Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html
XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html
Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/
Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html
More information about the Versa
mailing list