%META:TOPICPARENT{name="Ods"}%

%TOC%

---++What is Drupal?

Drupal is a popular open-source content-management system (CMS) written in PHP. The steps below allow you to run it in Virtuoso.

---+++Install VAD

   1. Start virtuoso db using the hosting_php.so ( .dll for win users). In oder to use this plugin, it needs to be included in your virtuoso ini file as follows:
<verbatim>
...
[Plugins]
# for ex. here the location of the plugins is the plugin folder
LoadPath = ./plugin
...
Load6    = Hosting,hosting_php.so
...
</verbatim>
   1. Setup "Local Virtuoso" DSN (note the empty space in the name!) in order to access any of the application URLs.
      * For windows users, please perform the following steps:
         1.  Go to Start-> Settings-> Control Panel ->Administrative Tools -> Data Sources (ODBC)
         1. Go to tab "User DSN" and click "Add"
         1. Select the " OpenLink Virtuoso(version)" driver and click "Finish"
         1. Enter for "Name": Local Virtuoso
         1. Enter "Description": My Local Virtuoso
         1. Enter for the field "Server" your Virtuoso host value and ISQL port, for ex: localhost:1116
         1. Click "Next"
         1. Enter for "Login ID" for ex. dba
         1. Enter for "Password" the user password, for ex. for dba by default it is dba.
         1. Click "Next"
         1. Click "Finish".
   1. From ISQL execute:
<verbatim>
SQL> DB.DBA.VAD_INSTALL('tmp/drupal_fs.vad',0);
</verbatim>

---+++RDF View Scripts

   1. After you have installed the Drupal drupal_fs.vad package, before running the <a href="%ATTACHURLPATH%/Drupal_rdf_views_script.sql" style="wikiautogen"><nowiki>Drupal_rdf_views_script</nowiki>.sql</a> file, which contains the RDF Views scripts for Drupal, you need to configure Drupal to have blog, feeds, polls, aggregator:
      1. Access the drupal home page at http://host:port/drupal   
         * <img src="%ATTACHURLPATH%/dp1.png" style="wikiautogen"/>
      1. Follow the steps shown: 
         1. Create the first account: Click the link "Create the first account" and fill in the form fields. Finally click the "Create new account" button.
            * <img src="%ATTACHURLPATH%/dp2.png" style="wikiautogen"/>
         1. As result your account will be created. 
            * <img src="%ATTACHURLPATH%/dp3.png" style="wikiautogen"/>
         1. Go to Administer->Site building->Modules and check the check-box for the following modules: Aggregator,Blog, Blog API, Book, Forum, Poll
            * <img src="%ATTACHURLPATH%/dp4.png" style="wikiautogen"/>
         1. Click the "Save configuration" button.
   1. Having configured Drupal to have blog, feeds, polls, aggregator, etc.. you can execute now from ISQL the RDF Views script:
<verbatim>
isql localhost:1116 dba dba Drupal_rdf_views_script.sql
</verbatim>
      * You can find the <nowiki>Drupal</nowiki> RDF Views scripts also  [[VirtRDFViewDrupal][here]].

---+++Configuration

   1. In case you want to change the dba password, you need to locate the file below in your FS and change the <b>$db_url</b> value:
<verbatim>
vad\vsp\drupal\sites\default\settings.php
</verbatim>
   1. Once you have already created your administrator and configured the modules needed the RDF Views script to be executed correctly, log in and from the Welcome page click the "create content" link from the "Start posting content" section.
      * <img src="%ATTACHURLPATH%/dp5.png" style="wikiautogen"/>
   1. As result will be shown the Content page page:
      * <img src="%ATTACHURLPATH%/dp6.png" style="wikiautogen"/>
   1. Click "Blog entry".
   1. In the shown form enter your data and click "Submit"
      * <img src="%ATTACHURLPATH%/dp7.png" style="wikiautogen"/>
   1. As result your blog will be created:
      * <img src="%ATTACHURLPATH%/dp8.png" style="wikiautogen"/>
   1. Go to "Create content"->Poll
   1. Enter in the shown form your new Poll question and choices of answers and click the "Submit" button.
      * <img src="%ATTACHURLPATH%/dp9.png" style="wikiautogen"/>
   1. As result your Poll will be created
      * <img src="%ATTACHURLPATH%/dp10.png" style="wikiautogen"/>
   1. Go to Administer->Content management -> News aggregator and click the button "Add Feed".
      * <img src="%ATTACHURLPATH%/dp11.png" style="wikiautogen"/>
   1. Enter in the shown form:
      1. for Title: Kingsley's Blog
      1. for URL: http://www.openlinksw.com/blog/~kidehen/gems/rss.xml
      1. Click the button "Submit".
         * <img src="%ATTACHURLPATH%/dp12.png" style="wikiautogen"/>
   1. As result the feed will be added:
      * <img src="%ATTACHURLPATH%/dp13.png" style="wikiautogen"/>
   1. You can view your Feeds sources going to News aggregator->Sources:
      * <img src="%ATTACHURLPATH%/dp14.png" style="wikiautogen"/>
   1. Go to Administer->Content management -> Forums
      * <img src="%ATTACHURLPATH%/dp15.png" style="wikiautogen"/>
   1. Click the "Add container" button.
   1. In the shown form:
      1. Enter for Container name: Food
      1. Enter for Description: all about food
      1. Click the "Submit" button.
         * <img src="%ATTACHURLPATH%/dp16.png" style="wikiautogen"/>
   1. As result your new forum will be created:
      * <img src="%ATTACHURLPATH%/dp17.png" style="wikiautogen"/>
   1. Click the "Add forum" button.
   1. In the shown form:
      1. Enter for Forum name: Pizza
      1. Enter for Description: Italian pizza
      1. Choose for Parent: Food
      1. Click the "Submit" button.
         * <img src="%ATTACHURLPATH%/dp18.png" style="wikiautogen"/>
   1. As result your new forum will be created:
      * <img src="%ATTACHURLPATH%/dp19.png" style="wikiautogen"/>
   1. Go to Create content->Forum topic
   1. In the shown form:
      1. Enter for Subject: My favorite menu
      1. For Forums select: Pizza
      1. Enter for Body: Italian pizza is my favorite menu.     
      1. Click the "Submit" button.
         * <img src="%ATTACHURLPATH%/dp20.png" style="wikiautogen"/>
   1. As result your new forum topic will be created:
      * <img src="%ATTACHURLPATH%/dp21.png" style="wikiautogen"/>
       
