diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-09 15:44:10 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-09 15:44:10 +0100 |
commit | 0fca6350929757386236344a1a4e411f681c1746 (patch) | |
tree | b324967bfe338302d35612e854a896c39bf16455 | |
parent | c37fd73e52111fff911d6825f9df5263c1d69960 (diff) | |
download | definitions-0fca6350929757386236344a1a4e411f681c1746.tar.gz |
schema: Seperate :producesChunkArtifact and :producesStratumArtifact
There's probably a way to have a single :produces property and use OWL
restrictions to set range based on range... but let's keep things
simple.
Change-Id: Ic15c0a4f778504643f526d6554d02e302e7b0f12
-rw-r--r-- | schema/baserock-example.schema | 4 | ||||
-rw-r--r-- | schema/parse.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/schema/baserock-example.schema b/schema/baserock-example.schema index a9e97851..e374c5e1 100644 --- a/schema/baserock-example.schema +++ b/schema/baserock-example.schema @@ -196,7 +196,7 @@ ## Stratum-specific properties -:produces a owl:ObjectProperty , rdf:Seq ; +:producesStratumArtifact a owl:ObjectProperty , rdf:Seq ; rdfs:domain :Stratum ; rdfs:range :StratumArtifact ; rdfs:comment "Describes how this artifact is split once all chunks are built." . @@ -257,7 +257,7 @@ # http://smiy.sourceforge.net/olo/spec/orderedlistontology.html might # be worth investigating. -:produces a owl:ObjectProperty , rdf:Seq ; +:producesChunkArtifact a owl:ObjectProperty , rdf:Seq ; rdfs:domain :Chunk ; rdfs:range :ChunkArtifact ; rdfs:comment "Describes how this artifact is split once built." . diff --git a/schema/parse.py b/schema/parse.py index 69fd730b..5a014fe3 100644 --- a/schema/parse.py +++ b/schema/parse.py @@ -232,7 +232,7 @@ def load_all_morphologies(path='.'): if 'includes' in entry: artifact.set(BASEROCK.includes, rdflib.Literal(entry['includes'])) - stratum.add(BASEROCK.produces, artifact) + stratum.add(BASEROCK.producesStratumArtifact, artifact) for entry in contents.get('chunks', []): if 'morph' in entry: |