Commit dca666dd authored by Jay Jay Billings's avatar Jay Jay Billings
Browse files

Fixed action types and added subclasses.



Minor update to project file. Added seven basic action types after
sorting out the definition of the action type. Finished a first rough
cut at testAction.ttl, but haven't implemented the test yet.
Signed-off-by: default avatarJay Jay Billings <billingsjj@ornl.gov>
parent 55d939d3
......@@ -5,6 +5,11 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
......@@ -19,5 +24,6 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
@prefix : <#> .
@prefix : <file:/home/jayjaybillings/research/ICE/workspace/ice/org.eclipse.ice.workflow/src/main/resources/#> .
@prefix co: <http://purl.org/co> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -68,31 +68,25 @@ ice-wf:TaskList rdf:type owl:AnnotationProperty ;
### https://www.eclipse.org/ice/workflows#ActionTarget
ice-wf:ActionTarget rdf:type owl:ObjectProperty ;
rdfs:domain ice-wf:Action ;
rdfs:comment "This tag describes the target (program, function, web service, etc.) that the action should execute."@en ;
rdfs:comment "This tag describes the target (program, function, web service, etc.) that the action should execute. Its domain is tied to Action, but its range is open to accommodate what ever the type of the target is."@en ;
rdfs:label "Action Target"@en .
### https://www.eclipse.org/ice/workflows#ActionType
ice-wf:ActionType rdf:type owl:ObjectProperty ;
rdfs:domain ice-wf:Action .
### https://www.eclipse.org/ice/workflows#ActionTypeProp
ice-wf:ActionTypeProp rdf:type owl:ObjectProperty ;
rdfs:domain ice-wf:Action ;
rdfs:range ice-wf:ActionType ;
rdfs:comment "This property links a concrete action type to the subject, which must be an action instance." ;
rdfs:label "Action Type Property" .
### https://www.eclipse.org/ice/workflows#TaskPropertySet
ice-wf:TaskPropertySet rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf owl:topObjectProperty ;
rdfs:domain ice-wf:Task ;
rdfs:range <http://purl.org/co#Set> ;
rdfs:comment "This set contains all the properties needed to execute the task to which is is assigned. The content of the set may be of any type, but the set must be a Collection:Set." ;
rdfs:label "Task Property Set" .
#################################################################
# Data properties
#################################################################
### https://www.eclipse.org/ice/workflows#ActionType
ice-wf:ActionType rdf:type owl:DatatypeProperty ;
rdfs:range xsd:string .
rdfs:subPropertyOf owl:topObjectProperty ;
rdfs:domain ice-wf:Task ;
rdfs:range <http://purl.org/co#Set> ;
rdfs:comment "This set contains all the properties needed to execute the task to which is is assigned. The content of the set may be of any type, but the set must be a Collection:Set." ;
rdfs:label "Task Property Set" .
#################################################################
......@@ -121,6 +115,54 @@ ice-wf:Action rdf:type owl:Class ;
rdfs:label "Action"@en .
### https://www.eclipse.org/ice/workflows#ActionType
ice-wf:ActionType rdf:type owl:Class ;
rdfs:comment "This resource defines the type of the action that will be executed. It distinguishes between types of actions such as shell functions, user input, waiting, etc." ;
rdfs:label "Action Type" .
### https://www.eclipse.org/ice/workflows#BashScript
ice-wf:BashScript rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:label "Bash Script" ,
"The Bash Script action type is for actions that require executing Bash scripts in the Bash shell on Linux, Unix, and other systems that support Bash." .
### https://www.eclipse.org/ice/workflows#BasicActionType
ice-wf:BasicActionType rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:comment "The Basic Action Type is the base class for basic actions that are typically considered native actions of workflow engines that execute workflows. This includes actions such as moving files or doing simple reductions." ;
rdfs:label "Basic Action Type" .
### https://www.eclipse.org/ice/workflows#Executable
ice-wf:Executable rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:comment "The Executable Action Type is the base class for actions that require executing generic programs on the system." ;
rdfs:label "Executable" .
### https://www.eclipse.org/ice/workflows#FortranFunction
ice-wf:FortranFunction rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:comment "The Fortran Function Action Type is the base class for actions that require executing a function in the Fortran programming language." ;
rdfs:label "Fortran Function" .
### https://www.eclipse.org/ice/workflows#JavaClass
ice-wf:JavaClass rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:comment "The Java Class Action Type is the base class for actions that require executing a class in the Java programming language. Action Targets for this type should point to a single method in the class that will create all necessary state and configure the system before executing. Thus, to execute a class Car, it may make sense to call a builder class such as \"CarBuilder.runCar\" instead." ;
rdfs:label "Java Class" .
### https://www.eclipse.org/ice/workflows#PythonScript
ice-wf:PythonScript rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:comment "The Python Script Action Type is the base class for actions that require executing a script in the Python programming language." ;
rdfs:label "Python Script" .
### https://www.eclipse.org/ice/workflows#Task
ice-wf:Task rdf:type owl:Class ;
rdfs:comment "This class represents actions that are executed as part of a workflow." ;
......@@ -132,6 +174,13 @@ ice-wf:TaskList rdf:type owl:Class ;
rdfs:subClassOf <http://purl.org/co#List> .
### https://www.eclipse.org/ice/workflows#WebService
ice-wf:WebService rdf:type owl:Class ;
rdfs:subClassOf ice-wf:ActionType ;
rdfs:comment "The Web Service Action Type is the base class for actions that require executing remote web services." ;
rdfs:label "Web Service" .
### https://www.eclipse.org/ice/workflows#WorkflowDescription
ice-wf:WorkflowDescription rdf:type owl:Class ;
rdfs:subClassOf ice-data:Identifiable ;
......@@ -159,12 +208,24 @@ sh:targetClass ice-wf:TaskList .
# Annotations
#################################################################
ice-wf:ActionType rdfs:comment "This is a tag that describes the type of the action. This is generally specific to underlying workflow engines."@en ;
rdfs:label "Action Type"@en .
ice-wf:TaskList rdfs:label "TaskList"@en ;
rdfs:comment "This is a list of tasks that should be executed in the workflow."@en .
#################################################################
# General axioms
#################################################################
[ rdf:type owl:AllDisjointClasses ;
owl:members ( ice-wf:BashScript
ice-wf:BasicActionType
ice-wf:Executable
ice-wf:FortranFunction
ice-wf:JavaClass
ice-wf:PythonScript
ice-wf:WebService
)
] .
### Generated by the OWL API (version 4.5.9.2019-02-01T07:24:44Z) https://github.com/owlcs/owlapi
......@@ -6,10 +6,13 @@
# Create a basic action target with no actual implementation details.
:testActionTarget rdf:type ice-wf:ActionTarget ;
rdf:label "Test Action Target".
rdf:label "Test Action Target" .
:testActionType rdf:type ice-wf:ActionType ;
rdf:label "Test Action Type" .
# Create the action.
:testAction
rdf:type ice-wf:Action ;
ice-wf:ActionType "Job Launch" ;
ice-wf:ActionType :testActionType ;
ice-wf:ActionTarget :testActionTarget.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment