@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix :      <http://www.w3.org/2009/sparql/docs/tests/data-sparql11/add/manifest#> .
@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#> .
@prefix ut:    <http://www.w3.org/2009/sparql/tests/test-update#> .
@prefix dawgt: <http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#> .

<>  rdf:type mf:Manifest ;
    rdfs:label "Add" ;
    mf:entries
    ( 
    :add01
    :add02
    :add03
    :add04
    :add05
    :add06
    :add07
    :add08
    ) .

:add01 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 1" ;
    rdfs:comment "Add the default graph to an existing graph" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-01.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-post.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] .

:add02 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 2" ;
    rdfs:comment "Add the default graph to a non-existing graph" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-01.ru> ;
                ut:data <add-default.ttl> ;
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-default.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] .

:add03 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 3" ;
    rdfs:comment "Add a named graph to an existing graph" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-03.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ] ;
                ut:graphData [ ut:graph <add-02-pre.ttl> ;
                               rdfs:label "http://example.org/g2" ]
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ] ;
                ut:graphData [ ut:graph <add-02-post.ttl> ;
                               rdfs:label "http://example.org/g2" ]
              ] .

:add04 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 4" ;
    rdfs:comment "Add a named graph to a non-existing graph" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-03.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ] ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g2" ]
              ] .

:add05 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 5" ;
    rdfs:comment "Add a named graph to an existing graph with overlapping data" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-05.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ] ;
                ut:graphData [ ut:graph <add-03-pre.ttl> ;
                               rdfs:label "http://example.org/g3" ]
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ] ;
                ut:graphData [ ut:graph <add-03-post.ttl> ;
                               rdfs:label "http://example.org/g3" ]
              ] .

:add06 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 6" ;
    rdfs:comment "Add a non-existing graph to an existing graph" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-06.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] .

:add07 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 7" ;
    rdfs:comment "Add an existing graph to the default graph" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-07.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] ;
    mf:result [ ut:data <add-01-post.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] .

:add08 rdf:type mf:UpdateEvaluationTest ;
    mf:name "ADD 8" ;
    rdfs:comment "Add a graph to itself" ;
    dawgt:approval dawgt:Approved;
    dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-02-07#resolution_3> ;
    mf:action [ ut:request <add-08.ru> ;
                ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] ;
    mf:result [ ut:data <add-default.ttl> ;
                ut:graphData [ ut:graph <add-01-pre.ttl> ;
                               rdfs:label "http://example.org/g1" ]
              ] .
