<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE rdf:RDF [
   <!ENTITY sv  "http://www.senselogic.se/2006/10/26/sitevision#" >
   ]>

<!--
Example RDF file that can be imported into a SiteVision installation using the import tool.

The format is based on common RDF vocabularies such as RSS, RSS Content, and Dublin Core. Some SiteVision-specific
extensions are specified using the SiteVision namespace.

See comments below for specific details.
-->
<rdf:RDF
   xmlns="&sv;"
   xmlns:sv="&sv;"
   xml:base="&sv;"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rss="http://purl.org/rss/1.0/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/">

	 <!-- A channel represents a folder or archive in SiteVision that already exists, and where the pages should be created under.
	      "dc:identifier" is used to locate which folder or archive to use. Make sure to either specify both a proper hostname and id of the archive, or the short id of the page.
	      The articles or pages to be created should be enumerated using "rss:items" -->
   <rss:channel dc:identifier="http://localhost/3.7119907f1085211398f7fff285.html">
      <rss:items>
         <rdf:Seq>
            <rdf:li rdf:resource="article1"/>
         </rdf:Seq>
      </rss:items>
   </rss:channel>

	 <!-- An item represents a page that either exists (if "dc:identifier" is specified) or which should be created by the import service.
	      
	      If a page is created the following properties are mandatory:
	      * sv:template is used to specify, by name, which template to use. 
	      
	      The following properties may be used when creating/updating pages:
              * sv:force - whether or not an existing page that has been manually changed should be updated. Defaults to true.
	      * dc:title - name of page
	      * sv:hidden - whether the page should be hidden
	      * sv:indexable - whether the page should be indexed
	      * dc:created - date of creation
	      * dc:creator - user that created the page
	      * dc:modified - modified date
	      * dc:available - when the page becomes available. If in the future then it will be published at that time
	      * dc:publisher - the users that published the page
	      * dc:valid - when the page becomes unavailable. If it is in the future then it will be unpublished at that time. 
	                   If it is in the past the resource will not be published at all.
	      
        Format of dates: yyyy-MM-dd mm:hh:ss, where time is optional. Example: "2006-10-26 10:34:00". 
        If date properties are omitted todays date will be used, except for the valid date which will be left blank, i.e. it will never be unpublished.
        
        Users will be looked up by username (cn attribute). 
        Other attributes can be used if they are specified in the following way:
        mail=someuser@somecompany.com
        If omitted, the system user will be used
        
        Custom metadata values can be updated by matching the name of the metadata with the local XML name in the RDF, ignoring case. Schemas will be removed
        from the name in SiteVision before comparison. If, for example, the SiteVision metadata is named "DC.Description" it can be updated
        by adding the RDF predicate "dc:description", since the local name "description" of the RDF data matches the local name of the SiteVision 
        metadata ("Desciption"), ignoring case. Currently the following metadata types are supported:
        * Text
        * Multiple values. The content in RDF must be a ","-separated string of the values to be selected.
        * Text portlet. The content in RDF will be injected into the portlet tied to the metadata definition. The style of any current text will be reused.
        * Date. Format must be "yyyy-MM-dd HH:mm:ss" (date+time) or "yyyy-MM-dd" (date only).
	       -->
   <rss:item rdf:about="article1" dc:title="Some page" sv:template="Nyhetsmall" sv:force="false" sv:hidden="false" sv:indexable="true">
      <dc:created>2006-10-01</dc:created>
      <dc:creator>rickard</dc:creator>
      <dc:modified>2006-10-05</dc:modified>
      <dc:available>2006-10-10 15:30:00</dc:available>
      <dc:publisher>mail=rickard.oberg@senselogic.se</dc:publisher>
      <dc:valid>2008-12-10</dc:valid>

      <!-- 
      	Custom metadata 
      -->
      
      <!-- Text metadata -->
      <dc:description>This is a page</dc:description>
      
      <!-- Multi-value metadata -->
      <dc:subject>foo,bar</dc:subject>
      
      <!-- User metadata -->
      <sv:editor>calle</sv:editor>

			<!-- HTML content of page. -->
                        <!-- Portlets will be created in the content area specified by dc:title. If no dc:title is specified, portlets
                                         will be created in the first content area.
					 Currently text, image, and table portlets are supported. Image references will resolved against images on the page 
					 first, then images in the image repository on the site. Links will be resolved to real SiteVision pages if possible. 
			     Links using filenames of files on the page will be resolved properly.
			     -->
      <sv:content rdf:parseType="Resource">
         <dc:title>Center column</dc:title>
         <content:encoded>
            <![CDATA[
               <img alt="Logo" src="/Mallar/senselogic.png" />
               <p>What a <em>beautiful</em> <a href="/moduldemo.html">day</a>!</p> 
               <img src="logo.gif" />
             ]]>
         </content:encoded>
      </sv:content>

			<!-- Layouts will be generated for each div element with a layout attribute ("vertical" or "horizontal") in HTML content.
                             A layout can also be given a named site decoration or a style. If a div has both (decoration AND style), the style will be ignored.
			     -->
      <sv:content rdf:parseType="Resource">
         <dc:title>Right column</dc:title>
         <content:encoded>
            <![CDATA[
               <h2 title="Main header">Welcome</h2>
               <img alt="Flower" src="Vykort/blad.jpg" />
               <div layout="horizontal" decoration="Info box" name="Info">
                  <div><a name="A text" />
                    <p>What a <em>beautiful</em> <a href="/moduldemo.html">day</a>!</p>
                  </div>
                  <div><a name="A table />
                  <table summary="This is an example table">
                    <caption>A caption</caption>
                    <tr>
                      <th>A header</th><th>Another header</th>
                    </tr>
                    <tr>
                      <td>A cell</td><td style="text-align: right;">Another cell</td>
                    </tr>
                  </table>
                  </div>
                  <div layout="vertical" name="Image" style="margin: 10px; border: thin solid black">
                     <img src="testfil.jpg" />
                     <div>Test<p>Foo</p></div>
                  </div>
               </div>
             ]]>
         </content:encoded>
      </sv:content>



		  <!-- Specifies what files to create and store on the page -->
      <sv:files>
         <rdf:Seq>
            <rdf:li>
               <sv:file
                  rdf:about="http://www.skatteverket.se/download/18.dfe345a107ebcc9baf80008699/200215.pdf">
                  <dc:title>skv.pdf</dc:title>
               </sv:file>
            </rdf:li>
         </rdf:Seq>
      </sv:files>

		  <!-- Specifies what images to create and store on the page -->
      <sv:images>
         <rdf:Seq>
            <rdf:li>
               <sv:file rdf:about="http://www.senselogic.se/images/18.a48ac0e10ada49dcea80003483/LoggaSenselogic.gif">
                  <dc:title>logo.gif</dc:title>
               </sv:file>
            </rdf:li>
         </rdf:Seq>
      </sv:images>

   </rss:item>

   <!-- This will create the page "anotherpage1" under the existing page corresponding to the path "moduldemo.html" on the site with hostname "localhost" -->
   <rss:channel dc:identifier="http://localhost/moduldemo.html">
      <rss:items>
         <rdf:Seq>
            <rdf:li rdf:resource="anotherpage1"/>
         </rdf:Seq>
      </rss:items>
   </rss:channel>

   <rss:item rdf:about="anotherpage1" dc:title="Another page!" sv:template="Nyhetsmall" sv:hidden="false"
             sv:indexable="true">

      <content:encoded>
         <![CDATA[
         <h2>This is a header</h2>
         <p class="gronxfetxnormal">What a <em>beautiful</em> <a href="/moduldemo.html">day</a>!</p> 
         <img src="logo.gif" /> <br /> 
         Här kan du <a href="skv.pdf">ladda ner</a> en blankett.]]>
      </content:encoded>

      <sv:files>
         <rdf:Seq>
            <rdf:li>
               <sv:file
                  rdf:about="http://www.skatteverket.se/download/18.dfe345a107ebcc9baf80008699/200215.pdf">
                  <dc:title>skv.pdf</dc:title>
               </sv:file>
            </rdf:li>
         </rdf:Seq>
      </sv:files>

      <sv:images>
         <rdf:Seq>
            <rdf:li>
               <sv:file
                  rdf:about="http://www.senselogic.se/images/18.a48ac0e10ada49dcea80003483/LoggaSenselogic.gif">
                  <dc:title>logo.gif</dc:title>
               </sv:file>
            </rdf:li>
         </rdf:Seq>
      </sv:images>
   </rss:item>
</rdf:RDF>
