[Swaf] SWORD example
Disha Al Baqui
disha.albaqui at gmail.com
Wed Jan 10 19:21:55 GMT 2007
Hi Cedric,
Thanks for replying so soon.
Actually the space was just an artefact of my command shell. it's still
giving me the same errors, though.
I realized however, that my installation of redland was outdated so after a
fresh install of the latest Redland.
I ran scabbard again.
./script/generate scabbard person foaf http://xmlns.com/foaf/0.1/
fetching data from http://xmlns.com/foaf/0.1/
URI http://xmlns.com/foaf/0.1/ raptor www error - Not a file: URI
rapper: Failed to parse URI http://xmlns.com/foaf/0.1/ rdfxml con
tent
create app/controllers/people_controller.rb
create app/models/person.rb
create app/views/people
create app/views/people/show.rhtml
create app/views/people/list.rhtml
create app/views/people/new.rhtml
create app/views/people/edit.rhtml
create app/views/people/_predicate_input.rhtml
create app/views/people/_add_add_observation.rhtml
create app/views/people/_show_history.rhtml
create app/views/people/add_suggested_predicate.rjs
create public/stylesheets/scabbard.css
create app/views/layouts/people.rhtml
I still get the same errors
I started my server with no problems.
However when i go to http://localhost:3000/people <http://localhost:3000/>
This is what I see.
uninitialized constant FOAF
RAILS_ROOT: script/../config/..
Application Trace <http://localhost:3000/people#> | Framework
Trace<http://localhost:3000/people#>| Full
Trace <http://localhost:3000/people#>
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`send'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`const_missing'
app/controllers/people_controller.rb:15:in `list'
app/controllers/people_controller.rb:8:in `index'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`send'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in
`perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in
`perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in
`process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in
`process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in
`process'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in
`handle_dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
script/server:3
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`send'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`const_missing'
app/controllers/people_controller.rb:15:in `list'
app/controllers/people_controller.rb:8:in `index'
....
This error occured while loading the following files:
foaf.rb
Request
*Parameters*: None
Show session dump <http://localhost:3000/people#>
---
flash: !map:ActionController::Flash::FlashHash {}
Response *Headers*: {"cookie"=>[], "Cache-Control"=>"no-cache"}
Can anyone help me in figuring out where I'm messing things up?
Thanks,
Disha
PS. I'm still using activerdf-1.1 because the newer version requires
sqlite-1.1.0.1 which is giving me this error every time
/usr/lib/ruby/gems/1.8/gems/sqlite3-
ruby-1.1.0.1-mswin32/lib/sqlite3/database.rb:650:in
`load_driver': no driver for sqlite3 found (RuntimeError)
from /usr/lib/ruby/gems/1.8/gems/sqlite3-
ruby-1.1.0.1-mswin32/lib/sqlite3/database.rb:107:in
`initialize'
from /usr/lib/ruby/gems/1.8/gems/activerdf_rdflite-1.2.1/lib/activerdf_rdflite/rdflite.rb:41:in
`new'
from /usr/lib/ruby/gems/1.8/gems/activerdf_rdflite-1.2.1/lib/activerdf_rdflite/rdflite.rb:41:in
`_old_initialize'
from /usr/lib/ruby/gems/1.8/gems/activerdf_rdflite-1.2.1/lib/activerdf_rdflite/suggesting.rb:19:in
`initialize'
from /usr/lib/ruby/gems/1.8/gems/activerdf-1.2/lib/active_rdf/federation/connection_pool.rb:119:in
`new'
from /usr/lib/ruby/gems/1.8/gems/activerdf-
1.2/lib/active_rdf/federation/connection_pool.rb:119:in
`send'
from /usr/lib/ruby/gems/1.8/gems/activerdf-1.2/lib/active_rdf/federation/connection_pool.rb:119:in
`create_adapter'
from /usr/lib/ruby/gems/1.8/gems/activerdf-1.2/lib/active_rdf/federation/connection_pool.rb:68:in
`add'
... 15 levels...
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
from ./script/generate:3
and I can't seem to figure it out. I was wondering if the SWORD plugin is
using a certain version of activerdf or not.
On 1/7/07, Cédric Mesnage < cedric.mesnage at lu.unisi.ch> wrote:
>
> > Ouups sorry, we actually do it like that, it seems christmas got me
> > wrong... It seems the URI error came from a space at the beginning of the
> > string so:
> > $./script/generate scabbard post sioc ' http://rdfs.org/sioc/ns#'<http://rdfs.org/sioc/ns#%27>
> >
> > should work (at least it does on my machine).
> >
> > ---
> > Cédric Mesnage
> > PhD Student
> > cedric.mesnage at lu.unisi.ch
> > http://www.inf.unisi.ch/phd/mesnage/
> > http://myunderstanding.wordpress.com/
> >
> >
> > On Jan 8, 2007, at 1:58 AM, Cédric Mesnage wrote:
> >
> > Hi Disha,
> > I am travelling right now, so I won't be able to answer too much, but I
> > will in a few days...
> >
> > In the meantime, when generating a scabbard, you need to give the uri of
> > the actual class you want to manage, in your case Post, so the command line
> > would be :
> >
> > $ ./script/generate scabbard post sioc ' http://rdfs.org/sioc/ns#Post'
> >
> > but the way you thought about it is actually interesting, and we might
> > consider doing it like it instead:
> > $ generate scabbard <class name> <namespace name> <namespace URI>
> >
> > Sword is still in really early development and much has to be done.
> >
> > Thanks for your interest. Cédric
> >
> > ---
> > Cédric Mesnage
> > PhD Student
> > cedric.mesnage at lu.unisi.ch
> > http://www.inf.unisi.ch/phd/mesnage/
> > http://myunderstanding.wordpress.com/
> >
> >
> > On Jan 8, 2007, at 1:31 AM, Disha Al Baqui wrote:
> >
> > Hi,
> >
> > I am trying to get the SWORD example on the wiki to work. Yet every time
> > i try generating a scabbard, i am getting these error messages. Can anyone
> > help me in understanding/solving them?
> >
> > $ ./script/generate scabbard post sioc ' http://rdfs.org/sioc/ns#'
> > fetching data from http://rdfs.org/sioc/ns#
> > URI http://rdfs.org/sioc/ns raptor www error - Not a file: URI
> > rapper: Failed to parse URI http://rdfs.org/sioc/ns rdfxml content
> > /usr/lib/ruby/site_ruby/1.8 /rubygems/custom_require.rb:27: command not
> > found: uuidgen
> > create app/controllers/posts_controlle r.rb
> > create app/models/post.rb
> > create app/views/posts
> > create app/views/posts/show.rhtml
> > create app/views/posts/list.rhtml
> > create app/views/posts/new.rhtml
> > create app/views/posts/edit.rhtml
> > create app/views/posts/_predicate _input.rhtml
> > create app/views/posts/_add_add_observation.rhtml
> > create app/views/posts/_show_history .rhtml
> > create app/views/posts/add_suggested_predicate.rjs
> > identical public/stylesheets/scabbard.css
> > create app/views/layouts/posts.rhtml
> >
> > I'm using activerdf-1.1 ...
> >
> > When I update do activerdf-1.2 and activerdf_rdflite-1.2 and
> > sqlite3-ruby-1.1.0.1
> > I get a much different error message ...
> >
> > $ ./script/generate scabbard post sioc 'http://rdfs.org/sioc/ns#'
> > /usr/lib/ruby/gems/1.8/gems/sqlite3- ruby-1.1.0.1-mswin32/lib/sqlite3/database.rb:650:in
> > `load_driver': no driver for sqlite3 found (RuntimeError)
> > from /usr/lib/ruby/gems/1.8/gems/sqlite3- ruby-1.1.0.1-mswin32/lib/sqlite3/database.rb:107:in
> > `initialize'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf_rdflite-1.2.1/lib/activerdf_rdflite/rdflite.rb:41:in
> > `new'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf_rdflite- 1.2.1/lib/activerdf_rdflite/rdflite.rb:41:in
> > `_old_initialize'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf_rdflite-1.2.1/lib/activerdf_rdflite/suggesting.rb:19:in
> > `initialize'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf-1.2/lib/active_rdf/federation/connection_pool.rb:119:in
> > `new'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf- 1.2/lib/active_rdf/federation/connection_pool.rb:119:in
> > `send'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf-1.2/lib/active_rdf/federation/connection_pool.rb:119:in
> > `create_adapter'
> > from /usr/lib/ruby/gems/1.8/gems/activerdf- 1.2/lib/active_rdf/federation/connection_pool.rb:68:in
> > `add'
> > ... 15 levels...
> > from
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `gem_original_require'
> > from
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
> > `require'
> > from ./script/generate:3
> >
> > I have no idea where to begin to solving my problem. Can anyone please
> > help me in this regard?
> > _______________________________________________
> > swaf mailing list
> > swaf at lists.deri.org
> > http://lists.deri.org/mailman/listinfo/swaf
> >
> >
> > _______________________________________________
> > swaf mailing list
> > swaf at lists.deri.org
> > http://lists.deri.org/mailman/listinfo/swaf
> >
> >
> >
>
>
> --
> Thanks,
> Disha Al Baqui
>
> 2366 Main Mall,
> University of British Columbia
> Vancouver BC
> Canada V6T 2B9
>
> Ph # 604 725 4756
> MSN: disha.albaqui at gmail.com
--
Thanks,
Disha Al Baqui
2366 Main Mall,
University of British Columbia
Vancouver BC
Canada V6T 2B9
Ph # 604 725 4756
MSN: disha.albaqui at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.deri.org/pipermail/swaf/attachments/20070110/65201a94/attachment-0001.htm
More information about the swaf
mailing list