You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Oshani Seneviratne <os...@gmail.com> on 2007/08/13 07:46:57 UTC
Re: svn commit: r565204 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf: ./ resources/stylesheets/ src/documentation/content/xdocs/
Hi,
There are 2 other files: "resources/stylesheets/foaf-to-index.xsl" and
"src/documentation/content/xdocs/samples/foafIndex.xml" in the patch I
submitted for FOR-1020 [1].
[1] https://issues.apache.org/jira/secure/attachment/12363666/FOR-1020_12082007.patch
Those files need to be added to the svn in addition to the following
updates, as they are required to get the plugin working as expected.
Please advice if I need to do any changes here or if you need a new patch.
Thanks,
Oshani
On 8/13/07, gmcdonald@apache.org <gm...@apache.org> wrote:
> Author: gmcdonald
> Date: Sun Aug 12 16:33:43 2007
> New Revision: 565204
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=565204
> Log:
> Index multiple foaf files from various sources, provide an example - Due to Oshani - FOR-1020
>
> Modified:
> forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap
> forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/locationmap.xml
> forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
> forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml
> forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/site.xml
> forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml
>
> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap
> URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap?view=diff&rev=565204&r1=565203&r2=565204
> ==============================================================================
> --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap (original)
> +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap Sun Aug 12 16:33:43 2007
> @@ -18,7 +18,7 @@
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> <map:components>
> <map:generators>
> - <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator"/>
> + <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator"/>
> </map:generators>
> <map:transformers default="xslt">
> <map:transformer name="cinclude" src="org.apache.cocoon.transformation.CIncludeTransformer"/>
> @@ -31,6 +31,14 @@
> <cache-at-startup>true</cache-at-startup>
> </map:transformer>
> </map:transformers>
> + <map:actions>
> + <map:action logger="sitemap.action.sourcetype" name="sourcetype"
> + src="org.apache.forrest.sourcetype.SourceTypeAction">
> + <sourcetype name="foaf">
> + <document-element namespace="http://xmlns.com/foaf/0.1/"/>
> + </sourcetype>
> + </map:action>
> + </map:actions>
> <map:pipes>
> <map:pipe name="navigation"
> src="org.apache.cocoon.components.pipeline.impl.ExpiresCachingProcessingPipeline">
> @@ -51,7 +59,7 @@
> <map:serialize type="xml"/>
> </map:match>
> <!-- ================================================================ -->
> -<!-- indexes -->
> +<!-- indexes -->
> <!-- ================================================================ -->
> <map:match pattern="personDetails/source.xml">
> <map:generate type="file" src="{lm:foaf.descriptor}" />
> @@ -62,30 +70,29 @@
> <map:transform src="{lm:foaf.transform.foaf.document}"/>
> <map:serialize type="xml-document"/>
> </map:match>
> - <map:match pattern="people/person-*/source.xml">
> + <map:match pattern="people/person-**/source.xml">
> <map:generate type="file" src="{lm:foaf.descriptor.{1}}" />
> <map:serialize type="xml"/>
> </map:match>
> - <map:match pattern="people/person-*.xml">
> + <map:match pattern="people/person-**.xml">
> <map:generate src="cocoon:/people/person-{1}/source.xml" />
> <map:transform src="{lm:foaf.transform.foaf.document}"/>
> <map:serialize type="xml-document"/>
> </map:match>
> <map:match pattern="people/index/source.xml">
> - <map:generate type="file" src="{lm:multiple.foaf.descriptors}" />
> + <map:generate type="file" src="{lm:foaf.index}" />
> <map:serialize type="xml"/>
> </map:match>
> <map:match pattern="people/index.xml">
> <map:generate type="file" src="cocoon:/people/index/source.xml" />
> - <map:transform src="{lm:foaf.transform.foafs.index}"/>
> + <map:transform src="{lm:foaf.transform.foaf.index}"/>
> <map:serialize type="xml-document"/>
> </map:match>
> <map:match pattern="personDetails/**.xml">
> <map:generate src="cocoon:/personDetails/{1}.source.xml" />
> <map:transform src="{lm:foaf.transform.foaf.document}"/>
> - <map:serialize type="xml-document"/>
> -
> + <map:serialize type="xml-document"/>
> </map:match>
> - </map:pipeline>
> + </map:pipeline>
> </map:pipelines>
> </map:sitemap>
>
> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/locationmap.xml
> URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/locationmap.xml?view=diff&rev=565204&r1=565203&r2=565204
> ==============================================================================
> --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/locationmap.xml (original)
> +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/locationmap.xml Sun Aug 12 16:33:43 2007
> @@ -29,14 +29,15 @@
> </components>
> <locator>
> <match pattern="foaf.descriptor">
> - <location src="foaf.rdf" />
> + <location src="foaf.xml" />
> </match>
> - <match pattern="multiple.foaf.descriptors">
> - <location src="files.xml" />
> + <match pattern="foaf.index">
> + <location src="{properties:content.xdocs}samples/foafIndex.xml" />
> </match>
> - <match pattern="foaf.descriptor.*">
> - <location src="foaf-{1}.rdf" />
> + <match pattern="foaf.descriptor.**">
> + <location src="http://{1}" />
> </match>
> +
> <match pattern="foaf.transform.*.*">
> <location src="resources/stylesheets/{1}-to-{2}.xsl"/>
> </match>
>
> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
> URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl?view=diff&rev=565204&r1=565203&r2=565204
> ==============================================================================
> --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl (original)
> +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl Sun Aug 12 16:33:43 2007
> @@ -63,7 +63,7 @@
> </xsl:choose></td></tr>
> <xsl:choose>
> <xsl:when test="./@rdf:ID">
> - <tr><td>Id</td><td><a href="{./@rdf:ID}"><xsl:value-of select="./@rdf:ID"/></a></td></tr>
> + <tr><td>Id</td><td><xsl:value-of select="./@rdf:ID"/></td></tr>
> </xsl:when>
> </xsl:choose>
> <xsl:choose>
>
> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml
> URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml?view=diff&rev=565204&r1=565203&r2=565204
> ==============================================================================
> --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml (original)
> +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml Sun Aug 12 16:33:43 2007
> @@ -23,18 +23,18 @@
> <body>
> <section id="overview">
> <title>Apache Forrest - FOAF Plugin</title>
> - <p>Renders a FOAF document into human readable form.</p>
> + <p>Renders a and aggregates <a href="http://xmlns.com/foaf/spec/">FOAF</a> documents into human readable form.</p>
> </section>
> <section id="samples">
> <title>Samples</title>
> - <note>This plugin is in an early development stage.</note>
> - <p>This section includes links to a number of samples using this plugin.
> + <p>This section includes links to a number of samples using this plugin.
> The plugin is intended to be self documenting through these samples.
> If you require further help please ask on the user mailing list.
> </p>
> <section id="sample-1">
> <title>Sample FOAF data</title>
> - <p>Details of the default FOAF file for the web site.</p>
> + <p>Details of the default FOAF file for this website is currently
> + supported in the following formats.</p>
> <ul>
> <li><a href="personDetails.html">HTML</a></li>
> <li><a href="personDetails.pdf">PDF</a></li>
> @@ -42,6 +42,28 @@
> <li><a href="personDetails.xml">XDoC</a></li>
> </ul>
> </section>
> + <section id="sample-2">
> + <title>FOAF index</title>
> + <p>This plugin can also be used to aggregate FOAF documents from various sources.
> + To index and view FOAF documents using this plugin, add the URIs of the FOAF documents in <code>samples/foafIndex.xml</code>.
> + Since the FOAF data can be obtained from anywhere you want, the FOAF data is assured to be kept up to date.
> + </p>
> +
> + <p>Add an "id" for the person and the locaction of that person's FOAF file as shown below. The "id" will be used in indexing the FOAF data.</p>
> + <p>Example:</p>
> + <source>
> + <![CDATA[
> + <people>
> + <person id="johnDoe" location="http://example.com/john/foaf.rdf" />
> + <person id="janeDoe" location="http://example.com/jane/foaf.rdf" />
> + </people>
> + ]]>
> + </source>
> +
> +
> + <p>A working example for FOAF files indexing to explore the FOAF data
> + can be found <a href="people/index.html">here</a>.</p>
> + </section>
> </section>
> </body>
> </document>
>
> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/site.xml
> URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/site.xml?view=diff&rev=565204&r1=565203&r2=565204
> ==============================================================================
> --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/site.xml (original)
> +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/site.xml Sun Aug 12 16:33:43 2007
> @@ -38,6 +38,7 @@
> </about>
> <samples label="Samples">
> <sample-1 label="Sample FOAF data" href="personDetails.html" description="Displays the FOAF data" />
> + <sample-2 label="Index of FOAF files" href="people/index.html" description="Aggregate FOAF files for viewing" />
> </samples>
> <!--
> The href must be wholesite.html/pdf You can change the labels and node names
>
> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml
> URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml?view=diff&rev=565204&r1=565203&r2=565204
> ==============================================================================
> --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml (original)
> +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml Sun Aug 12 16:33:43 2007
> @@ -38,15 +38,19 @@
> <action dev="OS" type="add" context="admin">
> Initial plugin code.
> </action>
> - <action dev="OS" type="add" context="docs">
> + <action dev="OS" type="add" context="code">
> Include a sample FOAF file and demonstrate functionality.
> </action>
> + <action dev="OS" type="add" context="code">
> + Index multiple FOAF files from various sources and view them.
> + </action>
> +
> </release>
> </changes>
> <todo>
> <actions priority="high">
> - <action context="docs" dev="open">
> - Index multiple FOAF files from various sources.
> + <action priority="high" context="code" fixes-bug="FOR-1005">
> + Improve the input.xmap to use the sourcetypeaction for handling requests to process input formats.
> </action>
> <action context="docs" dev="open">
> Create the documentation with lots of examples and samples.
>
>
>
RE: svn commit: r565204 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf: ./ resources/stylesheets/ src/documentation/content/xdocs/
Posted by "Gav...." <br...@brightontown.com.au>.
> -----Original Message-----
> From: Brian M Dube [mailto:bdube@apache.org]
> Sent: Monday, 13 August 2007 2:35 PM
> To: dev@forrest.apache.org
> Subject: Re: svn commit: r565204 - in
> /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf: ./
> resources/stylesheets/ src/documentation/content/xdocs/
>
> Oshani Seneviratne wrote:
> > Hi,
> >
> > There are 2 other files: "resources/stylesheets/foaf-to-index.xsl" and
> > "src/documentation/content/xdocs/samples/foafIndex.xml" in the patch I
> > submitted for FOR-1020 [1].
> >
> > [1] https://issues.apache.org/jira/secure/attachment/12363666/FOR-
> 1020_12082007.patch
> >
> > Those files need to be added to the svn in addition to the following
> > updates, as they are required to get the plugin working as expected.
> >
> > Please advice if I need to do any changes here or if you need a new
> patch.
>
> These have now been added. Thanks.
>
> Brian
Thanks for applying Brian, don't know how I missed that.
I applied that patch, tested, did svn diff, svn ci but missed
that I had to do svn add on two of the files. Cheers
Gav...
Re: svn commit: r565204 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf:
./ resources/stylesheets/ src/documentation/content/xdocs/
Posted by Brian M Dube <bd...@apache.org>.
Oshani Seneviratne wrote:
> Hi,
>
> There are 2 other files: "resources/stylesheets/foaf-to-index.xsl" and
> "src/documentation/content/xdocs/samples/foafIndex.xml" in the patch I
> submitted for FOR-1020 [1].
>
> [1] https://issues.apache.org/jira/secure/attachment/12363666/FOR-1020_12082007.patch
>
> Those files need to be added to the svn in addition to the following
> updates, as they are required to get the plugin working as expected.
>
> Please advice if I need to do any changes here or if you need a new patch.
These have now been added. Thanks.
Brian