Home > cloud > Drupal 7 on Ubuntu 10.10 or 10.04 for SPARQL federation

Drupal 7 on Ubuntu 10.10 or 10.04 for SPARQL federation

October 28, 2010

Quick steps to install Drupal 7

This, so you can use the SPARQL federating plugin

First install ubuntu ! 10.10 isnt much over 10.04, perhaps less even, so go with what you have v10-wise.

 

Now you need apache,mysql,php and drupal, database setup (ie LAMP + drupal). Then and a variety sparql modules and support.

In short

  1. Install LAMP
  2. Setup MySQL (or create a database for it)
  3. Download and Setup Drupal (or update/upgrade)
  4. Configure Drupal
  5. Add modules

In some more detail

  1. Install Lamp
  2. Install PHP gd – you’ll get errors about it during Drupal install otherwise
  3. Setup mysql with database called d7 and admin user drupal
    1. create database d7
    2. grant all privileges on d7 to drupal@localhost identified by ‘password’ -if you get into trouble install phpmyadmin
  4. download drupal7, expand and move the expanded dir into the docroot/cms (you may need sudo for all of this)
    1. gzip -dc drupal.*.*.tar.gz | tar -xvf -
    2. mkdir /var/www/cms
    3. cd drupal.*.*
    4. mv * /var/www/cms
    5. read the README about creating default site and perms
  5. take a breath
  6. restart apache for the hell of it - sudo /etc/init.d/apache2 restart
  7. go to http://127.0.0.1/cms and create the first site by following the steps
  8. reset perms as per readme on settings.php

now find the SPARQL plugin [1,2] that Lin at DERI created and get to work on content-types[3]……

I’ve left messages but haven’t had a response yet – Sparql Views as it is on GitHub Jan 2011 won’t install on the official Drupal7 release (drush doesnt like it either, it seems). But theres also VARQL[4], built on top of what Lin did, that might be good for you.

There are dependencies you should be prepared to install – Views (not unsurprisingly), Dialog [5], Chaos Tools Suite [6] (maybe  RDFx [7] – Sparql Views has it, needs it, but Drupal7 has some conflict either at install or runtime – needs more investigation).

And you’ll need to download and manually install, as ftp to localhost, using the UI installer won’t work (at least not for me on Ubuntu 10.04/10).  Relying on ftp is just a bad way of installing things IMO.

Update rather than Upgrade

FYI : I easily updated (not upgraded [9]) my Drupal7 Beta to official release byfollowing Yodi Aditya’s instructions [8]

 

 

[1] http://cph2010.drupal.org/sessions/using-rdf-semantic-web-modules

[2] http://drupal.org/project/sparql_views

[3] http://semantic-drupal.com/

[4] http://drupal.org/project/varql

[5] http://drupal.org/project/dialog

[6] http://drupal.org/project/ctools

[7] http://groups.drupal.org/node/59388

[8] http://yoodey.com/how-migration-upgrade-drupal-7-rc-drupal-7-final

[9] http://drupal.org/upgrade

 

Advertisements
  1. February 13, 2011 at 3:34 am

    Great post! Helped me a ton.

    You’re awesome.

    R

  2. May 18, 2011 at 4:50 am

    Hmm, I just ran across this post. I don’t remember getting messages from you, but that may be because I don’t really use GitHub. I was just using it as a temporary repo until the Drupal git migration was completed.

    The reason it wouldn’t install was because SPARQL Views wasn’t ported to Drupal 7 until February 2011. This was because Views didn’t go into beta until a little after that, and I didn’t want to chase Views head. You can check the version of modules in the .info file.

    There is an article with instructions at https://www.ibm.com/developerworks/web/library/wa-datasets/

    Anyway, if you have any questions about SPARQL Views, you can post them in the issue queue
    http://drupal.org/project/issues/sparql_views

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: