diff options
Diffstat (limited to 'schema')
-rw-r--r-- | schema/baserock-example.schema (renamed from schema/baserock-owl-schema.turtle) | 10 | ||||
-rw-r--r-- | schema/surf-test.py | 2 |
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 |