Set Webdav Resource Property logo

Set Webdav Resource Property

Organization
OpenLinkSoftware
set-webdav-resource-property

Set custom WebDAV properties on resources via PROPPATCH requests using curl. Supports arbitrary prefixed properties (schema:name, dc:title, etc.), auto-generated human-readable titles from filenames with type tags, batch processing, and known namespace defaults.

Overview

PublisherOpenLinkSoftware
Repositoryai-agent-skills
Skill nameset-webdav-resource-property
Stars
42
Forks
10
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by OpenLinkSoftware on GitHub. Read the source before you install it.

Installation

Install the Set Webdav Resource Property AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/set-webdav-resource-property
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenLinkSoftware/ai-agent-skills.git /tmp/ai-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-agent-skills/set-webdav-resource-property .claude/skills/set-webdav-resource-property
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Set Webdav Resource Property in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Set Webdav Resource Property on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Set Webdav Resource Property is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WebDAV Custom Property Setting Skill

Set custom metadata properties on WebDAV resources via PROPPATCH requests using curl. This skill enables you to add human-readable titles, Dublin Core metadata, schema.org properties, and any custom namespace-prefixed property to files and directories on a WebDAV server (Virtuoso or any WebDAV-compliant server).

When to Use This Skill

  • Setting schema:name or dc:title on WebDAV-hosted resources
  • Adding human-readable display titles to files with technical filenames
  • Batch-setting metadata across multiple WebDAV resources
  • Configuring DAV properties for resource discovery and browsing
  • Adding custom namespace-prefixed properties to WebDAV resources

Trigger Phrases

  • "set WebDAV property"
  • "set custom property on"
  • "set DAV title"
  • "PROPPATCH"
  • "set schema:name on"
  • "set dc:title for"
  • "add metadata to WebDAV resource"

Quick Workflow

1. Gather Required Parameters

-u USER        WebDAV username (required)
-p PASS        WebDAV password (if omitted, prompt interactively)
-b BASE        Base URL (required), e.g. https://www.openlinksw.com
-P PATH        Resource path (required), e.g. /dav/home/demo/docs/file.pdf
-n PROP        Property to set (default: schema:name). Use prefix:local form
-s NS_URI      Namespace URI for the prefix (optional; known defaults below)
-v             Verbose mode (show generated XML and responses)

2. Known Namespace Defaults

PrefixNamespace URI
schemahttp://schema.org/
dchttp://purl.org/dc/elements/1.1/

If -s is not provided and the prefix matches a known default, the namespace is auto-declared on the PROPPATCH root element.

3. Set Property on a Single Resource

Example: Set schema:name on a PDF file:

bash
curl -u "demo:demo" -X PROPPATCH "https://linkeddata.uriburner.com/dav/home/demo/docs/report.pdf" \
  -H "Content-Type: application/xml; charset=utf-8" \
  --data '<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:" xmlns:schema="http://schema.org/">
  <D:set>
    <D:prop>
      <schema:name>Report (PDF)</schema:name>
    </D:prop>
  </D:set>
</D:propertyupdate>'

4. Set Property on Multiple Resources

For batch operations, iterate over a list of paths:

bash
while IFS= read -r path; do
  [[ -z "$path" || "$path" =~ ^# ]] && continue
  filename="$(basename "$path")"
  basefn="${filename%.*}"
  ext="${filename##*.}"
  ext_lower="$(printf "%s" "$ext" | tr '[:upper:]' '[:lower:]')"
  case "$ext_lower" in
    pdf) type_tag="(PDF)" ;;
    mp4|mkv|webm) type_tag="(Video)" ;;
    png|jpg|jpeg|gif|svg) type_tag="(Image)" ;;
    wav|mp3|m4a) type_tag="(Audio)" ;;
    html|htm) type_tag="(WebPage)" ;;
    *) type_tag="" ;;
  esac
  title="$(printf "%s" "$basefn" | sed -E 's/%20/ /g; s/[_-]+/ /g; s/[[:space:]]+/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2)); print}') $(printf "%s" "$type_tag" | sed 's/[[:space:]]*$//')"
  curl -sS -u "demo:demo" -X PROPPATCH "https://linkeddata.uriburner.com${path}" \
    -H "Content-Type: application/xml; charset=utf-8" \
    --data "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<D:propertyupdate xmlns:D=\"DAV:\" xmlns:schema=\"http://schema.org/\">
  <D:set>
    <D:prop>
      <schema:name>${title}</schema:name>
    </D:prop>
  </D:set>
</D:propertyupdate>" -w "HTTP %{http_code}\n"
done < paths.txt

5. Verify Property Was Set

Use a PROPFIND request to read back the property:

