• Topic
  • Discussion
  • ODS.OdsIntegrationDrupal(Last) -- DAVWikiAdmin? , 2018-04-05 15:58:30 Edit WebDAV System Administrator 2018-04-05 15:58:30

    ODS Integration of Drupal

    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:

      ... [Plugins] # for ex. here the location of the plugins is the plugin folder LoadPath = ./plugin ... Load6 = Hosting,hosting_php.so ...

    2. 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)
        2. Go to tab "User DSN" and click "Add"
        3. Select the "OpenLink? Virtuoso (version)" driver and click "Finish"
        4. Enter "Name": Local Virtuoso
        5. Enter "Description": My Local Virtuoso
        6. For "Server", enter your Virtuoso's hostname and ISQL port, e.g., localhost:1116
        7. Click "Next"
        8. Enter a username for "Login ID", e.g., dba
        9. Enter the user's "Password". For dba, the default password is dba
        10. Click "Next"
        11. Click "Finish".
    3. From ISQL execute:

      SQL> DB.DBA.VAD_INSTALL('tmp/drupal_fs.vad',0);

    Linked Data View Scripts

    1. After you have installed the Drupal drupal_fs.vad package, before running the Drupal_rdf_views_script.sql file, which contains the Linked Data 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



      2. 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.



        2. As result your account will be created.



        3. Go to Administer->Site building->Modules and check the check-box for the following modules: Aggregator,Blog, Blog API, Book, Forum, Poll



        4. Click the "Save configuration" button.
        5. Next step is to set the Virtuoso section in the php.ini file:

          [Virtuoso] virtuoso.logging = On virtuoso.server_name = demo.openlinksw.com virtuoso.allow_dba = 1

        6. Next step is to setup the base by editing the Drupal's config file (sites/default/settings.php):

          $base_url = 'http://demo.openlinksw.com/drupal';

    2. Having configured Drupal to have blog, feeds, polls, aggregator, setting the base and the Virtuoso settings as per above, now you can execute now from ISQL the Linked Data Views script:

      isql localhost:1116 dba dba Drupal_rdf_views_script.sql

      • You can find the Drupal Linked Data Views scripts also 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 $db_url value:

      vad\vsp\drupal\sites\default\settings.php

    2. Once you have already created your administrator and configured the modules needed the Linked Data Views script to be executed correctly, log in and from the Welcome page click the "create content" link from the "Start posting content" section.



    3. As result will be shown the Content page page:



    4. Click "Blog entry".
    5. In the shown form enter your data and click "Submit"



    6. As result your blog will be created:



    7. Go to "Create content"->Poll
    8. Enter in the shown form your new Poll question and choices of answers and click the "Submit" button.



    9. As result your Poll will be created



    10. Go to Administer->Content management -> News aggregator and click the button "Add Feed".



    11. Enter in the shown form:
      1. for Title: Kingsley's Blog
      2. for URL: http://www.openlinksw.com/blog/~kidehen/gems/rss.xml
      3. Click the button "Submit".



    12. As result the feed will be added:



    13. You can view your Feeds sources going to News aggregator->Sources:



    14. Go to Administer->Content management -> Forums



    15. Click the "Add container" button.
    16. In the shown form:
      1. Enter for Container name: Food
      2. Enter for Description: all about food
      3. Click the "Submit" button.



    17. As result your new forum will be created:



    18. Click the "Add forum" button.
    19. In the shown form:
      1. Enter for Forum name: Pizza
      2. Enter for Description: Italian pizza
      3. Choose for Parent: Food
      4. Click the "Submit" button.



    20. As result your new forum will be created:



    21. Go to Create content->Forum topic
    22. In the shown form:
      1. Enter for Subject: My favorite menu
      2. For Forums select: Pizza
      3. Enter for Body: Italian pizza is my favorite menu.
      4. Click the "Submit" button.



    23. As result your new forum topic will be created:



    URI Schemes


    http://<your-instance-cname>/drupal/user/<ods-user-id>
    

    Download

    • You can download the Drupal VAD package from here.

    References

    See Also

    CategoryRDF CategoryVirtuoso CategorySIOC CategoryODS CategoryWebSite