OpenLink Documentation
  • OpenLink Virtuoso
  • Installation Guide
  • Manual
    • Preface
    • Overview
    • Installation Guide
    • Quick Start & Tours
    • Sample ODBC & JDBC Applications
    • Conceptual Overview
    • Conductor Guide
    • Virtuoso Server
    • Data Access Interfaces
    • Virtual Database Engine
    • SQL Reference
    • Virtuoso Cluster Programming
    • SQL Procedure Language Guide
    • Database Event Hooks
    • Data Replication Services
    • Web Application Development
    • XML Support
    • RDF Data Access Management
    • Web Services
    • Runtime Hosting
    • Internet Services
    • Free Text Search
    • TPC C Benchmark Kit
    • Using Virtuoso with Tuxedo
    • Appendix A
    • Functions Reference Guide
  • Evolving Documentation
  • Universal Data Access (UDA)
    - ODBC, JDBC, ADO.NET, OLEDB
  • Installation Guide
  • Enterprise Edition (Multi-Tier) Manual
    • OpenLink ODBC Driver (Multi-Tier Edition) Documentation
    • Preface
    • Overview
    • New Features in OpenLink UDA
    • OpenLink ODBC Driver (Multi-Tier Edition) Client Component
    • OpenLink ADO.NET Data Providers
    • OpenLink OLE-DB Provider
    • Server Components Installation
    • Request Broker Administration
    • Server Agent Administration
    • Securing a Multi-Tier connection using SSL
    • Zero Configuration Networking
    • JDBC Components
    • Distributed Transaction Processing (XA)
    • Real Application Cluster (RAC) / TAF Support
    • OpenLink ODBC Driver Manager (iODBC SDK)
    • Sample Applications
    • Bugs Fixed
    • Technical Appendix
  • Express Edition (Single-Tier) Manual
    • OpenLink ODBC Driver (Express Edition) Documentation
    • Product Licensing
    • OpenLink ODBC Driver for DB2 (Express Edition)
    • OpenLink ODBC Driver for Firebird (Express Edition)
    • OpenLink ODBC Driver for Informix (Express Edition)
    • OpenLink ODBC Driver for Ingres (Express Edition)
    • OpenLink ODBC Driver for MySQL (Express Edition)
    • OpenLink ODBC Driver for Oracle (Express Editon)
    • OpenLink ODBC Driver for PostgreSQL (Express Edition)
    • OpenLink ODBC Driver for SQL Server (Express Editon)
    • OpenLink ODBC Driver for Sybase (Express Editon)
  • Lite Edition (Single-Tier) Manual
    • Preface
    • Overview
    • New Features in OpenLink UDA
    • OpenLink ODBC Driver (Single-Tier Edition) System Requirements and Basic Instructions
    • OpenLink ODBC Driver (Single-Tier Edition) Installation
    • OpenLink ODBC Driver (Single-Tier Edition) Configuration
    • OpenLink ADO.NET Data Providers
    • OpenLink OLE-DB Provider
    • OpenLink JDBC Driver (Single-Tier Edition)
    • Distributed Transaction Processing (XA)
    • OpenLink ODBC Driver (Single-Tier Edition) Unicode Support
    • OpenLink ODBC Driver Manager (iODBC SDK)
    • Bugs Fixed
  • Evolving Documentation


OpenLink Software
Home
Universal Data Access (UDA)
- ODBC, JDBC, ADO.NET and OleDB Drivers
Virtuoso
Virtuoso Open-Souce Edition
OpenLink Structured Data Editor
OpenLink Structured Data Sniffer
OpenLink Data Explorer (ODE)
OpenLink AJAX Toolkit (OAT)
OpenLink Data Spaces (ODS)
Documentation

Prev Up Next
DAV lock manipulation functions Home WebDAV Users & Groups administration
  • OpenLink Virtuoso Universal Server Documentation
    • Virtuoso Functions Guide & Reference

Name

DAV_SEARCH_ID , DAV_SEARCH_PATH , DAV_DIR_LIST — Functions for searching a DAV collection or resource

Synopsis

integer DAV_SEARCH_ID ( in path varchar ,
in what char(1) );
varchar DAV_SEARCH_PATH ( in id integer ,
in what char(1) );
any DAV_DIR_LIST ( in path varchar ,
in recursive integer ,
in auth_uid varchar ,
in auth_pwd varchar );

Description

DAV_SEARCH_ID() returns the RES_ID or COL_ID, depending on the 'what ' parameter passed. ('R'esource or 'C'ollection or 'P'arent collection).

