projects
/
mp-sparql-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c835a3a
)
MPSPARQL-21: Add %t for unquoted expansion
author
Heikki Levanto
<heikki@indexdata.dk>
Fri, 8 May 2015 12:14:41 +0000
(14:14 +0200)
committer
Heikki Levanto
<heikki@indexdata.dk>
Fri, 8 May 2015 12:14:41 +0000
(14:14 +0200)
src/sparql.c
patch
|
blob
|
history
diff --git
a/src/sparql.c
b/src/sparql.c
index
c738e5d
..
0f38d57
100644
(file)
--- a/
src/sparql.c
+++ b/
src/sparql.c
@@
-165,6
+165,21
@@
static int z_term(yaz_sparql_t s, WRBUF addinfo, WRBUF res, WRBUF vars,
}
wrbuf_puts(addinfo, ">");
break;
+ case 't':
+ switch (term->which)
+ {
+ case Z_Term_general:
+ wrbuf_json_write(addinfo,
+ term->u.general->buf, term->u.general->len);
+ break;
+ case Z_Term_numeric:
+ wrbuf_printf(addinfo, ODR_INT_PRINTF, *term->u.numeric);
+ break;
+ case Z_Term_characterString:
+ wrbuf_json_puts(addinfo, term->u.characterString);
+ break;
+ }
+ break;
case 'd':
switch (term->which)
{