From 15905d728a0ee1b4df3f2e29fb9987cc2ae842bd Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 2 Jul 2015 13:06:15 +0100 Subject: schema browser: Allow browsing the schema as well as the data. Change-Id: I89d7a5dd1cdb2b60e13cbc09dc9be3455df2804e --- schema/browser/README.txt | 4 ++++ schema/browser/main.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1