bash
curl -u "demo:demo" -X PROPFIND "https://linkeddata.uriburner.com/dav/home/demo/docs/report.pdf" \
  -H "Depth: 0" \
  -H "Content-Type: application/xml" \
  --data '<?xml version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:" xmlns:schema="http://schema.org/">
  <D:prop>
    <schema:name/>
  </D:prop>
</D:propfind>'

PROPPATCH XML Structure

The PROPPATCH body follows this pattern:

xml
<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:" xmlns:PREFIX="NAMESPACE_URI">
  <D:set>
    <D:prop>
      <PREFIX:localName>value</PREFIX:localName>
    </D:prop>
  </D:set>
</D:propertyupdate>

Key rules:

  • The namespace declaration (xmlns:PREFIX) appears on the root <D:propertyupdate> element, not on the property element itself
  • The property element contains only the plain text value
  • Use D: prefix for DAV: namespace elements (propertyupdate, set, prop)

Friendly Title Generation

When setting schema:name without an explicit value, generate a human-readable title from the filename:

  1. Strip the file extension
  2. Replace %20, _, and - with spaces
  3. Collapse multiple spaces to single space
  4. Title-case each word
  5. Append a type tag based on extension:
    • .pdf → (PDF)
    • .mp4, .mkv, .webm → (Video)
    • .png, .jpg, .jpeg, .gif, .svg → (Image)
    • .wav, .mp3, .m4a → (Audio)
    • .html, .htm → (WebPage)
    • Other → no tag

Examples:

  • ai-compute-race-3-tiers.pdf → Ai Compute Race 3 Tiers (PDF)
  • quarterly_report_2026.xlsx → Quarterly Report 2026
  • product%20demo.mp4 → Product Demo (Video)

XML Escaping

When property values contain special characters, escape them:

CharacterEscape
&&amp;
<&lt;
>&gt;
'&apos;
"&quot;

Error Handling

  • HTTP 207 Multi-Status: PROPPATCH succeeded (standard WebDAV response)
  • HTTP 401 Unauthorized: Check credentials
  • HTTP 404 Not Found: Resource path is incorrect
  • HTTP 405 Method Not Allowed: Server does not support PROPPATCH
  • HTTP 423 Locked: Resource is locked; unlock first or use Lock token header

Scripts

  • scripts/set-webdav-resource-property.sh — Full-featured shell script wrapping the curl PROPPATCH logic with argument parsing, batch processing, verbose mode, and namespace resolution.

Getting Started

  1. Identify the WebDAV server base URL and your credentials
  2. Determine which property you want to set (e.g., schema:name, dc:title)
  3. List the resource paths you want to update
  4. Run the curl PROPPATCH commands or use the bundled script
  5. Verify with PROPFIND

Examples

Set schema:name on a single file

bash
curl -u "demo:demo" -X PROPPATCH "https://linkeddata.uriburner.com/dav/home/demo/docs/presentation.mp4" \
  -H "Content-Type: application/xml; charset=utf-8" \
  --data '<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:" xmlns:schema="http://schema.org/">
  <D:set>
    <D:prop>
      <schema:name>Presentation (Video)</schema:name>
    </D:prop>
  </D:set>
</D:propertyupdate>'

Set dc:title with custom namespace

bash
curl -u "demo:demo" -X PROPPATCH "https://linkeddata.uriburner.com/dav/home/demo/docs/article.html" \
  -H "Content-Type: application/xml; charset=utf-8" \
  --data '<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <D:set>
    <D:prop>
      <dc:title>Article (WebPage)</dc:title>
    </D:prop>
  </D:set>
</D:propertyupdate>'

Batch set with the bundled script

bash
./scripts/set-webdav-resource-property.sh \
  -u demo -p demo -b https://linkeddata.uriburner.com \
  -f paths.txt -n schema:name -v

Where paths.txt contains:

/dav/home/demo/docs/report.pdf
/dav/home/demo/docs/presentation.mp4
/dav/home/demo/docs/article.html

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Set Webdav Resource Property AI skill do?

Set custom WebDAV properties on resources via PROPPATCH requests using curl. Supports arbitrary prefixed properties (schema:name, dc:title, etc.), auto-generated human-readable titles from filenames with type tags, batch processing, and known namespace defaults.

Why use Set Webdav Resource Property on TypingMind?

Because you install it once and use it with any model. Set Webdav Resource Property is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Set Webdav Resource Property in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/set-webdav-resource-property. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Set Webdav Resource Property?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Set Webdav Resource Property?

As many as you like. As long as a model supports skills, you can use Set Webdav Resource Property with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Set Webdav Resource Property AI skill free?

Yes. It is published on GitHub by OpenLinkSoftware under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