DAV_SEARCH_PATH() returns full path string of resource or collection, depending on parameter passed. ('R'esource or 'C'ollection or 'P'arent collection).

DAV_DIR_LIST() returns an array of arrays that contains the following information about the requested path:

fullpath
type ('r' or 'c') which indicates resource or collection.
length
modification time
id
permissions
group id
owner id
created
mime type

Parameters

path

Name of DAV location to search.

what

The type of DAV item to search for: 'R' for resource, 'C' for collection or 'P' for parent collection.

id

Identifier of resource or collection, for example from DAV_SEARCH_ID().

recursive

If non zero then recurse into subdirectories during the search. Default is 0 which causes a search in current path only.

auth_uid

Administration user capable of performing the operation. Default is null.

auth_pwd

Password of Administrator. Default is null.

Errors

Table24.21.Errors signalled by DAV_* functions

Error Code Description
>=0 success
-1 The path (target of operation) is not valid
-2 The destination (path) is not valid
-3 Overwrite flag is not set and destination exists
-4 The target is resource, but source is collection (in copy move operations)
-5 Permissions are not valid
-6 uid is not valid
-7 gid is not valid
-8 Target is locked
-9 Destination is locked
-10 Property name is reserved (protected or private)
-11 Property does not exists
-12 Authentication failed
-13 Operation is forbidden (the authenticated user do not have a permissions for the action)
-14 the target type is not valid
-15 The umask is not valid
-16 The property already exists
-17 Invalid property value
-18 no such user
-19 no home directory

Examples

Example24.79.Searching in WebDAV

The example shows retrieval of the resource id by given path string

SQL> select DB.DBA.DAV_SEARCH_ID ('/DAV/','c');
callret
VARCHAR
_______________________________________________________________________________

1

SQL> select DB.DBA.DAV_SEARCH_PATH (1,'c');
callret
VARCHAR
_______________________________________________________________________________

/DAV/


See Also

DAV content add/update/delete functions

DAV content manipulation functions

DAV lock manipulation functions

DAV user management functions


Prev Up Next
DAV lock manipulation functions Home WebDAV Users & Groups administration

© OpenLink Software 2016.

This HTML5 document contains 16 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

Prefix Namespace IRI
n4 http://docs.openlinksw.com/virtuoso/fn_dav_api_search/
schema http://schema.org/
n5 http://creativecommons.org/licenses/by/4.0/deed.
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
n3 http://www.openlinksw.com/#
xsdh http://www.w3.org/2001/XMLSchema#
Subject Item
n4:
rdf:type
schema:APIReference schema:TechArticle
schema:name
DAV search functions
schema:copyrightHolder
_:vb79242
schema:datePublished
2016-09-09 16:16:54
schema:headline
DAV search functions
schema:keywords
OpenLink,Virtuoso,database,RDBMS,relational,SQL,RDF,triple store,linked data,linked open data,Big Data,function,API,reference,dav_api_search
schema:license
n5:en_US
schema:publisher
_:vb79241
schema:url
n4:
Subject Item
_:vb79241
rdf:type
schema:Organization
schema:name
OpenLink Software
schema:url
n3:this
Subject Item
_:vb79242
rdf:type
schema:Organization
schema:name
OpenLink Software
schema:url
n3:this

This HTML document contains 16 embedded RDF statements represented using (X)HTML+RDFa notation.

The embedded RDF content will be recognized by any processor of (X)HTML+RDFa.

Namespace Prefix Namespace URI
xmlns:n4 http://docs.openlinksw.com/virtuoso/fn_dav_api_search/
xmlns:schema http://schema.org/
xmlns:n5 http://creativecommons.org/licenses/by/4.0/deed.
xmlns:rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
xmlns:n3 http://www.openlinksw.com/#
xmlns:xsdh http://www.w3.org/2001/XMLSchema#
Subject Predicate Object
n4: rdf:type schema:APIReference
n4: rdf:type schema:TechArticle
n4: schema:name DAV search functions
n4: schema:copyrightHolder _:vb79242
n4: schema:datePublished 2016-09-09 16:16:54
n4: schema:headline DAV search functions
n4: schema:keywords OpenLink,Virtuoso,database,RDBMS,relational,SQL,RDF,triple store,linked data,linked open data,Big Data,function,API,reference,dav_api_search
n4: schema:license n5:en_US
n4: schema:publisher _:vb79241
n4: schema:url n4:
_:vb79241 rdf:type schema:Organization
_:vb79241 schema:name OpenLink Software
_:vb79241 schema:url n3:this
_:vb79242 rdf:type schema:Organization
_:vb79242 schema:name OpenLink Software
_:vb79242 schema:url n3:this