@base .
@prefix oslc .
@prefix oslc_auto .
@prefix dcterms .
@prefix http .
@prefix http-methods ;
a oslc:Action ;
dcterms:title "Perform action X" ;
oslc:binding ;
oslc:binding ;
oslc:binding ;
.
a http:Request ;
http:httpVersion "1.1" ;
http:mthd http-methods:POST ;
http:requestURI ;
# Multi-valued http:body predicate allows either of the following interaction patterns:
# HTTP request with empty body, or HTTP request with fixed body.
http:body rdf:nil ;
http:body [
a oslc_auto:ParameterInstance ;
rdf:value ; # Some opaque body contents
] ;
oslc:finalStatusLocation http:StatusCode ;
.
a oslc:Dialog ;
oslc:usage oslc:ActionDialog;
oslc:usage oslc_auto:ImmediateExecution ;
dcterms:title "Perform action X..." ;
oslc:dialog ;
oslc:finalStatusLocation oslc:ActionDialog ;
.
a oslc:Dialog ;
oslc:usage oslc_auto:DeferredExecution ;
dcterms:title "Configure action X for later execution..." ;
oslc:dialog ; # Used in configuration phase
# Bindings used during the execution phase
# - This dialog re-uses the immediate-execution bindings from the action above.
# - The deferred-execution binding (actions/1/bindings/dialog-deferred) is not re-used.
oslc:binding ; # A dialog in case the user is present and wants to tweak the values
oslc:binding ; # For the consumer to replace the fixed body with the result of this dialog
.