summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-02 13:05:35 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-02 13:05:35 +0100
commita61c944c2fa02cba487cf48cb6f637adcd00e273 (patch)
tree94888c2aa8827a6778afa289dc860d80d3eb8d91
parent8a6de708145bf6f2416a11a562be482a1b5a7b19 (diff)
downloaddefinitions-a61c944c2fa02cba487cf48cb6f637adcd00e273.tar.gz
schema: Rename, and update comments
Change-Id: I54f98863d731325eb02407fddae163a3abae43b4
-rw-r--r--schema/baserock-example.schema (renamed from schema/baserock-owl-schema.turtle)10
-rw-r--r--schema/surf-test.py2
2 files changed, 8 insertions, 4 deletions
diff --git a/schema/baserock-owl-schema.turtle b/schema/baserock-example.schema
index f4dadb61..1f90a891 100644
--- a/schema/baserock-owl-schema.turtle
+++ b/schema/baserock-example.schema
@@ -1,4 +1,4 @@
-# Baserock Definitions schema, version -1
+# Baserock Definitions schema example
# This ontology teases out a simple formal model of the data represention
# aspect of the Baserock definitions format (v5).
@@ -8,6 +8,7 @@
# work. In future we need to produce a more general-purpose model. I hope
# this schema is a useful step towards doing that.
+# This is an RDF + OWL ontology represented as RDF/Turtle data.
# NOTE: I absolutely HATE CamelCase but it seems to be the convention for RDF
# property names. I'm undecided on whether it's worse to condemning everyone
@@ -17,14 +18,17 @@
# Things you can do with this:
# Check it is valid:
-# rapper -i turtle baserock-owl-schema.turtle
+# rapper -i turtle baserock-example.schema
#
# Visualise it in a rubbish way:
-# rapper -i turtle -o dot baserock-owl-schema.turtle | dot -Tpng > schema.png
+# rapper -i turtle -o dot baserock-example.schema | dot -Tpng > schema.png
#
# Edit with Protégé:
# just open it in protege, it can save to Turtle format as well but will lose
# comments and formatting.
+#
+# Browse it using the example browser program.
+# See: browser/README.txt
# Metadata
diff --git a/schema/surf-test.py b/schema/surf-test.py
index a17ca82d..23bf8168 100644
--- a/schema/surf-test.py
+++ b/schema/surf-test.py
@@ -45,7 +45,7 @@ session = surf.Session(store)
parse.load_all_morphologies(session, store)
schema = rdflib.Graph()
-schema.parse("baserock-owl-schema.turtle", format="turtle")
+schema.parse("baserock-example.schema", format="turtle")
# Only works for 'memory' database, but I don't really care any more.
all_data = store.reader.graph