[MarkLogic Dev General] Access package.json from a JavaScript file

2018-04-05 Thread Florent Georges
, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-04-05 Thread Florent Georges
does, and it proved to make a few problems easier to solve that way. So we have something PROV-compatible now (so most likely we'll use actual PROV triples), and yes, we use TDE to project the semantic layer on top of the canonical entities ;-) Thank you, -- Florent Georges H2O Consulting http

Re: [MarkLogic Dev General] How to import xar files in MarkLogic

2018-04-01 Thread Florent Georges
said, I don't think there is any implementation of the EXPath Crypto spec that does not depend on extensions from other products (BaseX, Saxon or eXist). If you found one, I would appreciate if you could share it here :-) Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 15 March

Re: [MarkLogic Dev General] Regarding EXpath crypto

2018-04-01 Thread Florent Georges
Hi Siva, I am not aware of any implementation of EXPath Crypto for MarkLogic. I think there is one for BaseX, one for eXist, it might be implemented in Saxon as well, but I do not think there is one for MarkLogic, sadly. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 12

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-03-23 Thread Florent Georges
al metadata (ref-1, ref-2, ref-3...) Have I forgot anything? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 22 March 2018 at 21:09, David Gorbet wrote: > What is the actual business meaning of the relationships between the > documents? And is there something in the docu

[MarkLogic Dev General] Using metadata to store references to several other docs?

2018-03-22 Thread Florent Georges
separator, and have TDE to expose as many triples as there are URIs. But I am not definitely sure I can access metadata in TDE (and loop over tokenize($value, '|') to create several triples). Am I missing anything obvious? Regards, -- Florent Georges H2O Consulting http://h2o.

Re: [MarkLogic Dev General] Importing a module from another imported module

2018-03-19 Thread Florent Georges
gt; ('variable1', 'variable2') Not that it is a recommended practice though. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 19 March 2018 at 16:07, Ron Hitchens <r...@ronsoft.com> wrote: > >Each module should have a unique namespace. > > > Ron Hitchens r...@over

[MarkLogic Dev General] Typo in doc

2018-03-18 Thread Florent Georges
Hi, In https://docs.marklogic.com/guide/jsref/api#id_19160 (section "Node Object for XML Nodes"), the table says "localname" instead of "localName" (with an uppercase "N"). Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___

[MarkLogic Dev General] Access op:* operators as functions from SJS

2018-03-16 Thread Florent Georges
Hi, Are the XPath and XQuery operators (defined in F as functions in the op:* namespace) available as actual function from SJS? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com

Re: [MarkLogic Dev General] Query Console and Database Browsing

2018-03-10 Thread Florent Georges
dea of how it lets you browse documents and collections in a "directory-like fashion" (exposes document URIs as if they were composed of directories, e.g. using the delimiter "/"). You can also browse triples with the same tools. Feedback welcome :-) Regards, -- Flore

Re: [MarkLogic Dev General] Serialization encoding, SJS

2018-02-18 Thread Florent Georges
Well, yes, as simple as that :-) Thank you! -- Florent Georges H2O Consulting http://h2o.consulting/ On 15 February 2018 at 15:50, Christopher Hamlin wrote: > Maybe http://docs.marklogic.com/xdmp.setResponseEncoding > > > On Thu, Feb 15, 2018 at 4:09 AM, Florent Georges <li.

[MarkLogic Dev General] Serialization encoding, SJS

2018-02-15 Thread Florent Georges
Hi, I am using SJS, and I would like to set the encoding used for serializing the response (a bit like xdmp:output or output:* for XQuery). Extra points if it is possible to use it "dynamically" (e.g. depending on an if/then/else condition). Any idea? Regards, -- Florent G

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread Florent Georges
Just in case, you can confirm that the node you are about to delete is indeed from a stored document with something like the following : xdmp:log(fn:document-uri(fn:root($node))) -- Florent Georges H2O Consulting http://h2o.consulting/ On 31 Jan 2018 18:47, "Lanz" <lancelot.meuril

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread Florent Georges
Salut Lancelot, I might have missed it, but what is the exact symptom? Any error message? Have you tried the "real" script through QConsole? Any chance you simplify it and post it here? More pairs of eyes might catch something you missed... Regards, -- Florent Georges H2O Consu

Re: [MarkLogic Dev General] Exit query without writing to error log?

