W3C home > Mailing lists > Public > www-webdav-dasl@w3.org > October to December 2003

RE: SEARCH for displayname

From: Wallmer, Martin <Martin.Wallmer@softwareag.com>
Date: Wed, 12 Nov 2003 08:44:04 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106063A910D@daemsg02.software-ag.de>
To: "'Kevin Wiggen'" <kwiggen@xythos.com>, "Wallmer, Martin" <Martin.Wallmer@softwareag.com>, www-webdav-dasl@w3.org
Hi Kevin,
with the introduction of BIND one resource with its singular set of
properties may be reached through several URIs,
<http://my.server.com/slide/reports/report-03-2003.pdf>  and
<http://localhost/myContext/myDrafts/draft.pdf>  might point to the same
physical resource. So you have two "last path segments", report-03-2003.pdf
and draft.pdf. Which one is the one to put into the <lastpathsegment>
You could somehow put a list of segements into that property, our resource
could have something like:
but then you need a way to access sub-elements of the property. But the
value of a property is a string (ok, may be integer). We currently have no
XML valued properties.
So for my opinion the last path segment deals best with the scope. I agree,
it should be an optional feature at the first glance.
Best regards,
-----Original Message-----
From: Kevin Wiggen [mailto:kwiggen@xythos.com]
Sent: Dienstag, 11. November 2003 19:31
To: Wallmer, Martin; www-webdav-dasl@w3.org
Subject: RE: SEARCH for displayname



While the approach of adding this lastpathsegment to the scope is valid, I
believe it is limiting and will force DASL parsers to understand extra
elements.  Why don't we simply add a new property <D:lastpathsegment> and
allow DASL to use it in a where clause?  


That way you can have the whole arsenal of operators (eq, gt, like, etc) and
OR instead of just AND (what if I want file %.pdf OR %.doc).  You also
shouldn't need to change your DASL parser that much as it needs to already
handle the parsing of the operators.


That way your example below turns to:


<d:searchrequest xmlns:d="DAV:"> 

(I apologize if my DASL and XML are not perfect; it's been some time since I
looked at exact syntax)


I believe that this has great strength in its functionality (very flexible)
and a lower overall cost of creation and support of DASL parsers and
therefore is a good idea.


Whether <d:lastpathsegment> makes its way into 2518 is optional I think at
this point.


Kevin Wiggen

Xythos Software Inc.


-----Original Message-----
From: Wallmer, Martin [mailto:Martin.Wallmer@softwareag.com] 
Sent: Tuesday, November 11, 2003 7:41 AM
To: 'www-webdav-dasl@w3.org'
Subject: SEARCH for displayname



I'd like to propose following change to section 5.4 (DAV:from): 

(additions enclosed in <Martin/> 

5.4  DAV:from 
<!ELEMENT scope            (href, depth, include-versions?, 
<Martin>include-lastpathsegment*, exclude-lastpathsegment* </Martin>) > 
<!ELEMENT include-versions EMPTY > 
<!ELEMENT include-lastpathsegment(#PCDATA)> 
<!ELEMENT exclude-lastpathsegment(#PCDATA)> 

DAV:from defines the query scope. 
This contains one or more DAV:scope elements. Support for multiple scope 
elements is optional, however servers MUST fail a request specifying 
multiple DAV:scope elements if they can't support it (see section 2.2.2, 
precondition DAV:search-multiple-scope-supported). The scope element 
contains mandatory DAV:href and DAV:depth elements. 

DAV:href indicates the URI to use as a scope. 

When the scope is a collection, if DAV:depth is "0", the search includes 
only the collection. When it is "1", the search includes the (toplevel) 
members of the collection. When it is "infinity", the search includes all 
recursive members of the collection. When the scope is not a collection, the

depth is ignored and the search applies just to the resource itself. 

When the child element DAV:include-versions is present, the search scope 
will include all versions (see [RFC3253], section 2.2.1) of all 
version-controlled resources in scope. Servers that do support versioning 
but do not support the DAV:include-versions feature MUST signal an error if 
it is used in a query. 

The content of DAV:include-lastpathsegment and DAV:exclude-lastpathsegment 
is a literal pattern same as defined for (@see 5.15.1) Like. 
When one or more child elements DAV:include-lastpathsegment are present, the

scope includes all resources, of which the last pathsegment of the uri 
matches the pattern. 
When one or more child elements DAV:exclude-lastpathsegment are present, the

scope excludes all resources, of which the last pathsegment of the uri 
matches the pattern. 

<d:searchrequest xmlns:d="DAV:"> 

The scope of this query comprises all resources within or below container1, 
that have the postfix .pdf, all doc files starting with "chapter", but not 
the file (for example) report-2001-july.pdf 


The former discussion showed, that it is a common task to somehow filter 
resources according to the "displayname". With BIND, several URI's may point

to the same resource. So a kind of "displayname" is not a property of the 
resource, but of the URI. 
If for technical reasons it would be more suitable for a specific 
implementation to have this information within the query, a preprocessing 
step could transform the SearchQuery document into the desired format. 


Martin Wallmer 
Research & Development 
Software AG    ++49 6151 92 1831 
Uhlandstr. 12 
D 64297 Darmstadt 
Received on Wednesday, 12 November 2003 02:45:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:22:43 UTC