summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-01 15:36:12 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-01 15:36:12 +0100
commitbd4fc18987a1d1d1ff8c7a7beb4b92dcfd9e30ed (patch)
tree591de92d1338c8abbe94aa395b3c7f28162135f4
parentddd7d8257c786e3284d021a8cf157fe7a547fa41 (diff)
downloaddefinitions-bd4fc18987a1d1d1ff8c7a7beb4b92dcfd9e30ed.tar.gz
schema: Reuse dc:description for 'description' field
Change-Id: I70efb859facb7e118647230e8cbae3a4611da323
-rw-r--r--schema/baserock-owl-schema.turtle5
-rw-r--r--schema/parse.py3
2 files changed, 4 insertions, 4 deletions
diff --git a/schema/baserock-owl-schema.turtle b/schema/baserock-owl-schema.turtle
index 1c34d947..35f50715 100644
--- a/schema/baserock-owl-schema.turtle
+++ b/schema/baserock-owl-schema.turtle
@@ -34,6 +34,7 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix dc: <http://purl.org/dc/terms/> .
: a owl:Ontology ;
rdfs:comment "Example schema for Baserock Definitions format version 5." .
@@ -80,9 +81,7 @@
rdfs:domain :Morphology ;
rdfs:range xsd:string .
-:hasDescription a owl:DatatypeProperty , owl:FunctionalProperty ;
- rdfs:domain :Morphology ;
- rdfs:range xsd:string .
+# use dc:description for description, see: http://dublincore.org/documents/2012/06/14/dcmi-terms/?v=terms#terms-description
## Cluster-specific properties
diff --git a/schema/parse.py b/schema/parse.py
index a118e70b..b3561df1 100644
--- a/schema/parse.py
+++ b/schema/parse.py
@@ -12,6 +12,7 @@ import warnings
surf.ns.register(baserock='http://baserock.org/definitions/example-schema#')
+surf.ns.register(dc='http://purl.org/dc/terms/')
def load_all_morphologies(session, store):
@@ -173,7 +174,7 @@ def load_all_morphologies(session, store):
cluster.baserock_deploysSystem = deployments
if 'description' in contents:
- entity.baserock_description = contents['description']
+ entity.dc_description = contents['description']
# FIXME: is this needed? why?
entity.set_dirty(True)