Ticket #115 (new enhancement)
automatically import XQuery modules
| Reported by: | frabe | Owned by: | vzholudev |
|---|---|---|---|
| Priority: | minor | Milestone: | Release v0.2 |
| Component: | TNTBase | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Due to close: | YYYY/MM/DD | Include in GanttChart: | no |
| Dependencies: | Due to assign: | YYYY/MM/DD |
Description (last modified by frabe) (diff)
It should be possible to send queries of the form http://alpha.tntbase.mathweb.org:8080/tntbase/cds/restful/query?query=Q&import=tntbase:/admin/mmt.xq
This should be the same as POSTing
import module namespace mmt = 'http://omdoc.org/ns' at 'tntbase:/admin/mmt.xq'; Q
Then I could send very short queries that only call my custom XQuery functions via GET.
Change History
comment:2 Changed 2 years ago by vzholudev
- Priority changed from blocker to major
- Milestone set to Release v0.2
what about namespace then?
comment:3 Changed 2 years ago by frabe
True.
Maybe this http://alpha.tntbase.mathweb.org:8080/tntbase/cds/restful/query/mmt?query=mmt:getNotation
and another configuration file <modules>
<module name="mmt" path=" tntbase:/admin/mmt.xq" namespace="mmt"/>
</modules>
This has the nice effect that users could write XQuery functions and then expose them nicely as URIs. Then people whoe don't know XQuery could use those queries.
comment:4 Changed 2 years ago by vzholudev
- Priority changed from major to minor
Effect is indeed kinda nice, but it brings a couple of complications in general case. Moreover, it will spend my time in implementing features that are not related to research. When I will be procrastinating, I will recall this ticket, though :)
