<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" 
                          "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
  <header>
    <title>Welcome to SKOS Plugin for Forrest</title>
  </header>
  <body>
    <section id="overview">
      <title>Apache Forrest - SKOS Plugin</title>
      <p>
        This plugin processes <a href="ext:skos">SKOS</a>
	RDF/XML as input format.
      </p>
    </section>
    <section id="samples">
      <title>Samples</title>
      <note>
        This plugin is in an early development stage.
      </note>
      <p>
        This section includes samples that have been made available so far to 
        demonstrate the existing functionalities of the plugin.
      </p>
      <section id="glossary">
        <title>Glossary</title>
        <p>
          This sample generates a glossary from a collection of 
          <code>skos:Concept</code>s written in RDF/XML format.
          An example would be:
        </p>
        <source>
<![CDATA[
<rdf:Description rdf:about="http://example.org/glossary/logic#">
  <dc:title>Glossary of Logic</dc:title>
  ...
</rdf:Description>

<skos:Concept rdf:about="http://example.org/glossary/logic#categorical_proposition">
  <skos:prefLabel>categorical proposition</skos:prefLabel>
  <skos:definition>
  ...
  </skos:definition>
  <skos:definition>
  ...
  </skos:definition>
  <skos:related rdf:resource="http://example.org/glossary/logic#proposition"/>
</skos:Concept>
]]>
        </source>
        <p>
          A map of available glossaries must be provided in the 
          <a href="ext:forrest/locationmap">locationmap</a>, 
          which is by default located in <code>{properties:content}</code>. The 
          following example shows how to map glossaries in the locationmap.
        </p>
        <source>
<![CDATA[
    <match pattern="skos.glossary.logic">
      <location src="http://example.org/glossary/logic.rdf"/>
    </match>
    <match pattern="skos.glossary.string-theory">
      <location src="{properties:content}skos/glossaries/string-theory.rdf"/>
    </match>
]]>
        </source>
        <p>
          Here are some requests served by the plugin.
        </p>
        <ul id="glossary-formats">
          <li>
            <a href="site:glossary/all">List of all available glossaries</a>
          </li>
          <li>
            An example glossary published by W3C in 
            <a href="/samples/glossary/rdf-mt.html">HTML</a>, 
            <a href="/samples/glossary/rdf-mt.pdf">PDF</a>, 
            <a href="/samples/glossary/rdf-mt.rdf">RDF</a>, and
            <a href="/samples/glossary/rdf-mt.xml">XDoc</a> formats.
          </li>
        </ul>
      </section>
    </section>
  </body>
</document>
