BaseX

Remove duplicates from return XQuery

倾然丶 夕夏残阳落幕 提交于 2020-08-07 06:51:32
问题 My XQuery is: declare namespace xsd="http://www.w3.org/2001/XMLSchema"; for $schema in xsd:schema for $nodes in $schema//*, $attr in $nodes/xsd:element/@name where fn:contains($attr,'city') return $attr return: name="city" name="city" name="city" name="city" name="city" When I add distinct-values like: declare namespace xsd="http://www.w3.org/2001/XMLSchema"; for $schema in xsd:schema for $nodes in $schema//*, $attr in $nodes/xsd:element/@name where fn:contains($attr,'city') return distinct

Write directly to file from BaseX GUI

孤街醉人 提交于 2020-08-04 17:18:36
问题 I wrote an XQuery expression that has a large result of about 50MB and takes a couple of hours to compute. I execute it in the BaseX GUI, but this is a little inconvenient: it crops the result to a result window, which I then have to save. At this time, BaseX becomes unresponsive and may crash. Is there a way to directly write the result to a file? 回答1: Have a look at BaseX' file module, which provides broad functionality to read and write from files and traverse the file system. For you,

Write directly to file from BaseX GUI

折月煮酒 提交于 2020-08-04 17:15:48
问题 I wrote an XQuery expression that has a large result of about 50MB and takes a couple of hours to compute. I execute it in the BaseX GUI, but this is a little inconvenient: it crops the result to a result window, which I then have to save. At this time, BaseX becomes unresponsive and may crash. Is there a way to directly write the result to a file? 回答1: Have a look at BaseX' file module, which provides broad functionality to read and write from files and traverse the file system. For you,

Write directly to file from BaseX GUI

北城余情 提交于 2020-08-04 17:15:02
问题 I wrote an XQuery expression that has a large result of about 50MB and takes a couple of hours to compute. I execute it in the BaseX GUI, but this is a little inconvenient: it crops the result to a result window, which I then have to save. At this time, BaseX becomes unresponsive and may crash. Is there a way to directly write the result to a file? 回答1: Have a look at BaseX' file module, which provides broad functionality to read and write from files and traverse the file system. For you,

basex/rest - blog complete app

与世无争的帅哥 提交于 2020-07-22 20:23:48
问题 As part of a project, I am to implement the blog-application mentioned on this site: https://github.com/siserle/blog-example There is absolutely no direction being provided as what I must do and I am not sure where to start. Can someone who is familiar with this type of application please let me know what steps I need to take. I am specifically supposed to implement the blog-complete section. The blog-complete.xqm is found the restxq folder, and it has a lot of code. I am not sure what I need

How do I use RESTXQ with BaseX for a simple web app?

耗尽温柔 提交于 2020-07-22 12:19:12
问题 I'm trying to create a really basic web app that lets a user upload an xml file with a form, runs an XQuery script which I already have written as a function, and returns the result. I have BaseX running on Tomcat, but for the life of my I cannot understand RESTXQ even though I have a lot of experience with complex XQuery scripts. The BaseX documentation has been no help (http://docs.basex.org/wiki/RESTXQ). What is the basic architecture? From what I can see, its all keyed on this restxq.xqm

How do I use RESTXQ with BaseX for a simple web app?

Deadly 提交于 2020-07-22 12:19:12
问题 I'm trying to create a really basic web app that lets a user upload an xml file with a form, runs an XQuery script which I already have written as a function, and returns the result. I have BaseX running on Tomcat, but for the life of my I cannot understand RESTXQ even though I have a lot of experience with complex XQuery scripts. The BaseX documentation has been no help (http://docs.basex.org/wiki/RESTXQ). What is the basic architecture? From what I can see, its all keyed on this restxq.xqm

Is there a way to make BaseX serve an HTML document?

人盡茶涼 提交于 2020-07-21 03:23:05
问题 Is there a way to make BaseX's HTTP server serve an HTML document stored either in the db as a raw resource or in the file system, with a text/html content type, so it can be displayed in a browser? The document is a web page that does XHR requests to BaseX. Currently, I load it on the browser through the file protocol. This necessitates making Jetty to respond with CORS headers, or else the same origin policy blocks the XHR requests. However, this is a maintenance burden. Every update to

BaseX RESTXQ “hello world” example

让人想犯罪 __ 提交于 2020-06-26 05:57:44
问题 I'm strugging to get started with the BaseX RESTXQ API. I've downloaded and installed the latest version of BaseX for Windows. I have started the BaseX Server by clicking the "BaseX Server (Start)" icon that the BaseX installation adds to the Windows Start menu. It appears that I need to create a file with an .xqm extension (eg. hello.xqm ) and put it somewhere. Do you have a minimal "hello world" type example file eg. hello.xqm to get me started? Where should I put the hello.xqm file so it

联瑞揭秘新款100G以太网卡神秘面纱

隐身守侯 提交于 2020-05-09 21:36:39
随着网络直播、在线办公、高清电影观看等用户体验需求日益高涨,市场主流的千兆端口网卡已无法满足部分用户对于网速的要求,尽管用户可以采用万兆网卡来提供更高的带宽,但万兆网卡价格昂贵,且极易造成网络数据带宽资源浪费,所以无法成为部分用户改善网速的首选。为解决这一问题,业界提出采用2.5G网卡来满足部分用户对网速的需求。 从传输速率上来说,2.5G网卡是千兆网卡速度的2.5倍,能够在很大程度上解决部分用户对于网速的高标准要求。基于这一市场需求,联瑞电子研发团队日夜攻坚,在近期隆重推出一款自主研发的电竞级2.5G单电口以太网卡。型号:LRES2022PT。 2.5G以太网卡支持高性能的双通道网络和全双工通信,与现有的以太网兼容,免除设备更换与网线更改的繁琐与高成本。同时,该网卡支持2500BASE-X,SGMII+和USXGMII(2.5G)借口的物理层收发器,是路由器、交换机和其他通信网络设备的理想选择。 联瑞2.5G以太网卡具有实时处理高优先级程序封包、提升数据传输处理效率等需求,不但满足电竞发烧友的竞技爱好,在企业内部数据传输处理和家庭多台网络设备下载文档等应用中都具有优异表现,支持市面上主流的Windows XP, Win7 ,Win8,Win10等操作系统。 来源: oschina 链接: https://my.oschina.net/u/4342884/blog/4272165