2018-01-24 Thread Florent Georges
Hi Evan, The error is logged only if it "reaches the top", that is, if it is not caught. If the error shouldn't behave as such, can't you just catch it before? (and yes, potentially return wathever HTTP response you deem appropriate). Regards, -- Florent Georges H2O Consu

[MarkLogic Dev General] Rewriter - match-path - regex sub-matches not set

2017-12-11 Thread Florent Georges
: [Event:id=debug] 0: , 1: , 2: I feel like I am missing the obvious here. Any idea? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http

Re: [MarkLogic Dev General] DB modifications and try/catch

2017-12-11 Thread Florent Georges
block, and on exiting the block we use either the new copy, or the old one in case of an error... Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 11 December 2017 at 16:27, Mary Holstege wrote: > > Updates within the body of the try will be abandoned; updates

[MarkLogic Dev General] DB modifications and try/catch

2017-12-11 Thread Florent Georges
'Caught error in main module' }, local:side-effect('after') Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] How to query metadata

2017-12-07 Thread Florent Georges
. Ot is it more like a non-intrusive envelope pattern (it does not modify the content itself), not requiring new fragments (like doc properties), but having to be indexed one by one explicitly? Anyway, thank you for your answer! Regards, -- Florent Georges H2O Consulting http://h2o.consulting

[MarkLogic Dev General] How to query metadata

2017-12-04 Thread Florent Georges
')) Have I missed something? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Management API: 400 on creating a role with permissions

2017-11-28 Thread Florent Georges
le only once with several capabilities): "permissions": [ { "role-name": "reader", "capabilities": ["read"] }, { "role-name": "writer", "capabilities": ["read", "update"] } ] Very unfortunate, as

Re: [MarkLogic Dev General] Cannot install 9.3.1 on CentOS 7

2017-11-28 Thread Florent Georges
Hi Geert, Thank you. When I try to install it, it tells me that... Package glibc-2.17-196.el7.x86_64 already installed and latest version Do you have a version above 2.14, or is it exactly 2.14? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 28 November 2017 at 06:42

[MarkLogic Dev General] Cannot install 9.3.1 on CentOS 7

2017-11-27 Thread Florent Georges
quire 2.14 exactly and not accept 2.17)? Did any one experienced this before? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.mar

[MarkLogic Dev General] Management API: 400 on creating a role with permissions

2017-11-27 Thread Florent Georges
R) Payload has errors in structure, content-type or values. Unexpected element: role-name (not in schema) The following request succeeds (with no permissions property): { "role-name": "reader", "description": "Test role 1." } Did I

Re: [MarkLogic Dev General] Set of elements to search for search:search()

