#
#	SAN Example:	Composite Action (a SAN with composite action, i.e. sequence or selector or parallel any/all)
#
     @prefix : <http://www.test.com/test1#> .
     @prefix log: <http://www.w3.org/2000/10/swap/log#> .
     @prefix owl: <http://www.w3.org/2002/07/owl#> .
     @prefix protege: <http://protege.stanford.edu/plugins/owl/protege#> .
     @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
     @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
     @prefix san: <http://imu.ntua.gr/ontologies/san/2011/06/01/san.rdf#> .
     @prefix swrl: <http://www.w3.org/2003/11/swrl#> .
     @prefix swrlb: <http://www.w3.org/2003/11/swrlb#> .
     @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
     @prefix xsp: <http://www.owl-ontologies.com/2005/08/07/xsp.owl#> .
        
    
    :RootGoal_1     a san:RootGoal;
         san:name "g1"^^xsd:string;
         san:hasSituation :Situation_1;
         san:hasContextCondition :ContextCondition_1;
         san:hasAction :Composite_Action_1 .
    
    :Situation_1     a san:Situation ;
        san:name "s1"^^xsd:string ;
		san:dialect "EP-SPARQL"^^xsd:string ;
		san:defined-by "+++++++++++++++++++++++++"^^xsd:string .
    
    :ContextCondition_1     a san:ContextCondition;
        san:name "c1"^^xsd:string ;
		san:dialect "default"^^xsd:string ;
		san:defined-by "true"^^xsd:string .
	
#	:Composite_Action_1	a	san:SequenceAction ;
#	:Composite_Action_1	a	san:SelectorAction ;
#		san:name "a composite action"^^xsd:string ;
#		san:selection-method "SEQUENTIAL"^^xsd:string ;
#		san:hasAction :Dummy_Action_1 .
	
#	:Composite_Action_1	a	san:ParallelAnyAction ;
#	:Composite_Action_1	a	san:ParallelAllAction ;
	:Composite_Action_1	a	san:ParallelTimeoutAction ;
		san:name "a parallel composite action"^^xsd:string ;
		san:timeout "5000"^^xsd:string ;		# timeout in millis
		san:hasAction :Dummy_Action_1 ;
		san:hasAction :Dummy_Action_2 ;
		san:hasAction :Dummy_Action_3 .
	
    :Dummy_Action_1     a san:PrimitiveAction ;
      san:name "dummy-action-ONE"^^xsd:string ;
	  san:order "1"^^xsd:integer ;
	  san:nextAction :Dummy_Action_2 ;
	  san:command "DELAY 2 FAILURE"^^xsd:string .
	
    :Dummy_Action_2     a san:PrimitiveAction ;
      san:name "dummy-action-TWO"^^xsd:string ;
	  san:order "1"^^xsd:integer ;
	  san:nextAction :Dummy_Action_3 ;
	  san:command "DELAY 4 "^^xsd:string .
	
    :Dummy_Action_3     a san:PrimitiveAction ;
      san:name "dummy-action-THREE"^^xsd:string ;
	  san:order "1"^^xsd:integer ;
	  san:command "DELAY 6 "^^xsd:string .
    
#END
