From 19be771e2325173d022b51b463286585902c92d1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 28 Apr 2015 14:42:17 +0200 Subject: [PATCH] Fix make check fails in src MPSPARQL-14 --- src/test_sparql.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/test_sparql.c b/src/test_sparql.c index 3590f9b..4244844 100644 --- a/src/test_sparql.c +++ b/src/test_sparql.c @@ -73,10 +73,7 @@ static void tst1(void) "bf: "); yaz_sparql_add_pattern(s, "prefix", "gs: http://gs.com/panorama/domain-model"); - yaz_sparql_add_pattern(s, "field.title", "?title"); - yaz_sparql_add_pattern(s, "field.author", "?author"); - yaz_sparql_add_pattern(s, "field.description", "?description"); - yaz_sparql_add_pattern(s, "field.instanceTitle", "?ititle"); + yaz_sparql_add_pattern(s, "form", "SELECT ?title ?author ?description ?ititle"); yaz_sparql_add_pattern(s, "criteria", "?work a bf:Work"); yaz_sparql_add_pattern(s, "criteria", "?work bf:workTitle/bf:titleValue ?title"); yaz_sparql_add_pattern(s, "criteria", "?work bf:creator/bf:label ?author"); @@ -112,7 +109,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -132,7 +128,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -152,7 +147,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -173,7 +167,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -198,7 +191,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -228,7 +220,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -255,7 +246,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -280,7 +270,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -301,7 +290,6 @@ static void tst1(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -329,10 +317,7 @@ static void tst2(void) "bf: "); yaz_sparql_add_pattern(s, "prefix", "gs: http://gs.com/panorama/domain-model"); - yaz_sparql_add_pattern(s, "field.title", "?title"); - yaz_sparql_add_pattern(s, "field.author", "?author"); - yaz_sparql_add_pattern(s, "field.description", "?description"); - yaz_sparql_add_pattern(s, "field.instanceTitle", "?ititle"); + yaz_sparql_add_pattern(s, "form", "SELECT ?title ?author ?description ?ititle"); yaz_sparql_add_pattern(s, "criteria", "?work a bf:Work"); yaz_sparql_add_pattern(s, "criteria", "?work bf:workTitle/bf:titleValue ?title"); yaz_sparql_add_pattern(s, "criteria", "?work bf:creator/bf:label ?author"); @@ -368,7 +353,6 @@ static void tst2(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -388,7 +372,6 @@ static void tst2(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" @@ -407,7 +390,6 @@ static void tst2(void) "PREFIX rdf: \n" "PREFIX bf: \n" "PREFIX gs: \n" - "\n" "SELECT ?title ?author ?description ?ititle\n" "WHERE {\n" " ?work a bf:Work .\n" -- 1.7.10.4