Skip to content

Commit

Permalink
Doc update.
Browse files Browse the repository at this point in the history
  • Loading branch information
koenedaele committed Feb 22, 2015
1 parent aaadce8 commit 9b0dc58
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Creating a database
===================

Since Skosprovider_sqlalchemy implements the SkosProvider_ interface with a
relational database as a backend, you first need to create this database.
relational database as a backend, you first need to create this database. To
do this, please follow the instructions of your database software. If you're
working with SQLite_, you don't need to do anything.

.. note::

Expand All @@ -26,6 +28,31 @@ relational database as a backend, you first need to create this database.
on both SQLite_ and PostgreSQL_. Other databases are untested by us, but as
long as they are supported by SQLAlchemy_, they should work.

Once your database has been created, you can initialise it with the necessary
database tables that will contain your :term:`SKOS` vocabularies and concepts.

.. code-block:: bash
$ init_skos_db sqlite:///vocabs.db
Let's have a look at what this script did.

.. code-block:: bash
$ sqlite3 vocabs.db
SQLite version 3.7.9 2011-11-01 00:52:41
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
collection_concept conceptscheme_note
concept label
concept_hierarchy_collection labeltype
concept_hierarchy_concept language
concept_label match
concept_note matchtype
concept_related_concept note
conceptscheme notetype
conceptscheme_label visitation
.. _SkosProvider: http://skosprovider.readthedocs.org
.. _SQLAlchemy: http://docs.sqlalchemy.org/
Expand Down

0 comments on commit 9b0dc58

Please sign in to comment.