diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-07 18:08:14 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-07 18:08:14 +0100 |
commit | ffdddf82b839ba5368476cf5035225de7263ebc2 (patch) | |
tree | 11b18f00a196a58f3ad3890838916ad2c2185fa9 | |
parent | 8031d0ae0ea313a905d292ac9ef4e45fa54840cc (diff) | |
download | definitions-ffdddf82b839ba5368476cf5035225de7263ebc2.tar.gz |
schema: Fix definition of command sequences
A CommandSequence is now a class in its own right. The actual commands
can be set with rdf:_1, rdf:_2, rdf:_3 etc.
Also a small tidyup.
Change-Id: I489b217cf1686de8a66c47c44d8d5723f3899e90
-rw-r--r-- | schema/baserock-example.schema | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/schema/baserock-example.schema b/schema/baserock-example.schema index 75ae6a41..31134e4e 100644 --- a/schema/baserock-example.schema +++ b/schema/baserock-example.schema @@ -165,7 +165,7 @@ # A build tool will only understand a certain set of architectures, but I think # that should not be part of the data model. -:hasArchitecture a owl:DatatypeProperty, owl:FunctionalProperty ; +:hasArchitecture a owl:DatatypeProperty , owl:FunctionalProperty ; rdfs:domain :System ; rdfs:range xsd:string . @@ -243,46 +243,50 @@ rdfs:range :ChunkArtifact ; rdfs:comment "Describes how this artifact is split once built." . -:preConfigureCommands a owl:DatatypeProperty , rdf:Seq ; +:CommandSequence a owl:Class ; + rdfs:subClassOf rdf:Seq ; + rdfs:comment "An ordered sequence of commands." . + +:preConfigureCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:configureCommands a owl:DatatypeProperty , rdf:Seq ; +:configureCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:postConfigureCommands a owl:DatatypeProperty , rdf:Seq ; +:postConfigureCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:preBuildCommands a owl:DatatypeProperty , rdf:Seq ; +:preBuildCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:buildCommands a owl:DatatypeProperty , rdf:Seq ; +:buildCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:postBuildCommands a owl:DatatypeProperty , rdf:Seq ; +:postBuildCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:preInstallCommands a owl:DatatypeProperty , rdf:Seq ; +:preInstallCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:installCommands a owl:DatatypeProperty , rdf:Seq ; +:installCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . -:postInstallCommands a owl:DatatypeProperty , rdf:Seq ; +:postInstallCommands a owl:ObjectProperty , owl:FunctionalProperty ; rdfs:domain :Chunk ; - rdfs:range xsd:string . + rdfs:range :CommandSequence . # Artifact properties -:includes a owl:DatatypeProperty, rdf:Seq ; +:includes a owl:DatatypeProperty , rdf:Seq ; rdfs:domain :Artifact ; rdfs:range xsd:string ; rdfs:comment "A regular expression pattern. The results of a build are matched against this pattern and any that match will be included in that artifact." . |