#  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 : <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/manifest#> .
@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
@prefix dawgt:  <http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#> .
@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:comment "Some DAWG test cases on the CONSTRUCT result form" ;
    mf:entries
    ( 
      :construct-1
      :construct-2
      :construct-3
      :construct-4
      :construct-5
    ) .

:construct-1 rdf:type mf:QueryEvaluationTest ;
    mf:name    "dawg-construct-identity" ;
    qt:queryForm qt:QueryConstruct ;
    rdfs:comment "Graph equivalent result graph" ;
    dawgt:approval dawgt:Approved ;
    dawgt:approvedBy <http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes> ;
    mf:action
            [ qt:query  <query-ident.rq> ;
              qt:data   <data-ident.ttl> ] ;
    mf:result  <result-ident.ttl> ;
    .

:construct-2 rdf:type mf:QueryEvaluationTest ;
    mf:name    "dawg-construct-subgraph" ;
    qt:queryForm qt:QueryConstruct ;
    rdfs:comment "Result subgraph of original graph" ;
    dawgt:approval dawgt:Approved ;
    dawgt:approvedBy <http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes> ;
    mf:action
            [ qt:query  <query-subgraph.rq> ;
              qt:data   <data-ident.ttl> ] ;
    mf:result  <result-subgraph.ttl> ;
    .

:construct-3 rdf:type mf:QueryEvaluationTest ;
     mf:name    "dawg-construct-reification-1" ;
    qt:queryForm qt:QueryConstruct ;
     rdfs:comment "Reification of the default graph" ;
    dawgt:approval dawgt:Approved ;
    dawgt:approvedBy <http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes> ;
     mf:action
            [ qt:query  <query-reif-1.rq> ;
              qt:data   <data-reif.ttl> ] ;
     mf:result  <result-reif.ttl> ;
    .

:construct-4 rdf:type mf:QueryEvaluationTest ;
     mf:name    "dawg-construct-reification-2" ;
    qt:queryForm qt:QueryConstruct ;
     rdfs:comment "Reification of the default graph" ;
    dawgt:approval dawgt:Approved ;
    dawgt:approvedBy <http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes> ;
     mf:action
            [ qt:query  <query-reif-2.rq> ;
              qt:data   <data-reif.ttl> ] ;
     mf:result  <result-reif.ttl> ;
    .

:construct-5 rdf:type mf:QueryEvaluationTest ;
     mf:name    "dawg-construct-optional" ;
    qt:queryForm qt:QueryConstruct ;
     rdfs:comment "Reification of the default graph" ;
    dawgt:approval dawgt:Approved ;
    dawgt:approvedBy <http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes> ;
     mf:action
            [ qt:query  <query-construct-optional.rq> ;
              qt:data   <data-opt.ttl> ] ;
     mf:result  <result-construct-optional.ttl> ;
    .
