forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r600409 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap: doap.xml resources/stylesheets/doap-to-document.xsl resources/stylesheets/rdf-to-rdfCInclude.xsl src/documentation/content/xdocs/index.xml status.xml
Date Sun, 02 Dec 2007 23:20:52 GMT
Author: rgardler
Date: Sun Dec  2 15:20:50 2007
New Revision: 600409

URL: http://svn.apache.org/viewvc?rev=600409&view=rev
Log:
Add relatedTo feature that allows relationships between projects to be recorded in DOAP files.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml?rev=600409&r1=600408&r2=600409&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml Sun Dec
 2 15:20:50 2007
@@ -16,7 +16,13 @@
   limitations under the License.
 -->
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:admin="http://webns.net/mvcb/"
xml:lang="en">
+         xmlns:dc="http://purl.org/dc/elements/1.1/" 
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+         xmlns:doap="http://usefulinc.com/ns/doap#" 
+         xmlns:foaf="http://xmlns.com/foaf/0.1/" 
+         xmlns:admin="http://webns.net/mvcb/"
+         xmlns:asfext="http://projects.apache.org/ns/asfext#" 
+         xml:lang="en">
   <doap:Project>
     <doap:name>org.apache.forrest.plugin.input.doap</doap:name>
     <doap:shortname>DOAP</doap:shortname>
@@ -47,5 +53,9 @@
     </doap:repository>
     <foaf:seeAlso rdf:resource="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.doap/changes.rss"
dc:format="application/rss+xml" dc:title="DOAP Plugin Recent Changes"/>
     <foaf:seeAlso rdf:resource="http://forrest.apache.org/changes.rss" dc:format="application/rss+xml"
dc:title="Forrest Recent Changes"/>
+    
+    <asfext:relatedTo>
+      <doap:Project rdf:resource="http://forrest.apache.org/doap.xml"/>
+    </asfext:relatedTo>
   </doap:Project>
 </rdf:RDF>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl?rev=600409&r1=600408&r2=600409&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
Sun Dec  2 15:20:50 2007
@@ -115,6 +115,7 @@
           </xsl:otherwise>
         </xsl:choose>
       </section>
+      <xsl:call-template name="project-relatedTo"/>
       <xsl:call-template name="project-releases" />
       
       <xsl:if test="foaf:seeAlso[@dc:format='application/rss+xml' or @dc:format='application/atom+xml']">
@@ -415,6 +416,30 @@
         <xsl:value-of  select="doap:created" />
       </td>
     </tr>
+  </xsl:template>
+  <xsl:template name="project-relatedTo">
+    <xsl:if test="asfext:relatedTo">
+	    <section>
+	      <title>Related To</title>
+	      <ul>
+	        <xsl:for-each select="asfext:relatedTo/doap:Project/doap:name|asfext:relatedTo/doap:Project/atom:feed/atom:entry/atom:content/doap:Project">
+	          <li>
+	            <xsl:choose>
+	              <xsl:when test="doap:homepage">
+	                <a>
+	                  <xsl:attribute name="href"><xsl:value-of select="doap:homepage/@rdf:resource"/></xsl:attribute>
+	                  <xsl:value-of select="doap:name"/>
+	                </a>
+	              </xsl:when>
+	              <xsl:otherwise>
+	                <xsl:value-of select="doap:name"/>
+	              </xsl:otherwise>
+	            </xsl:choose>
+	          </li>
+	        </xsl:for-each>
+	      </ul>
+	    </section>
+    </xsl:if>
   </xsl:template>
   <xsl:template name="project-releases">
     <section>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl?rev=600409&r1=600408&r2=600409&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
Sun Dec  2 15:20:50 2007
@@ -41,6 +41,12 @@
       </cinclude:cached-include>
   </xsl:template>
   
+  <xsl:template match="doap:Project/@rdf:resource">
+      <cinclude:cached-include>
+        <xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute>
+      </cinclude:cached-include>
+  </xsl:template>
+  
   <xsl:template match="@*|*|text()|processing-instruction()|comment()">
     <xsl:copy>
       <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml?rev=600409&r1=600408&r2=600409&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml
Sun Dec  2 15:20:50 2007
@@ -67,7 +67,7 @@
       <section>
         <title>Multiple Projects</title>
         <p>
-          You can use the projectInfo plugin to pull together project
+          You can use the doap plugin to pull together project
           information for multiple projects. For example, take a look at the
           project details for <a href="projectDetails/forrest.html">Apache
           Forrest</a>.
@@ -205,6 +205,11 @@
       
           <ul>
             <li><a href="exhibitTest.html">Browse the catalogue using Exhibit
from MIT</a></li>
+            <li>Record relationships between projects. This is a simple relatedTo property
+            and is not intended to replace detailed build information. 
+            <warning>This feature currently uses a "relatedTo" proeprty that has been
+            placed in the asfext namespace. Hwoever, at the time of writing this addition
+            to the asfext namespace has not been approved.</warning></li>
           </ul>
       </section>
       

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml?rev=600409&r1=600408&r2=600409&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml Sun Dec
 2 15:20:50 2007
@@ -35,6 +35,10 @@
   <changes>
 <!-- Add new releases here -->
     <release version="0.1" date="not-released">
+      <action dev="RDG" type="add" context="code" importance="high">
+        Added relatedTo property to asfExt namespace. This allows us to record a
+        relationship between two projects.
+      </action>
       <action dev="RDG" type="add" context="code" importance="low">
         Support for Exhibit 2.0 
       </action>



Mime
View raw message