---+++URI Schemas
%META:TOPICPARENT{name="Ods"}%

%TOC%

---++What is <nowiki>WordPress</nowiki>?

<nowiki>WordPress</nowiki> is a popular open-source blog engine written in PHP. The guide below shows how to run it in Virtuoso.

---+++Install VAD

   1. Start virtuoso db using the hosting_php.so ( .dll for win users). In oder to use this plugin, it needs to be included in your virtuoso ini file as follows:
<verbatim>
...
[Plugins]
# for ex. here the location of the plugins is the plugin folder
LoadPath = ./plugin
...
Load6    = Hosting,hosting_php.so
...
</verbatim>
   1. Setup "Local Virtuoso" DSN (note the empty space in the name!) in order to access any of the application URLs.
      * For windows users, please perform the following steps:
         1.  Go to Start-> Settings-> Control Panel ->Administrative Tools -> Data Sources (ODBC)
         1. Go to tab "User DSN" and click "Add"
         1. Select the " OpenLink Virtuoso(version)" driver and click "Finish"
         1. Enter for "Name": Local Virtuoso
         1. Enter "Description": My Local Virtuoso
         1. Enter for the field "Server" your Virtuoso host value and ISQL port, for ex: localhost:1116
         1. Click "Next"
         1. Enter for "Login ID" for ex. dba
         1. Enter for "Password" the user password, for ex. for dba by default it is dba.
         1. Click "Next"
         1. Click "Finish".
   1. From ISQL execute:
<verbatim>
SQL> DB.DBA.VAD_INSTALL('tmp/wordpress_fs.vad',0);
</verbatim>

---+++RDF View Scripts

   1. After you have installed the <nowiki>WordPress</nowiki> wordpress_fs.vad package, using ISQL execute the <a href="%ATTACHURLPATH%/WordPress_rdf_views_script.sql" style="wikiautogen"><nowiki>WordPress_rdf_views_script</nowiki>.sql</a> file, which contains the RDF Views scripts for <nowiki>WordPress</nowiki>:
<verbatim>
isql localhost:1116 dba dba WordPress_rdf_views_script.sql
</verbatim>
      * You can find the <nowiki>WordPress</nowiki> RDF Views scripts also  [[VirtRDFViewWordpress][here]].

---+++Configuration

   1. In case you want to change the dba password, you need to locate the file below in your FS and change the <b>$wgDBpassword<b/> value:
<verbatim>
vad\vsp\wordpress\wp-config.php
</verbatim>
   1. After you have successfully installed the <nowiki>WordPress</nowiki> wordpress_fs.vad package and have run the RDF Views <nowiki>WordPress_rdf_views_script</nowiki>.sql, access the <nowiki>WordPress</nowiki> home page: http://host:port/wordpress
   
---+++URI Schemes
<verbatim>
http://<your-instance-cname>/drupal/user/<ods-user-id>
</verbatim>

---++Download

   1. You can download from [[http://virtuoso-images.s3.amazonaws.com/index.html][here]] the RPM for Drupal.
   2. Put the downloaded file preferably into an empty folder and in order to build the drupal_fs.vad package, please perform:
<verbatim>
rpm2cpio <the name of the rpm file> | cpio -idmv
</verbatim>
   3. As result the drupal_fs.vad package will be build and ready to be installed.

---++References

   * [[http://drupal.org/about][Drupal]]

---+++See Also

   * [[DrupalSIOCRef][Drupal SIOC Reference]]

CategoryRDF CategoryVirtuoso CategoryDrupal