projects
/
mp-sparql-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Towards LOC-7: Experiments in expanding works
[mp-sparql-moved-to-github.git]
/
src
/
sparql.c
diff --git
a/src/sparql.c
b/src/sparql.c
index
e551ead
..
3744fe6
100644
(file)
--- a/
src/sparql.c
+++ b/
src/sparql.c
@@
-322,7
+322,11
@@
int yaz_sparql_from_rpn_stream(yaz_sparql_t s,
{
;
}
{
;
}
- else if (!strncmp(e->pattern, "field", 5))
+ else if (!strcmp(e->pattern, "form"))
+ {
+ ;
+ }
+ else if (!strcmp(e->pattern, "modifier"))
{
;
}
{
;
}
@@
-331,17
+335,14
@@
int yaz_sparql_from_rpn_stream(yaz_sparql_t s,
errors++;
}
}
errors++;
}
}
- pr("\n", client_data);
- pr("SELECT", client_data);
for (e = s->conf; e; e = e->next)
{
for (e = s->conf; e; e = e->next)
{
- if (!strncmp(e->pattern, "field", 5))
+ if (!strcmp(e->pattern, "form"))
{
{
- pr(" ", client_data);
pr(e->value, client_data);
pr(e->value, client_data);
+ pr("\n", client_data);
}
}
}
}
- pr("\n", client_data);
pr("WHERE {\n", client_data);
for (e = s->conf; e; e = e->next)
{
pr("WHERE {\n", client_data);
for (e = s->conf; e; e = e->next)
{
@@
-398,6
+399,15
@@
int yaz_sparql_from_rpn_stream(yaz_sparql_t s,
wrbuf_destroy(vars);
}
pr("\n}\n", client_data);
wrbuf_destroy(vars);
}
pr("\n}\n", client_data);
+
+ for (e = s->conf; e; e = e->next)
+ {
+ if (!strcmp(e->pattern, "modifier"))
+ {
+ pr(e->value, client_data);
+ pr("\n", client_data);
+ }
+ }
yaz_tok_cfg_destroy(cfg);
return errors ? -1 : r;
yaz_tok_cfg_destroy(cfg);
return errors ? -1 : r;