2017-10-24 Thread Florent Georges
ce the try to switch to the Search API. But if it is not possible to configure several elements for the un-constraint terms, I guess the solution is rather to implement and parse my own grammar, and generating the snippets using CTS... :-( Regards, -- Florent Georges H2O Consulting http://h2o.

Re: [MarkLogic Dev General] Set of elements to search for search:search()

2017-10-24 Thread Florent Georges
ement-word-query(), for a simple term search string? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 23 October 2017 at 17:44, Geert Joste wrote: > I think I would use a field for this.. > > Cheers, > Geert > > From: <general-boun...@developer.mark

[MarkLogic Dev General] Set of elements to search for search:search()

2017-10-23 Thread Florent Georges
thing obvious here. How is it possible to restrict a full text search to a set of element names using search:search()? Regards; -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your su

Re: [MarkLogic Dev General] encoding problem of utf-8 in marklogic

2017-10-15 Thread Florent Georges
wrote: > > text/xml > Thu, 20 Jul 2017 07:35:19 GMT > bytes > "1a67d5bc2a1d31:0" > Microsoft-IIS/8.0 > ASP.NET > Sat, 14 Oct 2017 19:11:29 GMT > 83144 > > > > On Sat, Oct 14, 2017 at 3:32 PM, Florent Georges <li

Re: [MarkLogic Dev General] encoding problem of utf-8 in marklogic

2017-10-14 Thread Florent Georges
Hi, You use an HTTP source. What are the returned headers, esp. the Content-Type? You can find out easily in QConsole by using xdmp:http-get(). Regards, -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website! On 14 October 2017 at 12:48, Zakiya Tamimi wrote: > I h

Re: [MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Florent Georges
Yes, that is what I tried to say right after the payload snippet. I cut it down for readability, but it does contain the 4 items in the array. The error was somewhere else (between my chair and my keyboard), as explained in my own response. Thank you Jim, -- Florent Georges H2O Consulting

Re: [MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Florent Georges
of it. I made a typo in the paths, and 2 entries were identical, hence the error. Sorry for the noise. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 21 September 2017 at 13:07, Florent Georges wrote: > Hi, > > I want to update the path range indexes on a dat

[MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Florent Georges
(so I update the entire property to the total 4 indexes). This is the same strategy I use for other range indexes. I receive a ADMIN-DUPLICATECONFIGITEM error: Database resource 'xxx' already contains 'range-path-index' Any idea? Isn't it possible to update the path range indexes?

Re: [MarkLogic Dev General] Management API: JSON payload for "path namespaces"

2017-09-21 Thread Florent Georges
Hi Jim, Damn, got caught by this one again. Thanks for the reminder. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 21 September 2017 at 12:51, Jim Fuller wrote: > for json payloads, the convention is to use the singular for > array keynames > > { >

[MarkLogic Dev General] Management API: JSON payload for "path namespaces"

2017-09-21 Thread Florent Georges
"http://example.com/; }]} I then get a MANAGE-INVALIDPAYLOAD error: Unexpected element: prefix (not in schema) Any idea what's wrong? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@dev

[MarkLogic Dev General] Wrong Content-Type when JSON on GET /v1/rest-apis/{name}

2017-09-11 Thread Florent Georges
ue" } > http -A digest -a usr:pwd :8002/v1/rest-apis/App-Services HTTP/1.1 200 OK Connection: Keep-Alive Content-Length: 377 Content-Type: application/xml; charset=UTF-8 Keep-Alive: timeout=5 Server: MarkLogic http://marklogic.com/rest-api;>

Re: [MarkLogic Dev General] Count of cts:element-values() not equal to number of element instances--what's going on?

2017-08-14 Thread Florent Georges
marklogic.com/cts:element-values [2] http://docs.marklogic.com/guide/search-dev/lexicon -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.markl

[MarkLogic Dev General] Management API - Create MIME type return 200

2017-08-03 Thread Florent Georges
, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] JSearch - collections

2017-08-01 Thread Florent Georges
() .where(...) .result(); So collections([A, B]) is the union of A and B, whilst collections(A).collections(B) would be their intersection. But just an idea... ;-) Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 1 August 2017 at 18:23, Justin Makeig wrote

Re: [MarkLogic Dev General] JSearch - collections

2017-08-01 Thread Florent Georges
Thank you, Erik! I hoped there was a ready-to-use function for that. Thank you for confirming there is none. I definitely owe you a drink of your choice after the past few days :-) Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 1 August 2017 at 15:10, Erik Hennum wrote

[MarkLogic Dev General] JSearch - collections

2017-08-01 Thread Florent Georges
Hi, The jsearch.collections() function uses the union of the collections. Is there another function for the intersection instead? That is, to select all documents tagged with ALL the given collections (instead of ANY of them). Regards, -- Florent Georges H2O Consulting http://h2o.consulting

Re: [MarkLogic Dev General] Client API - Multipart doc ingest - Set each part type

2017-08-01 Thread Florent Georges
, but that is besides the point :-) At least I know now that this is the intended behavior. Thank you, again :-) -- Florent Georges H2O Consulting http://h2o.consulting/ On 30 July 2017 at 20:54, Erik Hennum wrote: > Hi, Florent: > > The mime type mapping for the extension takes p

[MarkLogic Dev General] Client API - Multipart doc ingest - Set each part type

2017-07-30 Thread Florent Georges
text.xxx - text /test/file-xml.xxx - xml /test/file-json.xxx - json /test/file-bin.xxx - binary -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Client API - 8000 - POST /v1/documents - Unexpected 400

2017-07-30 Thread Florent Georges
or to return a 400 instead with a meaningful message). But as far as I am concerned, problem solved ;-) Thank you, Erik! Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 30 July 2017 at 16:09, Erik Hennum wrote: > Hi, Florent: > > I'm wondering whether a CRLF is

Re: [MarkLogic Dev General] Client API - 8000 - POST /v1/documents - Unexpected 400

