<?xml version="1.0" encoding="UTF-8"?>
<powder xmlns="http://www.w3.org/2007/05/powder#"
        xmlns:ex="http://example.org/vocab#"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <attribution>
    <issuedby src="http://authority.example.org/company.rdf#me"/>
  </attribution>

  <dr>

    <iriset>
      <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]+\.)?(example\.com)(\:([0-9]+))?\/</includeregex>
      <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]*)(\:([0-9]+))?(foo|bar)</includeregex>
    </iriset>

    <iriset>
      <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]+\.)?(example\.org)(\:([0-9]+))?\/</includeregex>
    </iriset>

    <descriptorset>
      <ex:shape>square</ex:shape>
    </descriptorset>

    <tagset>
      <tag>A tag</tag>
      <tag>Another tag</tag>
    </tagset>

  </dr>

  <ol>

    <dr>

      <iriset>
        <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]+\.)?(example\.com)(\:([0-9]+))?\/</includeregex>
        <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]*)(\:([0-9]+))?\/[^\?\#]*(\.html|\.php|\.pdf)($|\?|\#)</includeregex>
        <excluderegex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]*)(\:([0-9]+))?\/[^\?\#]*(\.jpg|\.png|\.gif)($|\?|\#)</excluderegex>
      </iriset>

      <descriptorset>
        <ex:type>Document</ex:type>
      </descriptorset>

    </dr>

    <dr>

      <iriset>
        <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]+\.)?(example\.com)(\:([0-9]+))?\/</includeregex>
        <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]*)(\:([0-9]+))?\/[^\?\#]*(\.jpg|\.png|\.gif)($|\?|\#)</includeregex>
      </iriset>

      <descriptorset>
        <ex:type>Image</ex:type>
      </descriptorset>

    </dr>

    <dr>

      <iriset>
        <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]+\.)?(example\.com)(\:([0-9]+))?\/</includeregex>
      </iriset>

      <descriptorset>
        <ex:type>Other</ex:type>
      </descriptorset>

    </dr>

  </ol>

  <ol>

    <dr>

      <iriset>
        <includeregex>^[A-Za-z]+:\/\/([^:/\?#@]+\.)+example.org(\:[0-9]+)?</includeregex>
      </iriset>

      <descriptorset>
        <ex:colour>red</ex:colour>
      </descriptorset>

    </dr>

    <dr>

      <iriset>
        <includeregex>\:\/\/(([^\/\?\#]*)\@)?([^\:\/\?\#\@]+\.)?(example\.org>)(\:([0-9]+))?\/</includeregex>
      </iriset>

      <descriptorset>
        <ex:colour>Blue</ex:colour>
      </descriptorset>

    </dr>

  </ol>

  <descriptorset xml:id="round">
    <ex:shape>round</ex:shape>
  </descriptorset>

</powder>
