Author: reto
Date: Thu Sep  9 08:14:22 2010
New Revision: 995344

URL: http://svn.apache.org/viewvc?rev=995344&view=rev
Log:
CLEREZZA-271: added documentation of varaibles available in ssp

Modified:
    
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/resources/META-INF/documentation.nt

Modified: 
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/resources/META-INF/documentation.nt
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/resources/META-INF/documentation.nt?rev=995344&r1=995343&r2=995344&view=diff
==============================================================================
--- 
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/resources/META-INF/documentation.nt
 (original)
+++ 
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/resources/META-INF/documentation.nt
 Thu Sep  9 08:14:22 2010
@@ -1,80 +1,102 @@
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e22 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e22 <http://discobits.org/ontology#pos> 
"3" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e22 
<http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/3> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e21 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e21 <http://discobits.org/ontology#pos> 
"0" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e21 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/2-title> .
 <bundle:///intro-content-el/0> <http://discobits.org/ontology#infoBit> 
"ScalaServerPages allow using scala to render a response resource to a 
particular output 
format."^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 <bundle:///intro-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-content-el/1> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e20 .
-<bundle:///intro-content-el/1> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1f .
-<bundle:///intro-content-el/1> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
+<bundle:///intro-content-el/1-content-el/0> 
<http://discobits.org/ontology#infoBit> "<div 
xmlns=\"http://www.w3.org/1999/xhtml\";>The following shows a simple 
ScalaServerPage:</div>\n\t\t<div xmlns=\"http://www.w3.org/1999/xhtml\"; 
class=\"tx-blockcode\">\n//a ScalaServePage to render a 
http://clerezza.org/2009/05/usermanager#UserPermissionPage\ndef um(s: Any) = 
new UriRef(\"http://clerezza.org/2009/05/usermanager#\"+s)\ndef perm(s: Any) = 
new UriRef(\"http://clerezza.org/2008/10/permission#\"+s)\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Permissions for user 
{res/um(\"user\")/FOAF.name}&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for
 (permission &lt;- res/um(\"permission\")) yield\n\t\t&lt;div 
id=\"permission\"&gt;\n\t\t\t{permission/perm(\"javaPermissionEntry\")*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n\n&lt;/html&gt;\n\t\t</div>\n"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
+<bundle:///intro-content-el/1-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/1-content-el/1> 
<http://discobits.org/ontology#infoBit> "The following iterates over an 
rdf:List represented by the root-resource\n<div 
xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"tx-blockcode\">\n//a 
ScalaServePage to render a 
http://clerezza.org/2009/05/renderletmanager#RenderletManagerPage\ndef 
typerendering(s: Any) = new 
UriRef(\"http://clerezza.org/2009/04/typerendering#\"+s)\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Listing 
renderlets&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for (renderlet 
&lt;- res!!) yield\n\t\t&lt;div id=\"renderlet\"&gt;\n\t\t\ttype: 
{renderlet*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n&lt;/html&gt;\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
+<bundle:///intro-content-el/1-content-el/1> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/1-content-el/2> 
<http://discobits.org/ontology#infoBit> "You can sort rdf:List using the 
sort-method:\n<div xmlns=\"http://www.w3.org/1999/xhtml\"; 
class=\"tx-blockcode\">\n//sorting the URIs of a 
http://clerezza.org/2009/05/renderletmanager#RenderletManagerPage\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Listing 
renderlets&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for (renderlet 
&lt;- (res!!).sort((a,b) =&gt; ((a*) &lt; (b*)))) yield\n\t\t&lt;div 
id=\"renderlet\"&gt;\n\t\t\ttype: 
{renderlet*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n&lt;/html&gt;\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
+<bundle:///intro-content-el/1-content-el/2> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/1-content-el/3> 
<http://discobits.org/ontology#infoBit> "same for properties:\n<div 
xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"tx-blockcode\">\n//a 
ScalaServePage to render a 
http://clerezza.org/2009/05/usermanager#UserPermissionPage\n//sorting by 
java-permission-entry\ndef um(s: Any) = new 
UriRef(\"http://clerezza.org/2009/05/usermanager#\"+s)\ndef perm(s: Any) = new 
UriRef(\"http://clerezza.org/2008/10/permission#\"+s)\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Permissions for user 
{res/um(\"user\")/FOAF.name}&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for
 (permission &lt;- (res/um(\"permission\"))\n\t    .sort((a,b) =&gt; 
(a/perm(\"javaPermissionEntry\")*) &lt; \n                    
(b/perm(\"javaPermissionEntry\")*))) yield\n\t\t&lt;div 
id=\"permission\"&gt;\n\t\t\t{permission/perm(\"javaPermissionEntry\")*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n\n&lt;/htm
 l&gt;\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+<bundle:///intro-content-el/1-content-el/3> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> _:129fb784c423ca7f0c1b9def28c897eb1 . 
+<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> _:68a3999bf058a7a2c6fc2d86e51f819a1 . 
+<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> _:903c7fa41d94442532f4baaf0d720dfd1 . 
+<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> _:cb3105a99e2e19947a9a435631367cd91 . 
+<bundle:///intro-content-el/1-content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
 <bundle:///intro-content-el/1-title> <http://discobits.org/ontology#infoBit> 
"Example"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 <bundle:///intro-content-el/1-title> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-content-el/2> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1e .
-<bundle:///intro-content-el/2> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e21 .
-<bundle:///intro-content-el/2> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1d <http://discobits.org/ontology#pos> 
"1" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1d 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1d 
<http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/1> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1c 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/2> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1c <http://discobits.org/ontology#pos> 
"2" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1c 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
+<bundle:///intro-content-el/1> <http://discobits.org/ontology#contains> 
_:60cf16b8b54e97bed8ab5b1d7ed8191c1 . 
+<bundle:///intro-content-el/1> <http://discobits.org/ontology#contains> 
_:9a5e36b58506e19b0960c4343250d8481 . 
+<bundle:///intro-content-el/1> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
 <bundle:///intro-content-el/2-content-el/0> 
<http://discobits.org/ontology#infoBit> "A ScalaServerPages is transformed into 
a Scala Source file and\tcompiled. The content of the ScalaServerPage becomes 
the content of\ta method returning AnyRef, the returned Object will be 
transformed\tto a String and the to a byte-array to be written to the response 
stream"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 <bundle:///intro-content-el/2-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-title> <http://discobits.org/ontology#infoBit> 
"ScalaServerPages"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1f 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/1-title> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1f <http://discobits.org/ontology#pos> 
"0" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1f 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-<bundle:///intro-content-el/2-title> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/2-content> 
<http://discobits.org/ontology#contains> _:78867567097445e338b675c0b1ed3d6f1 . 
+<bundle:///intro-content-el/2-content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
 <bundle:///intro-content-el/2-title> <http://discobits.org/ontology#infoBit> 
"How does it work"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1b <http://discobits.org/ontology#pos> 
"2" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1b 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1b 
<http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/2> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1a 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1a <http://discobits.org/ontology#pos> 
"0" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1a 
<http://discobits.org/ontology#holds> <bundle:///intro-title> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e19 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e19 <http://discobits.org/ontology#pos> 
"1" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e19 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/1> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e18 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e18 <http://discobits.org/ontology#pos> 
"0" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e18 
<http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/2-content-el/0> .
-<bundle:///intro> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e17 .
-<bundle:///intro> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1a .
-<bundle:///intro> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e17 
<http://discobits.org/ontology#holds> <bundle:///intro-content> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e17 <http://discobits.org/ontology#pos> 
"1" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e17 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e16 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/0> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e16 <http://discobits.org/ontology#pos> 
"0" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e16 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e22 .
-<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1b .
-<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1d .
-<bundle:///intro-content-el/1-content> 
<http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e15 .
-<bundle:///intro-content-el/1-content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e15 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e15 <http://discobits.org/ontology#pos> 
"0" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e15 
<http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/0> .
-<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1c .
-<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e19 .
-<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e16 .
+<bundle:///intro-content-el/2-title> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/2> <http://discobits.org/ontology#contains> 
_:4323ccab3a7cc9e8efac0bc9acb7a9631 . 
+<bundle:///intro-content-el/2> <http://discobits.org/ontology#contains> 
_:da99b6d94dde0b8db6059543b5fb4c2e1 . 
+<bundle:///intro-content-el/2> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
+<bundle:///intro-content-el/3-content-el/0> 
<http://discobits.org/ontology#infoBit> "<ul 
xmlns=\"http://www.w3.org/1999/xhtml\";>\n<li>renderer: CallbackRenderer, used 
to delegate to another Renderlet usally not used directly but wia the render 
method</li>\n<li>res: GraphNode, the main response resource, as a GraphNode it 
is dynamically converted to a RichGraphNode allowing the functions provided by 
org.apache.clerezza.utils.scala</li>\n<li>val context:GraphNode, a GraphNode 
with contextual information not specifically related to the current request, 
such as description on the current user </li>\n<li>val mode: String, the 
rendering mode</li>\n<li>val uriInfo: UriInfo, the UriRinf of the request, 
allows access to the request URI and query parameters</li>\n<li>val 
sharedRenderingValues: java.util.Map[String, Object], a map used to share 
values across the different renderlets and ScalaServerPages involved in the 
creation of a representation, typically used to prevent repeated co
 mputation of the same values. Typically this map is not accessed directly, 
instead values are retrived with $(\"key\") and set with $(\"key\") = 
newvalue</li>\n</ul>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+<bundle:///intro-content-el/3-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/3-content> 
<http://discobits.org/ontology#contains> _:75b294dd54ea98cdc6fb8e4cb77fee9f1 . 
+<bundle:///intro-content-el/3-content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
+<bundle:///intro-content-el/3-title> <http://discobits.org/ontology#infoBit> 
"Avialable values"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+<bundle:///intro-content-el/3-title> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro-content-el/3> <http://discobits.org/ontology#contains> 
_:2e66c32e7854b9cfef1899c050ae7c611 . 
+<bundle:///intro-content-el/3> <http://discobits.org/ontology#contains> 
_:4ea61d47416e6f9e6c7554e011ac53771 . 
+<bundle:///intro-content-el/3> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
+<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:86e4309edd82a6d415338546caff2d551 . 
+<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:8ced329518dac9ef741f4099548bb8451 . 
+<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:eba3324dc38691c635a96c36102e4efb1 . 
+<bundle:///intro-content> <http://discobits.org/ontology#contains> 
_:f6310d5833dd1d3ee8d9789c067ec4ca1 . 
 <bundle:///intro-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
-<bundle:///intro-content-el/2-content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
-<bundle:///intro-content-el/2-content> 
<http://discobits.org/ontology#contains> 
_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e18 .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1e 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1e <http://discobits.org/ontology#pos> 
"1" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e1e 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/2-content> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e20 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e20 <http://discobits.org/ontology#pos> 
"1" .
-_:AX2dX39e2873X3aX12428f54125X3aXX2dX7e20 
<http://discobits.org/ontology#holds> <bundle:///intro-content-el/1-content> .
-<bundle:///intro-content-el/1-content-el/3> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-content-el/1-content-el/3> 
<http://discobits.org/ontology#infoBit> "same for properties:\n<div 
xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"tx-blockcode\">\n//a 
ScalaServePage to render a 
http://clerezza.org/2009/05/usermanager#UserPermissionPage\n//sorting by 
java-permission-entry\ndef um(s: Any) = new 
UriRef(\"http://clerezza.org/2009/05/usermanager#\"+s)\ndef perm(s: Any) = new 
UriRef(\"http://clerezza.org/2008/10/permission#\"+s)\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Permissions for user 
{res/um(\"user\")/FOAF.name}&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for
 (permission &lt;- (res/um(\"permission\"))\n\t    .sort((a,b) =&gt; 
(a/perm(\"javaPermissionEntry\")*) &lt; \n                    
(b/perm(\"javaPermissionEntry\")*))) yield\n\t\t&lt;div 
id=\"permission\"&gt;\n\t\t\t{permission/perm(\"javaPermissionEntry\")*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n\n&lt;/htm
 l&gt;\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-<bundle:///intro-content-el/1-content-el/0> 
<http://discobits.org/ontology#infoBit> "<div 
xmlns=\"http://www.w3.org/1999/xhtml\";>The following shows a simple 
ScalaServerPage:</div>\n\t\t<div xmlns=\"http://www.w3.org/1999/xhtml\"; 
class=\"tx-blockcode\">\n//a ScalaServePage to render a 
http://clerezza.org/2009/05/usermanager#UserPermissionPage\ndef um(s: Any) = 
new UriRef(\"http://clerezza.org/2009/05/usermanager#\"+s)\ndef perm(s: Any) = 
new UriRef(\"http://clerezza.org/2008/10/permission#\"+s)\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Permissions for user 
{res/um(\"user\")/FOAF.name}&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for
 (permission &lt;- res/um(\"permission\")) yield\n\t\t&lt;div 
id=\"permission\"&gt;\n\t\t\t{permission/perm(\"javaPermissionEntry\")*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n\n&lt;/html&gt;\n\t\t</div>\n"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
-<bundle:///intro-content-el/1-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-content-el/1-content-el/1> 
<http://discobits.org/ontology#infoBit> "The following iterates over an 
rdf:List represented by the root-resource\n<div 
xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"tx-blockcode\">\n//a 
ScalaServePage to render a 
http://clerezza.org/2009/05/renderletmanager#RenderletManagerPage\ndef 
typerendering(s: Any) = new 
UriRef(\"http://clerezza.org/2009/04/typerendering#\"+s)\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Listing 
renderlets&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for (renderlet 
&lt;- res!!) yield\n\t\t&lt;div id=\"renderlet\"&gt;\n\t\t\ttype: 
{renderlet*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n&lt;/html&gt;\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
-<bundle:///intro-content-el/1-content-el/1> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-content-el/1-content-el/2> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///intro-content-el/1-content-el/2> 
<http://discobits.org/ontology#infoBit> "You can sort rdf:List using the 
sort-method:\n<div xmlns=\"http://www.w3.org/1999/xhtml\"; 
class=\"tx-blockcode\">\n//sorting the URIs of a 
http://clerezza.org/2009/05/renderletmanager#RenderletManagerPage\n&lt;html 
xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" 
lang=\"en\"&gt;\n\t&lt;head&gt;\n    \t&lt;title&gt;Listing 
renderlets&lt;/title&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t{for (renderlet 
&lt;- (res!!).sort((a,b) =&gt; ((a*) &lt; (b*)))) yield\n\t\t&lt;div 
id=\"renderlet\"&gt;\n\t\t\ttype: 
{renderlet*}\n\t\t&lt;/div&gt;\n\t}\n\t&lt;/body&gt;\n&lt;/html&gt;\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
+<bundle:///intro-title> <http://discobits.org/ontology#infoBit> 
"ScalaServerPages"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+<bundle:///intro-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///intro> <http://discobits.org/ontology#contains> 
_:cc06f094ff0d735a332291b856b0d4ae1 . 
+<bundle:///intro> <http://discobits.org/ontology#contains> 
_:ccd6d577f99d82c53d5323fdbe4b6ba31 . 
+<bundle:///intro> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
+_:129fb784c423ca7f0c1b9def28c897eb1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/3> . 
+_:129fb784c423ca7f0c1b9def28c897eb1 <http://discobits.org/ontology#pos> "3" . 
+_:129fb784c423ca7f0c1b9def28c897eb1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:2e66c32e7854b9cfef1899c050ae7c611 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/3-title> . 
+_:2e66c32e7854b9cfef1899c050ae7c611 <http://discobits.org/ontology#pos> "0" . 
+_:2e66c32e7854b9cfef1899c050ae7c611 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:4323ccab3a7cc9e8efac0bc9acb7a9631 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/2-title> . 
+_:4323ccab3a7cc9e8efac0bc9acb7a9631 <http://discobits.org/ontology#pos> "0" . 
+_:4323ccab3a7cc9e8efac0bc9acb7a9631 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:4ea61d47416e6f9e6c7554e011ac53771 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/3-content> . 
+_:4ea61d47416e6f9e6c7554e011ac53771 <http://discobits.org/ontology#pos> "1" . 
+_:4ea61d47416e6f9e6c7554e011ac53771 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:60cf16b8b54e97bed8ab5b1d7ed8191c1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content> . 
+_:60cf16b8b54e97bed8ab5b1d7ed8191c1 <http://discobits.org/ontology#pos> "1" . 
+_:60cf16b8b54e97bed8ab5b1d7ed8191c1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:68a3999bf058a7a2c6fc2d86e51f819a1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/2> . 
+_:68a3999bf058a7a2c6fc2d86e51f819a1 <http://discobits.org/ontology#pos> "2" . 
+_:68a3999bf058a7a2c6fc2d86e51f819a1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:75b294dd54ea98cdc6fb8e4cb77fee9f1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/3-content-el/0> . 
+_:75b294dd54ea98cdc6fb8e4cb77fee9f1 <http://discobits.org/ontology#pos> "0" . 
+_:75b294dd54ea98cdc6fb8e4cb77fee9f1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:78867567097445e338b675c0b1ed3d6f1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/2-content-el/0> . 
+_:78867567097445e338b675c0b1ed3d6f1 <http://discobits.org/ontology#pos> "0" . 
+_:78867567097445e338b675c0b1ed3d6f1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:86e4309edd82a6d415338546caff2d551 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1> . 
+_:86e4309edd82a6d415338546caff2d551 <http://discobits.org/ontology#pos> "1" . 
+_:86e4309edd82a6d415338546caff2d551 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:8ced329518dac9ef741f4099548bb8451 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/0> . 
+_:8ced329518dac9ef741f4099548bb8451 <http://discobits.org/ontology#pos> "0" . 
+_:8ced329518dac9ef741f4099548bb8451 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:903c7fa41d94442532f4baaf0d720dfd1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/0> . 
+_:903c7fa41d94442532f4baaf0d720dfd1 <http://discobits.org/ontology#pos> "0" . 
+_:903c7fa41d94442532f4baaf0d720dfd1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:9a5e36b58506e19b0960c4343250d8481 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-title> . 
+_:9a5e36b58506e19b0960c4343250d8481 <http://discobits.org/ontology#pos> "0" . 
+_:9a5e36b58506e19b0960c4343250d8481 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:cb3105a99e2e19947a9a435631367cd91 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/1-content-el/1> . 
+_:cb3105a99e2e19947a9a435631367cd91 <http://discobits.org/ontology#pos> "1" . 
+_:cb3105a99e2e19947a9a435631367cd91 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:cc06f094ff0d735a332291b856b0d4ae1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content> . 
+_:cc06f094ff0d735a332291b856b0d4ae1 <http://discobits.org/ontology#pos> "1" . 
+_:cc06f094ff0d735a332291b856b0d4ae1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:ccd6d577f99d82c53d5323fdbe4b6ba31 <http://discobits.org/ontology#holds> 
<bundle:///intro-title> . 
+_:ccd6d577f99d82c53d5323fdbe4b6ba31 <http://discobits.org/ontology#pos> "0" . 
+_:ccd6d577f99d82c53d5323fdbe4b6ba31 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:da99b6d94dde0b8db6059543b5fb4c2e1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/2-content> . 
+_:da99b6d94dde0b8db6059543b5fb4c2e1 <http://discobits.org/ontology#pos> "1" . 
+_:da99b6d94dde0b8db6059543b5fb4c2e1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:eba3324dc38691c635a96c36102e4efb1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/2> . 
+_:eba3324dc38691c635a96c36102e4efb1 <http://discobits.org/ontology#pos> "2" . 
+_:eba3324dc38691c635a96c36102e4efb1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
+_:f6310d5833dd1d3ee8d9789c067ec4ca1 <http://discobits.org/ontology#holds> 
<bundle:///intro-content-el/3> . 
+_:f6310d5833dd1d3ee8d9789c067ec4ca1 <http://discobits.org/ontology#pos> "3" . 
+_:f6310d5833dd1d3ee8d9789c067ec4ca1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 


Reply via email to