Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-17 Thread Kari Cowan
Sure, in the same return, I am getting back 2 HTML elements. So the first one is the one I want to keep. The 2nd one I would like to do away with entirely. At the least to remove all child elements and I could strip the rest on the frontend if I had to. Here’s a pared-down example of the H

Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-17 Thread Justin Makeig
The general way to recursively transform one node tree to another in XQuery is via recursive descent . I can't quite tell from your description what your transformation needs to do, though. "Strip ou

[MarkLogic Dev General] Using RegEx in xQuery

2017-03-17 Thread Kari Cowan
Inside my return for a query, I have an HTML node that I don’t need that includes a bunch of child elements -- I want to strip out everything in between; alternately I could be happy to remove the node entirely from the returned data. Is there a function for that I don’t know about or is th is

Re: [MarkLogic Dev General] Error 500 when queryinq with Curl

2017-03-17 Thread Geert Josten
Hi Ghislain, You probably want to add a database parameter, pointing to the content database you’d like to query. Or use a rest-api instance linked to that content database directly, running on a different port. App-services (which runs on 8000) is linked to the Documents database, which out of

[MarkLogic Dev General] Error 500 when queryinq with Curl

2017-03-17 Thread Ghislain Atemezing-Pro
Hi all? I am trying to run a SPARQL query using Curl in my endpoint. I am doing the following: curl --anyauth -u user:password -H "Content-type: application/sparql-query" -H "Accept: application/sparql-results+xml" --data-binary '@./q1.rq' http://localhost:8000/v1/graphs/sparql But I receive bac

Re: [MarkLogic Dev General] General Digest, Vol 153, Issue 19

2017-03-17 Thread Shiv Shankar
Hi Greet, First thing is it is in dateTime. I tried with another field that has date only. Same issue with the below query as it is fetching all records that are not matching also. I tested with LT, LS. No difference. Secondly, tried extracting only first 10 digits to compare the date only out of d