Re: [MarkLogic Dev General] xdmp:parse-dateTime

2017-04-11 Thread Geert Josten
The parse-dateTime function will parse dates before the start of the gregorian calendar, but it won’t really be a gDate. For instance: xdmp:parse-dateTime('[D1] [MN] [Y001]', '15 OCTOBER 1582') - xs:dayTimeDuration("P1D") returns 1582-10-14, but officially there was a jump from oct 4 on the Jul

Re: [MarkLogic Dev General] xdmp:parse-dateTime

2017-04-11 Thread John Snelson
That is the start of the Gregorian calendar: https://en.wikipedia.org/wiki/1582 You can't use Gregorian calendar based functionality to handle dates before that calendar began. If this is really a requirement, you'll probably know enough about older calendars to write your own date handling rou

[MarkLogic Dev General] Trying to find equivalent to MongoDB aggregate( match -> project[include] -> project[exclude] -> unwind )

2017-04-11 Thread John Muehlhausen
I have a MarkLogic solution in server-side JavaScript but I'm thinking there must be a better way? The document is in a bitemporal store called "zzz". I want to do the following: Search documents in both the "zzz" and "latest" collections (i.e. the most recent version of "zzz"). Find the docume

Re: [MarkLogic Dev General] xdmp:parse-dateTime

2017-04-11 Thread Florent Georges
You should be OK with xs:date (using ISO format). On 11 Apr 2017 19:31, "Oleksii Segeda" wrote: > Hi everyone, > > > > The docs says that xdmp:parse-dateTime will not return the correct > dateTime value for dates before October 15, 1582. What should I use for > dates before October 15, 1582? > >

[MarkLogic Dev General] xdmp:parse-dateTime

2017-04-11 Thread Oleksii Segeda
Hi everyone, The docs says that xdmp:parse-dateTime will not return the correct dateTime value for dates before October 15, 1582. What should I use for dates before October 15, 1582? Regards, Oleksii Segeda IT Analyst Information and Technology Solutions [http://siteresources.worldbank.org/N

Re: [MarkLogic Dev General] Regarding Text File

2017-04-11 Thread Geert Josten
Hi Siva, Simplest would be to store them as binary nodes. That causes them to get excluded from universal index, but with files that big that might just be what you need.. Kind regards, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of "Mani, Sivasubramani (ELS)" mai

[MarkLogic Dev General] Regarding Text File

2017-04-11 Thread Mani, Sivasubramani (ELS)
Hi Team, Text files have the limit of 64MB in Mark Logic , how I handle the text files larger than 64 MB ? Kindly do the needful. Thanks & Regards, Siva ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://deve

[MarkLogic Dev General] deleting triples node using REST API

2017-04-11 Thread Rajesh Kumar
Hi Team, Is there a way to delete a set of triples based on IRI of subject,predicate or object in REST API. We have graph delete where it deletes all the triples. Below XQuery is working as expected XQuery: let $triples := cts:triples( sem:iri("http://www.sample.org/ABC#master";),sem:iri(" ht