sign in
Home | Updates | Pages | Users | Admin | Help

SWORD

SWORD stands for Semantic Web On Rails Development. It is a ruby on rails plugin which ease the development of semantic web applications.

Our paradigm is to create applications directly based on the semantic web information standards.

SWORD integrates nicely with rails and activeRDF and offers scabbard generators, same as scaffolding for semantic web applications. In one command line, you create a controller, model and views to manage one particular semantic web data type, such as a Person of the foaf ontology. The views and the controller offers actions such as search/list, new/create, fetch/show, edit/update.

Once these basic files are generated, the application developer configures, enhances and grows his application.

Developing a foaf editor/viewer in rails with SWORD

$ require rails
$ require activerdf
$ require activerdf-rdflite
$ rails foafapp
$ cd foafapp
$ ./script/plugin install svn://sword.......
$ ./script/generate Person foaf "http://xmlns.com/foaf/0.1/" 
$ ./script/server

And you are done, the application can already be run and has full functionalities allowing users to fetch rdf data form the web, to add new persons, edit them and obviously search and display them.

The following files are generated which can then be edited by the developer:

The file app/controllers/people_controller.rb

The file app/models/person.rb

The file app/views/people/edit.rhtml

The file app/views/people/list.rhtml

The file app/views/people/new.rhtml

The file app/views/people/show.rhtml


Powered by JunebugWiki v0.0.31 Page last edited by cedricmesnage on May 18, 2008 04:50 PM (diff)
Version 5 «oldernewer»currentversions