Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Support for BaseX and MarkLogic #2

Open
cfoster opened this issue Dec 10, 2018 · 4 comments
Open

RFE: Support for BaseX and MarkLogic #2

cfoster opened this issue Dec 10, 2018 · 4 comments

Comments

@cfoster
Copy link

cfoster commented Dec 10, 2018

Both BaseX and MarkLogic support invoking XSLT 2.0 as well as having a rich set of proprietary functions to do stuff with. It would be really awesome if this library could be used on BaseX, MarkLogic as well as eXist.

BaseX supports RESTXQ fully and MarkLogic does too with XQRS.

You could put all proprietary calls in a Module Library which could be switched by different vendors perhaps.

@simar0at
Copy link

We do use BaseX a lot ourselves here at the ACDH. We did not try to use this module in BaseX yet. There are some query optimization and locking issues with BaseX that one needs to look into before getting to excited about this code.

@dasch124
Copy link
Member

Hi, I've thought of BaseX, since we are using that in several projects, too. I have no experience with MarkLogic, so I’d have to look into that.

@cfoster
Copy link
Author

cfoster commented Dec 10, 2018

OpenAPI / Swagger is going to be a big thing. Generating Swagger documentation from XQuery code with RESTXQ Annotations would be really great. I think there is definitely scope for this to be a cross database project, supporting eXist, BaseX and MarkLogic.

XQRS 100% supports the RESTXQ specification and the parts where it goes above and beyond the specification, it does so inline with how BaseX operates too, e.g. Paths with Regular Expressions.

If there are any locking issues with BaseX I'm sure @ChristianGruen would be happy to help. Likewise if there are any issues with XQRS I can resolve them quickly.

@simar0at
Copy link

This locking issues are not bugs. It is just hard to get locking right. BaseX has a better safe than sorry approach here and locks everything if it cannot determine what exactly needs to be locked. That can limit the usefulness of a generic add on module. Most probably this is not an issue here but I would need to check if it interferes with my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants