#  Licensed to the Apache Software Foundation (ASF) under one or more
#  contributor license agreements.  See the NOTICE file distributed with
#  this work for additional information regarding copyright ownership.
#  The ASF licenses this file to You under the Apache License, Version 2.0
#  (the "License"); you may not use this file except in compliance with
#  the License.  You may obtain a copy of the License at
# 
#       http://www.apache.org/licenses/LICENSE-2.0
# 
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf:     <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt:     <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .

<>  rdf:type    mf:Manifest ;
    rdfs:label  "OPTIONAL" ;
    mf:entries
    (
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "One optional clause" ;
       mf:action
            [ qt:query  <opt-01.rq> ;
              qt:data   <data.ttl> ] ;
        mf:result  <opt-01.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional clauses" ;
       mf:action
            [ qt:query  <opt-02.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-02.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Nested optional clauses (simple)" ;
       mf:action
            [ qt:query  <opt-03.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-03.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "One optional, no fixed clause." ;
       mf:action
            [ qt:query  <opt-04.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-04.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional, no fixed clause (1)" ;
       mf:action
            [ qt:query  <opt-05.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-05.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional, no fixed clause (2)" ;
       mf:action
            [ qt:query  <opt-06.rq> ;
              qt:data   <data.ttl> ] ;
        mf:result  <opt-06.srx>
     ]

     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional, no fixed clause, nested (1)" ;
       mf:action
            [ qt:query  <opt-07.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-07.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional, no fixed clause, nested (2)" ;
       mf:action
            [ qt:query  <opt-08.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-08.srx>
     ]
## Space for a test
##      [ rdf:type mf:QueryEvaluationTest ;
##        mf:name "Two optional, fixed clause, free opt var" ;
##        mf:action
##             [ qt:query  <opt-09.rq> ;
##               qt:data   <data.ttl> ] ;
##        mf:result  <opt-09.srx>
##      ]

     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional sequential clauses (1)" ;
       mf:action
            [ qt:query  <opt-10.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-10.srx>
     ]
     [ rdf:type mf:QueryEvaluationTest ;
       mf:name "Two optional sequential clauses (2)" ;
       mf:action
            [ qt:query  <opt-11.rq> ;
              qt:data   <data.ttl> ] ;
       mf:result  <opt-11.srx>
     ]
   ).
