简体   繁体   English

Marklogic Web界面更新xml文档

[英]Marklogic web interface update xml documents

What is a good approach to building a web interface for updating xml documents in a marklogic database. 有什么好的方法来构建用于更新marklogic数据库中xml文档的Web界面。 I came across roxy, which is a ruby gem for configuring and deploying marklogic applications, but after playing around with for a while it seemed that it was more helpful for querying and displaying data rather than updating documents. 我遇到过roxy,它是用于配置和部署marklogic应用程序的红宝石,但是玩了一段时间后,似乎它对查询和显示数据比更新文档更有用。

The MarkLogic REST API is a good place to start. MarkLogic REST API是一个不错的起点。 That gives you a lot of control over the documents, including the ability to update them, while working with the language of your choice. 这样一来,您就可以使用自己选择的语言,对文档进行很多控制,包括更新文档的能力。

Roxy is also a framework that allows you to: - use/extend MarkLogic's REST API - use Roxy's REST API - with CRUD rewrite rules in place for you to map to your controllers - The mVCframework itself is also neatly organized and not overly complicated. Roxy还是一个框架,允许您:-使用/扩展MarkLogic的REST API-使用Roxy的REST API-使用适当的CRUD重写规则以映射到您的控制器-mVCframework本身也井井有条,并且没有过于复杂。 We use it quite a bit. 我们经常使用它。

So, if you do CRUD via MarkLogic's REST api or Roxy or any other, none of these actually give you a frontend of their own. 因此,如果您通过MarkLogic的REST api或Roxy或任何其他方法进行CRUD,则这些方法实际上都无法为您提供前端。

Our usual formula is a 2-tier solution using Roxy within the MarkLogic app server that also serves the front-end code written in AngularJS. 我们通常的公式是在MarkLogic应用服务器中使用Roxy的2层解决方案,该解决方案还提供用AngularJS编写的前端代码。 Then everything is managed under Roxy nicely. 然后一切都在Roxy下很好地管理。

If you are interested in samplle 3-tier apps with CRUD support, have a look at github and search for samplestack. 如果您对具有CRUD支持的示例3层应用程序感兴趣,请查看github并搜索samplestack。 It's a set of reference frameworks for MarkLogic. 它是MarkLogic的一组参考框架。 It's for MarkLogic 8, but it may give you some ideas.. 它用于MarkLogic 8,但可能会给您一些想法。

With Marklogic 8 you can use the new Node.js client + eg Express (a small web framework). 借助Marklogic 8,您可以使用新的Node.js客户端+例如Express(小型Web框架)。 If you like mainstream development, this seems the best way now. 如果您喜欢主流开发,那么这似乎是最好的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM