Getting Started ( Page )
Installation
easy_install -U redfoot==2.7.0
Verify that the redfoot command line program got installed:
$ redfoot loader --version 2.7.0
If the redfoot command is not found then look at the easy install output to see where it installed redfoot and make sure that location is on your path.
Running
$ redfoot
[INFO redfoot] version: 2.7.0
[INFO redfootlib.BootLoader] No program found in BOOT.Globals
[INFO redfootlib.BootLoader] loading: http://redfoot.net/3.0/boot#
[INFO redfootlib.BootLoader] Found program: http://svn.redfoot.net/trunk/boot#loader
[INFO redfoot] running: http://svn.redfoot.net/trunk/boot#loader
[INFO redfootlib.BootLoader] execute: Redfoot Loader
[INFO redfootlib.BootLoader] execute: Redfoot Kernel
[INFO hypercode.Redfoot Kernel] mapping http://xmlns.com/foaf/0.1/ -> http://xmlns.com/foaf/0.1/index.rdf
[INFO hypercode.Redfoot Kernel] mapping http://redfoot.net/3.0 -> http://svn.redfoot.net/trunk
[INFO hypercode.Redfoot Kernel] TODO: replace onLoadRank with info about which depend on which. a depends on b, etc.
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/kernel
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/kernel
[INFO hypercode.Redfoot Kernel] loading: http://www.w3.org/1999/02/22-rdf-syntax-ns
[INFO hypercode.Redfoot Kernel] loading: http://www.w3.org/2000/01/rdf-schema
[INFO hypercode.Redfoot Kernel] loading: http://www.w3.org/2002/07/owl
[INFO hypercode.Redfoot Kernel] loading: http://purl.org/dc/elements/1.1/
[INFO hypercode.Redfoot Kernel] loading: http://purl.org/dc/terms/
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/rdf
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/rdf
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/server
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/server
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/code
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/code
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/command
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/command
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/template
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/template
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/kid
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/kid
[INFO hypercode.Redfoot Kernel] loading: http://redfoot.net/3.0/boot
[INFO hypercode.Redfoot Kernel] from: http://svn.redfoot.net/trunk/boot
[INFO Redfoot Loader] running: Command Runner
available commands:
auto_reload, backup, contexts, copy, import, load, print, reload, remove, remove_context, rename, restore, run, run_tests, save, save_all, serialize, server, set_base, static_export, static_import, svn_auth, test_module, touch, update, update_text_index, user_add
$
TODO: ...
The following is for an older version of redfoot
Installation
Follow the instructions found at: redfoot-2.1.0
Running hypercode's version of Hello World.
redfoot --program=http://redfoot.net/hypercode/programs/helloworld#program
If no program is specified redfoot runs the http://redfoot.net/2005/redfoot#program from the http://redfoot.net/2005/redfoot#Defaults resource. The development version of the default program is http://redfoot.net/hypercode/kernel# -- the redfoot kernel.
You should now be able to run redfoot from the command line. See Using the Command Line Interface for command line usage help or run redfoot --help.
Commands
The default program redfoot runs is the Redfoot Kernel. The Redfoot Kernel also runs a program and by default runs Command Runner. There are a number of commands that currently come by default with the Command Runner of which we'll take a look at a few now:
redfoot load
INFO redfoot version: 2.0.0 INFO rdflib version: 2.2.2 INFO running: Redfoot Kernel ( http://redfoot.net/2005/09/13/hypercode/kernel# ) INFO running: Command Runner ( http://redfoot.net/2005/09/13/hypercode/programs/command_runner# ) usage: ./redfoot.py load <uri> [<publicID>] [<context_id>]
TODO: we need a help command or some such for getting help about a command
redfoot server [port (defaults to 80)]
redfoot remove_context <uriref>
Example: Site
We can run an example site with the following two commands:
redfoot load http://redfoot.net/hypercode/examples/site http://localhost:8080 redfoot server 8080
annotate example
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'
xmlns:redfoot='http://redfoot.net/2005/redfoot#'
xmlns:server='http://redfoot.net/2005/server#'
xmlns:template='http://redfoot.net/2005/template#'
xmlns:session='http://redfoot.net/2005/session#'
>
<server:Site rdf:about="">
<rdfs:label>Example Site</rdfs:label>
<template:section rdf:resource="/"/>
</server:Site>
<server:Page rdf:about="/">
<rdfs:label>Home</rdfs:label>
<rdfs:comment></rdfs:comment>
<template:content>
<server:PagePartHandler>
<rdf:value rdf:datatype="http://redfoot.net/2005/server#Kid"><![CDATA[
<span xmlns:kid="http://purl.org/kid/ns#" kid:strip="">
<h2>Welcome</h2>
<p>You are running: http://redfoot.net/3.0/kernel#module</p>
</span>
></rdf:value>
</server:PagePartHandler>
</template:content>
</server:Page>
<session:User rdf:about="http://eikeon.com#">
<rdf:type rdf:resource="#Admin"/>
</session:User>
</rdf:RDF>
See Also
Redfoot's use of identifiers.
redfoot namespaces
Redfoot Kernel
See the Kid homepage for kid documentation
servet interface -- request / response
concrete / abstract
; escape