diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-02 13:06:15 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-02 13:06:15 +0100 |
commit | 15905d728a0ee1b4df3f2e29fb9987cc2ae842bd (patch) | |
tree | a8b8f056b64e3ff1fb87973ee6f62a96b57bcbb4 | |
parent | a61c944c2fa02cba487cf48cb6f637adcd00e273 (diff) | |
download | definitions-15905d728a0ee1b4df3f2e29fb9987cc2ae842bd.tar.gz |
schema browser: Allow browsing the schema as well as the data.
Change-Id: I89d7a5dd1cdb2b60e13cbc09dc9be3455df2804e
-rw-r--r-- | schema/browser/README.txt | 4 | ||||
-rw-r--r-- | schema/browser/main.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/schema/browser/README.txt b/schema/browser/README.txt index 45745b6d..8cfc0a39 100644 --- a/schema/browser/README.txt +++ b/schema/browser/README.txt @@ -24,6 +24,10 @@ You need to clone 'rdflib_web' from Git, because it isn't packaged in Pip. git clone https://github.com/RDFLib/rdflib-web +Copy in the schema: + + cp ../baserock-example.schema . + Finally you need to create the file 'definitions.rdfxml' from the definitions. cd ../ diff --git a/schema/browser/main.py b/schema/browser/main.py index 06fc7b73..70c6f33d 100644 --- a/schema/browser/main.py +++ b/schema/browser/main.py @@ -7,7 +7,7 @@ import os definitions = rdflib.Graph() definitions.parse('definitions.rdfxml') -definitions.parse('../baserock-owl-schema.turtle', format='turtle') +definitions.parse('baserock-example.schema', format='turtle') #app = flask.Flask('Example Baserock definitions browser') #app.config['graph'] = definitions |