2017-07-30 Thread Florent Georges
tadata") then () else docmodupd:parse-metadata-map($curr-uri,$content-type,$body) But then, it is beyond my knowledge... Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 30 July 2017 at 11:41, Florent Georges wrote: > Hi, > > I am trying to use the POST /v1/documen

[MarkLogic Dev General] Client API - 8000 - POST /v1/documents - Unexpected 400

2017-07-30 Thread Florent Georges
ri=/test/single.json', { authentication : { method : 'digest', username : 'admin', password : 'admin' }, headers: { "Content-type": 'application/json', Accept: "application/json" }, data: JSON.stringify({ hello: 'world

Re: [MarkLogic Dev General] cts:triple-value-statistics with inferred data?!

2017-07-19 Thread Florent Georges
ing to do something different, or there is maybe some misunderstanding about the inference model in MarkLogic. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 19 July 2017 at 12:10, Ghislain Atemezing-Pro wrote: > My intention is not to judge the complexity of counting t

Re: [MarkLogic Dev General] Windows drive mapping to network dir not working

2017-07-18 Thread Florent Georges
s database and a watch command is good enough for me, more than taking any risk with windows config options. Thanks for the suggestion though. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 18 July 2017 at 18:57, Tim Meagher wrote: > Hi Florent, > > I don’t know if this

Re: [MarkLogic Dev General] Windows drive mapping to network dir not working

2017-07-18 Thread Florent Georges
as they happen :-) Thank you for your detailed explanation, that was helpful! Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 18 July 2017 at 10:52, Anne Taylor wrote: > Hi Florent, > > > > Your drive mapping will be configured for _*you*_, when

[MarkLogic Dev General] Windows drive mapping to network dir not working

2017-07-17 Thread Florent Georges
:/') But if I change c:/ by p:/, MarkLogic says it cannot find the path. On ML 9.2. From QConsole. The drive P: is accessible from all apps, including Cygwin for instance. Any idea what's wrong? Any chance it is on ML side? Regards, -- Florent Georges H2O Co

Re: [MarkLogic Dev General] Benchmarking with Marlogic 8 - HTTP 401 error making the query: Unauthorized

