Book Home

Contents
Preface


Virtuoso Conductor Administration
Runtime Hosting
Web Services
WebDAV Administration
DAV Resource Types Content Management Free Text
Internet Domains
XML Services
Query Tools
Replication & Synchronization
Database Administration
Conductor News Server Administration

7.4. WebDAV Administration

DAV, or WebDAV, is a protocol for Web-based Distributed Authoring and Versioning. The location where content items are placed is called the repository. Content elements are called documents, corresponding to files, and folders/collections, corresponding to directories. Collectively these documents and folders (collections) are known as resources.

Virtuoso implements the DAV protocol, allowing you to create and manage resources either directly through repository manipulations or indirectly, through a variety of WebDAV services.

7.4.1. DAV Resource Types

To make sure that when Virtuoso serves files to client user agents the type of file is conveyed properly so that the right application can be used with that file a list or file types are maintained in the server. This list is used when sending any content via the HTTP server which include content in DAV and under VSP.

DAV Resource Types
Figure: 7.4.1.1. DAV Resource Types

The Web Application Server/Content Management/Resource Types page shows the list of currently defined resource types in the Virtuoso server. You can edit or remove these types by using the action links on the right most column of the list next to the type applicable.

Add new types by typing the details into the fields provided and pressing the Save button.


7.4.2. Content Management

The content management page gives you an interface to the WebDAV repository resources. From here you can navigate or create directories, commonly refered to as collections or folders in DAV, alter properties, upload or remove files, or edit documents.

The Repository tab lists the current location within the tree and the current login name. The root of the repository is usually /DAV/.

Content Management
Figure: 7.4.2.1. Content Management

7.4.2.2. Resource Names

Resource names are given with collection (folder) names listed first, then individual documents. Permissions on resources are presented in a style similar to Unix, with (r)ead, (w)rite, and e(x)ecute permissions listed for the resource owner (the user), the resource's group, and for the general public. If a permission is present, the letter is shown; if not, it is replaced with a dash.


7.4.2.3. Resource Permissions

Unlike Unix, the Repository does not use the designation 'd' for directories, which in DAV are more commonly referred to as collections. Collections are distinguished by a different icon - a folder-like icon - and by having the type named "collection".

In addition, the permissions string has a trailing letter designating the indexing status of the resource. This letter is 'n' to designate that indexing is off, 'r' for recursive indexing, and 't' for direct indexing.


7.4.2.4. Resource User and Group

By default, the user and group of a DAV resource are those set by the service that created the resource, or they are the ID and primary group of the user who was logged in when the resource was created.


7.4.2.5. Resource Size

The size of a document resource is its size in disk bytes. Note that this does not necessarily correspond to characters displayed on the screen because of encodings. For example, the HTML token &-a-m-p-semicolon is five bytes on disk but displays as a single screen character.


7.4.2.6. Resource Type

The type of a resource is always "collection" for collections (folder). For documents it can be any of the known resource types (see Resource Types below). The resource type is usually based on the resource's extension; for example, .xml files are usually assumed to be text/xml. If Virtuoso does not recognize the extension of a resource, it assigns the default type of application/octet-stream.


7.4.2.7. Editing Properties

Within the Content Management screen, you can change any of the properties of a resource, other than its name, by selecting the resource via the checkbox to the left of the icon, and pressing the "Properties" button.

XML documents also permit you to edit their XML properties specifically. This can be done on any document of type text/xml by clicking on the icon for the document.

7.4.2.7.1. Properties

When clicked this button from the bottom of the page, you can edit the properties for one or a group of resources which should be selected. The name of a resource cannot be changed.

The owner, group, permissions, and indexing controls on this form apply to the appropriate properties of resources, as documented above. Changes to the type of a collection (folder) are ignored.

The "Property" control permits you to change or add additional properties. There is a pulldown of predefined XML-related properties, or you may create your own property.


7.4.2.7.2. WebDAV Properties

This control permits you to manipulate the specific properties of XML documents. Existing properties are shown with their values, and can be removed. New properties can be added.

XML-related properties are generally set by specific XML-related services and do not need to be edited directly by users; however, this interface provides a quick means to correct a minor typo or other change without re-running the entire service. For example, you can change the xml-sql-root property, which controls the name of the root XML element for the document.



7.4.2.8. Adding New Resources

Resources may be added to the repository in two ways: by uploading files or by creating new collections (folders). Buttons for both these methods are on the page.

The "Create Folder" button brings up a form in which you can specify the name of the collection (folder), its owner and group, and the initial permissions. You may also turn on indexing for the folder's contents at this point.

The "Upload File" button brings up a form in which you can specify the name and location of a file on your local computer that is to be copied into the DAV repository. You need to specify the name of the resource in the repository and give it a type. You can also set the basic repository properties here.

7.4.2.8.1. WebDAV Symbolic Linking

WebDAV symbolic linking, also known as DAV redirection, is another method for accessing content from your DAV repository. Instead of directly copying or creating resources, as described above, symbolic linking permits you to create a reference to a resource. In this sense it is similar to the "Create Shortcut" feature of Windows, "Make Alias" on MacOS, and the "ln -s" command on Unix systems.

This capability enables Virtuoso users to import resources from a plethora of sites such as webzine articles and keep references to these imported resources in sensible locations for future reference.

In the Virtuoso Conductor WebDAV Content Manager, links appear and are accessed just as you would see a created resource. Their Type is Link:<Target> where the target is the URL of the resource being linked.

To create a link, you first navigate to the DAV Repository location where you want the alias to reside. Then click the Create Link button at the bottom-right of the screen. This brings you to a screen where you can specify the Link Name, as it will appear in your DAV Repository. The Link to field can be given a full URL, as in the example below, or you can use the Browse button to target a resource elsewhere in the DAV.

Linked resources do not permit direct Edit operations. You can change the Target by editing the redirectref property of the link. To view the resource, simply click its Name.

Examples:

If I wish to keep a link to the article found at <URL: http://www.xml.com/pub/a/2001/10/17/slippery-soap.html> I would simply click the Add Link button, type a useful local name, such as "Slippery SOAP article" and paste the URL into the Link to field.

More interesting, I could set up a Web Data Import for the target <URL: http://news.cnet.com/news/0-1277-210-7545619-1.html?tag=bt_bh>

When this URL target is imported, Virtuoso will replicate the traversal path within the DAV repository that results in multiple access point locations for each import. Using the symbolic link feature, we are able to map the actual documents imported to a common location without encountering problems related to component references, embedded links, etc.




7.4.3. Free Text

7.4.3.1. Indexing Mode

When files are inserted into Virtuoso's WebDAV repository, if their type is a type of text file such as plain text TXT, XML, or HTML, then they may be automatically free text indexed.

By default files are automatically free text indexed as they are inserted into Virtuoso. This is very convenient but can be time consuming if you frequently insert or update text files. For this reason Virtuoso can be set to index in batch mode at a particular interval in minutes.

DAV Free Text Index Configuration
Figure: 7.4.3.1.1. DAV Free Text Index Configuration

To change the free-text index mode to batch mode check the check-box and provide a non-zero time interval (in minutes). Press the Accept button to save the changes into the server.