Cardoso et al. developed this web app in Ruby, using the Ruby on Rails framework – so if you don’t have Ruby installed in your computer, you need to install it. Follow this link for all the information on how to install Ruby on your platform.
This application is versioned in Git, so if you don’t have Git installed, you should also install it. Follow this link for all the information on how to install Git on your platform.
If you want to run this application on your computer and not on a production server, you also need to install the database SQLite, to store the information even when you exit the editor. Follow this link for the installation instructions. If you are configuring a production environment, then you should install PostgreSQL instead.
The first step to set up this app on your computer is to clone the Git repository. To do so, type the following in your terminal:
git clone firstname.lastname@example.org:rplopes/lss-usdl_editor.git
This will copy all the necessary files to the directory
lss-usdl_editor. To go to that directory:
Now you need to install the required dependencies. If you don’t have the Bundler gem installed:
gem install bundler
Now to install all other required gems:
In order to save data we need to have a database and the right schema. We use the SQLite database because it is great for lightweight usage. If you are setting up a production environment, then the database is PostgreSQL. The required commands to generate the database and schema are:
rake db:create rake db:migrate
If you have CentOS 6.x, and have enabled the EPEL repository, you can use yum to install node/npm:
sudo yum install npm
After the installation is complete, check to make sure node is setup properly:
$ node -v # Returns
Set up the database again:
rake db:create rake db:migrate
This process creates these tables:
Now everything is set. To start the application:
cd lss-usdl_editor rails server
=> Booting Thin => Rails 3.2.12 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server >> Thin web server (v1.5.1 codename Straight Razor) >> Maximum connections set to 1024 >> Listening on 0.0.0.0:3000, CTRL+C to stop
- Linked Service Systems for USDL: Open source repository of the LSS-USDL model.
- USDL Incubator Group: LSS-USDL is part of the research for service systems by the USDL research group.
- Linked USDL: Similar project, focusing on service descriptions for customers. The third use case found in LSS-USDL’s repository shows a service system modeled both in LSS-USDL and Linked USDL.
- Linked USDL core: Repository for the core module of Linked USDL. The other modules may be found under the same Github profile.
- Semantic Web: Technologies such as RDF are a core component of LSS-USDL.
On CentOS, the default version of Ruby installed is 1.8.7. Some Ruby applications (like Rails) require Ruby version 1.9 and higher, so they cannot run properly on stock CentOS.
If you already installed ruby and ruby-devel packages with yum before, remove them first before upgrading Ruby.
sudo yum remove ruby ruby-devel
The Ruby Version Manager – RVM – is the simplest means of getting the latest Ruby interpreter (version 2.1.0) installed on a VPS running CentOS .