X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=blobdiff_plain;f=src%2Ftest_sparql.c;h=963667fd89ff27907688d77225a73d599e3093bd;hp=718f9f734b5c4ff4c38389db392e8d6099aeaf8d;hb=a0884c6c35bc62160b6ce6100a4e8ad2d15ab937;hpb=c30ad7a532b4384a50c5036f5b289d36d06fdb24 diff --git a/src/test_sparql.c b/src/test_sparql.c index 718f9f7..963667f 100644 --- a/src/test_sparql.c +++ b/src/test_sparql.c @@ -372,6 +372,7 @@ static void tst1(void) static void tst2(void) { yaz_sparql_t s = yaz_sparql_create(); + yaz_sparql_t s2 = yaz_sparql_create(); yaz_sparql_add_pattern(s, "prefix", "rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns"); @@ -445,10 +446,14 @@ static void tst2(void) " OPTIONAL { ?inst bf:heldBy ?lib } .\n" " ?work bf:creator/bf:label ?v0 " "FILTER(contains(?v0, \"london\"))\n" + + "}\n")); + yaz_sparql_include(s2, s); + YAZ_CHECK(test_query( - s, "@or @and @attr 1=bf.creator a @attr 1=bf.title b @attr 1=bf.title c", + s2, "@or @and @attr 1=bf.creator a @attr 1=bf.title b @attr 1=bf.title c", "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" @@ -473,6 +478,7 @@ static void tst2(void) "}\n" )); + yaz_sparql_destroy(s2); yaz_sparql_destroy(s); }