summaryrefslogtreecommitdiff
path: root/schema/browser/README.txt
blob: 45745b6d6e2a8fe28719c7bea24c0c00ec3ee708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
This is a demo application for browsing Baserock definitions.

It is a tiny wrapper over the 'rdflib_web' Python library, which provides a
really cool web interface for browsing RDF data, based on the Flask and RDFLib
libaries.

DISCLAIMER: this was hacked up in a few hours, please don't expect greatness.


Deploying to Cloud Foundry
--------------------------

You can deploy to Pivotal Cloud Foundry by setting up an account at
<https://run.pivotal.io>. Or you can deploy to another Cloud Foundry instance,
probably. Make sure you have the `cf` commandline client installed and have run
`cf login` with your details.

You need to 'vendor' the dependencies by running:

    mkdir vendor
    pip install --download vendor -r requirements.txt

You need to clone 'rdflib_web' from Git, because it isn't packaged in Pip.

    git clone https://github.com/RDFLib/rdflib-web

Finally you need to create the file 'definitions.rdfxml' from the definitions.

    cd ../
    python ./to-rdfxml.py
    cd schema
    mv ../definitions.rdfxml .

Test the app locally.

    PYTHONPATH=rdflib-web python main.py

If it works, push to Cloud Foundry (10 second timeout, the default is probably
too long):

    cf push -t 10