Book Image

Getting Started with OrientDB

By : Claudio Tesoriero
Book Image

Getting Started with OrientDB

By: Claudio Tesoriero

Overview of this book

<p>In modern software applications, often there is the necessity to manage very big amounts of unstructured data with varying schema. In this scenario, instead of relational databases, we can use OrientDB, an open source NoSQL DBMS written in Java. Inspite ofDespite being a document-based database, the relationships are managed with direct connections between records. It supports schema-less, schema-full, and schema-mixed modes.</p> <p>Getting Started with OrientDB will be your handy, quick reference guide, for all document-graph DBMS functionality. Administrative tasks, deployment, designing a database, different ways of querying and consuming data - all that you need to know about OrientDB is presented keeping with practical usage in mind. You will be able to install, setup, deploy, and configure databases with OrientDB for applications.</p> <p>Getting Started with OrientDB will allow you to use its OreintDB’s main functionality immediately. The book will guide you through the discovery of one of the most powerful NoSQL databases available today. It will then take you through downloading and installing OrientDB, cluster deployment, programming, discovering OrientDB’s potential, and its features.</p> <p>The book covers useful administrative topics such as import/export, automatic backups, and configuration tips. Furthermore, design concepts like user management, document databases, graph databases, and dictionaries are covered. Finally, concepts and programming examples are shown in Java.</p>
Table of Contents (12 chapters)

Compiling from the latest source snapshot


The source code is available through the GitHub platform at the URL http://github.com/nuvolabase/orientdb.

Since the build process will put the generated file in a directory called release, which will be a sibling of the source directory, I suggest you create a directory just for OrientDB. Inside that directory create a new directory to place the downloaded source code.

You can download the latest source code by selecting the master branch and downloading the master.zip file using the ZIP button.

Otherwise, you can clone the GIT repository on your machine using git. Type:

git clone git://github.com/nuvolabase/orientdb.git

To build OrientDB from source code you must have a JDK SE 6 or above, and the Ant Tool version 1.6.5 or above.

You can download Ant from http://ant.apache.org/.

Please note that the ant executable directory must be included in the PATH environment variable.

Once you have downloaded the source code and installed the necessary tool, you can proceed to build OrientDB.

Go into the source code directory and type:

ant clean install

You can also launch the build.bat (or build.sh in Unix-like system), however these scripts call ant.

To build the Graphed Edition too, type:

ant clean installg

At the end of the build process you should have a screen shown as follows:

The generated files are in the release\orientdb-x.y.z-SNAPSHOT and release\orientdb-graphed-x.y.z-SNAPSHOT directories, where x.y.z is the current version under development.

Running the test suite

To run the test suite against a freshly-built OrientDB snapshot, you can type the following command:

ant test

After the test suite has finished (you should have 0 errors), in the database directory of the Standard Edition, you should have some databases created to run the tests, including the demo database.

There are another set of tests that need of Maven to be executed.

So, if you want to execute these tests you must download Maven from http://maven.apache.org/download.cgi

and install it following the instruction provided in the readme.txt file within the installation package.

Once you have Maven on your system, you can type:

mvn clean test