[Versa] Question about query
Michael Olson
Mike.Olson at fourthought.com
Sun Sep 4 11:33:10 MDT 2005
>> 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?
>
Be cause it is a "query". So I guess my feeling is if we want to
express
<http://foo.com>
as a versa query, then it needs to be a query.
Same with
true
and to me it is a query of whether or not that resource exists in the
model.
If we don't want it to be query, but a "pattern", then we would have
to change the spec so the above two queries are not valid as top level
queries, but only valid in filter, traverse, and function calls.
As I said in a previous email, it is on my "need" list to support these
queries. If we remove them, then I will have to use an extension
function.
Mike
>
> --
> 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
>
------------------------------------------------------------------------
-----------------
Mike Olson Principal
Consultant
mike.olson at fourthought.com +1 720 253 4662
Fourthought, Inc.
http://Fourthought.com
PO Box 270590, http://4Suite.org
Louisville, CO 80027-5009, USA
XML strategy, XML tools, knowledge management
More information about the Versa
mailing list