From ffdddf82b839ba5368476cf5035225de7263ebc2 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 7 Jul 2015 18:08:14 +0100 Subject: 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 --- schema/baserock-example.schema | 44 +++++++++++++++++++++++------------------- 1 file 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." . -- cgit v1.2.1