How to read a file which is stored in virtuoso WebDAV

Please I need a function for reading files in virtuoso WebDAV as I can’t seem to find that in the documentation… I should add that I have been able to upload files to virtuoso WebDAV from a .NETCore client. @kidehen

Are you trying to retrieve a document from Virtuoso using the WebDAV protocol? Or are you trying to put a document in the Virtuoso WebDAV Filesystem (or Briefcase) using said protocol?

BTW – are you now successfully connecting to Virtuoso using the OpenID Connect + OAuth protocol via .NET Core?

I am trying to retrieve a document from virtuoso using the WebDAV protocol and possibly read it’s content, in the case of a text file.

P.S. I am now able to connect to virtuoso, but through the ODBC bridge in .NET Core.

Do you know how to read a file from an HTTP Server using .NET Core? If so, simply repeat the process using the URL of the target document in your Virtuoso instance.

Note, WebDAV is an HTTP-based protocol i.e., you simply make HTTP calls to your Virtuoso instance (on port 80 or 8890) to retrieve documents.

WebDAV specific calls only come into play when you are saving documents to a Virtuoso instance over HTTP.

Please is there a command in the documentation for downloading a file from virtuoso webdav… I can’t seem to find any.

Your question remains unclear. For instance, given a Virtuoso instance listening for HTTP/WebDAV requests on http://{host}:8890/ that hosts the file xyz.html, you would download the file via a GET request targeting the URL: http://{host}:8890/xyz.html.

Live URL example:

Clicking on that file will open it in your browser (which also offers a “save as” option).

You can also execute the following form your command line:

curl -O to download it etc…

The Briefcase interface to the WebDAV file system is simply a UI skin which also includes and API for REST-ful interaction etc…

You interact with Virtuoso’s WebDAV-based filesystem using the following options.

  1. HTTP - via GET, POST, PUT, DELETE methods
  2. ODSBriefcase API – this is useful in situations where you are seeking lower-level programmatic control (it supports REST-ful interaction or a SQL Stored Procedures based API approach)

To re-phrase my question, I would like to be able to access my files with only the right credentials. I wouldn’t want those files to be easily accessible to the general public through a simple link.

Okay, that implies controlled access to folders and files subject to access controls. For instance:

Achieving that mode of behavior is achieved via access controls using an UI that’s part of the ODS-Briefcase skin; or APIs once the process is understood conceptually.

I suggest you get to the point where you can replicate this behavior using your own ODS-Briefcase installation atop Virtuoso.