2017-07-07 Thread Florent Georges
Hi, Not really an answer, but a suggestion: if it is for benchmarking only, the easiest is probably to disable authentication at all (in your app server properties.) Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 7 Jul 2017 11:48 am, "Ghislain Atemezing" <gh

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
I have no idea what you are talking about. May I remind you that this is a public, archived mailing-list? Be careful with the information you post here. There is no way back. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 29 June 2017 at 18:19, Yother, Michael B wrote

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
Until there is a good reason (and there doesn't seem to be one here), I am certainly not granting access to a database to anyone. -- Florent Georges H2O Consulting http://h2o.consulting/ On 29 June 2017 at 17:35, Yother, Michael B wrote: > I’m inquiring about access to ML ser

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
Hi, Not sure you're replying to the right email? If you are, then I am not sure what your question is. Jim's suggestion indeed solves my issue. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 29 June 2017 at 17:18, Yother, Michael B wrote: > Do we have a Li

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
Hi, Ah, right, the internal ID for "no database". Didn't think about that. Good enough for me (and yes, I confirm it does work) :-) Thank you, Jim! Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 29 June 2017 at 13:03, Jim Fuller wrote: > yes I believe we

[MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
e": "XDMP-VALIDATEBADTYPE", "status": "Bad Request", "statusCode": "400" } } Thank you. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Using CURL to Test ML HTTP Processing

2017-06-24 Thread Florent Georges
you most likely want text/plain. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 23 June 2017 at 16:39, Eliot Kimber wrote: > OK, I think I got it sorted, although I’m not sure I understand why it > needs to be this way. > > On my curl command I added:

[MarkLogic Dev General] SJS: use async callback value in the response body

2017-06-20 Thread Florent Georges
sue in MarkLogic? Any thought on this? Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-18 Thread Florent Georges
/json;; declare variable $obj external; json:array-values($obj) ! map:get(., 'name')`, { obj: [{ name: 'name', title: 'title' }] }); Thank you! Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 17 June 2017 at 08:11, Erik Hennum wrote: > Hi, Florent: > > Much the

Re: [MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-16 Thread Florent Georges
it like a sequence of items does not work. This modified example gives this extra complexity: xdmp.xqueryEval( `declare variable $obj external; $obj ! map:get(., 'name')`, { obj: [{ name: 'name', title: 'title' }] }); Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 16

[MarkLogic Dev General] Accessing properties of in-memory JS object in XQuery

2017-06-16 Thread Florent Georges
: 'title' }); I am using ML 9. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Invoker library for MarkLogic

2017-06-10 Thread Florent Georges
; Hope that's helpful to some of you. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Getting "Parser Error: Cannot parse result. File size too large"

2017-06-09 Thread Florent Georges
Hi, It seems 10 Mb is already too large for your browser then. It sounds like you should either use queries to retrieve smaller, relevant parts of the documents, or use another tool than QConsole to browse the database content. Regards, -- Florent Georges H2O Consulting http://h2o.consulting

Re: [MarkLogic Dev General] Getting "Parser Error: Cannot parse result. File size too large"

2017-06-09 Thread Florent Georges
nsole/tree/develop. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 9 June 2017 at 15:36, ? wrote: > Hi Guys , > > Need some help here. > > I ingested a couple of xmls using MLCP and the file sizes are around 7-8 > MB each. > > While trying to see the co

Re: [MarkLogic Dev General] duplicate triplestore files when loaded using rdf and mlcp

2017-06-04 Thread Florent Georges
s you said the document is properly overridden. If this does not answer your question, I am afraid you'll need to rephrase it, and give us more details. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 1 June 2017 at 14:05, Rajesh Kumar wrote: > Hi Team, > > Whi

Re: [MarkLogic Dev General] Invoke SJS from XQuery

2017-05-29 Thread Florent Georges
RTFM... https://upload.wikimedia.org/wikipedia/commons/3/3b/Paris_Tuileries_Garden_Facepalm_statue.jpg Thanks, Geert! -- Florent Georges H2O Consulting http://h2o.consulting/ On 29 May 2017 at 21:42, Geert Josten wrote: > http://docs.marklogic.com/xdmp:invoke > > $path The path of t

[MarkLogic Dev General] Invoke SJS from XQuery

2017-05-29 Thread Florent Georges
to rely on string concatenation and eval. You know, little bobby tables... Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http

Re: [MarkLogic Dev General] Regarding encoding in Marklogic

2017-04-26 Thread Florent Georges
Hi, What do you mean by "after save the name appears as"? 99% of the time in similar cases, the diagnostic is wrong. It is rather that the method used to display the file does not display it as UTF-8, but the file itself is correct. Regards, -- Florent Georges H2O Consu

Re: [MarkLogic Dev General] Marklogic newbie - How to retrieve list users and their roles name.

2017-04-25 Thread Florent Georges
s, or it won't even see them) (well, it's a bit more complex than "admin privileges", but just use the admin user, or read the security guide). Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 25 April 2017 at 19:11, thichxai wrote: > I am newbie. How can const

Re: [MarkLogic Dev General] json:config for XML schema

2017-04-13 Thread Florent Georges
odes as direct children, intermingled with other elements like B or EM or SPAN containing text nodes or other such elements themselves. Regards, -- Florent Georges H2O Consulting \http://h2o.consulting/ On 13 April 2017 at 15:55, Steiner, David J. (LNG-DAY) wrote: > Hi Geert, > > > >

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

Re: [MarkLogic Dev General] mlproj, yet another project manager for MarkLogic

2017-03-29 Thread Florent Georges
/mlproj/tree/master/test/environs. The goal is not really to compete with Roxy (yet :-p), but rather to try and see where we can go with an alternative that does not have to guarantee backward compatibility. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 29 March 2017 at 05

Re: [MarkLogic Dev General] mlproj, yet another project manager for MarkLogic

2017-03-28 Thread Florent Georges
l take feedback into account, especially features that newcomers and day-to-day users think are important. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 28 March 2017 at 16:49, Andreas Hubmer wrote: > Hi Florent, > > Sounds interesting. > > From what I'

Re: [MarkLogic Dev General] mlproj, yet another project manager for MarkLogic

2017-03-28 Thread Florent Georges
ntioned in the first paragraph.) Thank you for your interest :-) Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 27 March 2017 at 18:40, Dave Cassel wrote: > Hi Florent, > > Could you comment on how mlproj is different from mlsound, which is also a > Mana

[MarkLogic Dev General] mlproj, yet another project manager for MarkLogic

2017-03-27 Thread Florent Georges
, or on http://github.com/fgeorges/mlproj. Have fun! Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo

Re: [MarkLogic Dev General] Connecting to MarkLogic 9ea on CentOS via ODBC

2017-03-24 Thread Florent Georges
, and indeed the fact that it returns an error in response to a HTTP request was expected. So it seems there is something else, then. .. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 24 March 2017 at 16:48, Mary Holstege wrote: > > The error is misleading: the real p

Re: [MarkLogic Dev General] Connecting to MarkLogic 9ea on CentOS via ODBC

2017-03-24 Thread Florent Georges
ed to make sure you use the same host and port number you configured ODBC with, and issue it from the same machine you issue ODBC requests from. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 23 March 2017 at 17:47, Nick Heidke wrote: > All- > > > > Ar

Re: [MarkLogic Dev General] URI_ID whitespace problems with mlcp

2017-03-22 Thread Florent Georges
r solution. Just my 2 cents. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 22 March 2017 at 14:14, Martijn Sintemaartensdijk wrote: > Dear Lucas, > > judging from your command, I think your input file contains an > XML-starttag "" and corresponding end

Re: [MarkLogic Dev General] A newbie question

2017-03-10 Thread Florent Georges
from the command line. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 10 March 2017 at 17:55, Kaza, Sriram wrote: > I executed the Self-paced Developer's XQuery class code for creating an > HTTP AppService for 8030-world-leaders and placed hello.xqy i

Re: [MarkLogic Dev General] Dynamically convert JSON to triples

2017-03-09 Thread Florent Georges
on (if you have enough control on the input or if it has been validated already), this at least looks like a solution to me. Still a bit of checks with the ID and name you use to concatenate the string would not harm, but I guess that was beyond the point of your question. Regards, -- Florent G

[MarkLogic Dev General] Management API - detach forest - doc

2017-02-22 Thread Florent Georges
Hi, I use the Management API to detach a forest, as documented in [1]. The doc says it returns 202 in case of success, but it actually returns 200. Bug in the doc? [1] https://docs.marklogic.com/REST/POST/manage/v2/forests/[id-or-name] Regards, -- Florent Georges H2O Consulting http

Re: [MarkLogic Dev General] 403 SCRF error on the Management API

2017-02-16 Thread Florent Georges
Thank you, Jim! I was using Postman to try and organize a collection of requests for sharing, but having a directory of shell scripts using cURL (or better, HTTPie) is probably simpler. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ - New website! On 16 February 2017 at 15

[MarkLogic Dev General] 403 SCRF error on the Management API

2017-02-16 Thread Florent Georges
\ --header "Content-Type:application/json" \ -d'{ "database-name": "foo-content" }' \ http://ml9ea4:8002/manage/v2/databases Any idea what can cause the 403? Anyone experienced this already? Regards, -- Florent

Re: [MarkLogic Dev General] passing a document-node into an eval/invoke

2017-02-15 Thread Florent Georges
element() The value of $elem in this last code is the following (which makes sense, right?, what else could it be?): Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 15 February 2017 at 11:37, Erik Zander wrote: > Hi All, > > > > I did iron ou

[MarkLogic Dev General] Code typo in guide

2017-02-06 Thread Florent Georges
; instead of "result()", twice. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ - New website! ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] re Management API

2017-01-31 Thread Florent Georges
ns the following error: {"errorResponse": { "statusCode":"400", "status":"Bad Request", "messageCode":"MANAGE-CONFLICTINGCONFIG", "message":"MANAGE-CONFLICTINGCONFIG: (err:FOER) A conflict has been

[MarkLogic Dev General] Management API

2017-01-20 Thread Florent Georges
been detected: database configurations differ." Is this the expected behavior? I could not find a definitive answer in the documentation. Regards, -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website! ___ General mailing li

[MarkLogic Dev General] Instantiating several times the same sem.store

2016-12-07 Thread Florent Georges
? Does that prevent any optimisation opportunities? Or is the CTS query passed to the store constructor evaluated every time by sem.sparql() anyway? Regards, -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website! ___ General

Re: [MarkLogic Dev General] MarkLogic 8.0-5 Indenting JSON output

2016-12-02 Thread Florent Georges
Hi Gary, If MarkDown is handled on the client, e.g. using something like marked.js, an alternative is to handle the formatting of the JSON snippets on the client as well (directly in JS in the browser). Regards, -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website

Re: [MarkLogic Dev General] Error handler JavaScript

2016-11-28 Thread Florent Georges
"throw 'Hello, world!';" - create zzz/handler.sjs with "errors;" Then go to http://localhost:xxx/index.sjs. This returns "ReferenceError: errors is not defined". -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website! On 28 Novemb

[MarkLogic Dev General] Error handler JavaScript

2016-11-28 Thread Florent Georges
Hi, In an error handler in XQuery, I can access the originally thrown error by binding specific external variables. But I cannot find any information on how to do this with JavaScript. Any pointer? On latest ML 8 (info specific to ML 9 EA welcome as well). Regards, -- Florent Georges http

Re: [MarkLogic Dev General] fn:current-dateTime()

2016-11-17 Thread Florent Georges
thing else, it depends on that "anything else"... Regards, -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website! On 17 November 2016 at 12:46, sweet frd wrote: > Hi All, > > I have a module somemodule.xqy which has the following line for

Re: [MarkLogic Dev General] Why does fn:replace gives an error when second argument exceeds certain length

2016-10-17 Thread Florent Georges
Hi, Johan does not seem to have got any answer on this one. Is it a hard limit, to be less than 1,500 chars for a regex? Is this limit going to be kept in ML9? Just curious... Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 22 August 2016 at 13:41, Florent

Re: [MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results

2016-10-16 Thread Florent Georges
It looks like you try to read a document you inserted in the same transaction. Which is in contradiction with how transactions work on MarkLogic. You can think of it as the following simplification: all changes to documents (including inserting new ones) are accumulated whilst your code is

Re: [MarkLogic Dev General] Triple index: all IRIs matching a string

2016-09-26 Thread Florent Georges
) ) FILTER( ! isBlank(?s) ) }', map:entry('re', '.*[/#]?[^#/]*' || $input || '[^#/]*$')) Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 25 September 2016 at 21:59, Geert Josten wrote: > Hi Florent, > > How about a sparql query tha

[MarkLogic Dev General] Triple index: all IRIs matching a string

2016-09-25 Thread Florent Georges
mponent#abc-xyz http://example.org/proj/component/abc-xyz-123 But I am not quite sure what would be the correct way to use the triple index for this, potentially on large data sets. Any idea? Regards, -- Florent Georges http://fgeorges.org/ htt

Re: [MarkLogic Dev General] Pulling data out of Marklogic quickly

2016-09-23 Thread Florent Georges
Hi Mark, Depends on the details of how and why you want this, but Flexible Replication might be what you're looking for here. Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 23 September 2016 at 23:41, Mark Shanks wrote: > Hi, > > We are trying to find

Re: [MarkLogic Dev General] Convert unix timestamp to HH/MM/SS in marklogic

2016-09-23 Thread Florent Georges
it per se, just the value it holds) The following seems to do what you want (given the assumptions above): let $seconds := 1458797764507 return xs:dateTime('1970-01-01T00:00:00+00:00') + xs:dayTimeDuration('PT' || ($seconds div 1000) || 'S') Regards, -- Florent Georges http://fgeorges.org

Re: [MarkLogic Dev General] Convert unix timestamp to HH/MM/SS in marklogic

2016-09-23 Thread Florent Georges
, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 23 September 2016 at 09:14, Debin, Infant Jerald (LNG-CON) wrote: > Hi, > > > > Is there a way to convert the unix timestamp to HH/MM/SS format in marklogic > using xquery. > > > > Unit timest

Re: [MarkLogic Dev General] xdmp.getRequestField return type

2016-08-26 Thread Florent Georges
Hi Justin, I see... Not an easy one. Especially when these definitions are used to create the TypeScript definition files, and then TypeScript insists that you have an object, not a string (fortunately in this case, toString() is our friend) :-) Regards, -- Florent Georges http

Re: [MarkLogic Dev General] Difference between directories and collections

2016-08-26 Thread Florent Georges
. You can think of collections as tags on documents. So to say it in even fewer words: - directories are the way you organize "physically" your (unique) document names - collections are the way you organize your documents logically Regards, -- Florent Georges http://fgeorges

  1   2   3   4   5   >