Danny Sinang | 25 Apr 04:29 2014
Picon

[MarkLogic Dev General] XDMP-DECOVRFLW on ML7

Hello,

Just wanted to share this discovery. Not sure if it's mentioned in the known incompatibilities between ML6 and ML7.

The following code works on ML6, but results in an XDMP-DECOVRFLW error on ML7 :

let $estimate := xs:unsignedLong("227")
let $total := xs:unsignedLong("1661")
return
      $estimate div $total * 100

The workaround would be to surround 100 with xs:double(). 

I’ve tested this in QConsole and it works.

Regards,
Danny



<div><div dir="ltr"><div>
<p class="">Hello,</p>
<p class="">Just wanted to share this discovery. Not sure if it's mentioned in the known incompatibilities between ML6 and ML7.</p>
<p class="">The following code works on ML6, but results in an&nbsp;<span class="">XDMP-DECOVRFLW error on ML7 :</span><br></p>
<p class="">let $estimate := xs:unsignedLong("227")<br>let $total := xs:unsignedLong("1661")<br>return<br>&nbsp; &nbsp; &nbsp; $estimate div $total * 100</p>
<p class="">The workaround would be to surround 100 with xs:double().&nbsp;</p>
<p class="">I&rsquo;ve tested this in QConsole and it works.<br><br>Regards,<br>Danny</p>
<p class=""><br></p>
<p class=""><br></p>
</div></div></div>
Will Thompson | 24 Apr 18:21 2014

[MarkLogic Dev General] Path range indexes and fragments

We’re noticing some odd reindexing and querying behavior, and I’m curious if there’s anything
fundamentally wrong about inserting documents like:

<things>
  <thing-type>
    <thing>value</thing>
    …

with a fragment root set on <thing>, and a path range index for things/thing-type/thing. 

A cts:values query on that path reference returns empty. Remove the fragment root on <thing>, and it
returns the expected values. Also (and this is really strange) if instead of removing the fragment root, I
add an element range index for <thing>, reindex, and remove that index, then (after reindexing) the query
returns expected values. But if following that I force a manual reindex, it will return empty again when
the reindexing completes. This is on ML 7-2.2.

-Will

Florent Georges | 22 Apr 20:49 2014

[MarkLogic Dev General] Function sem:rdf-load() not defined?

  Hi,

  I use 7.0-2.3, and try to evaluate in QConsole the following query:
sem:rdf-load('/some/path/triples.ttl').  The error I get is: "[1.0-ml]
XDMP-UNDFUN: (err:XPST0017) Undefined function sem:rdf-load()."  The
function is documented there: https://docs.marklogic.com/sem:rdf-load.
Using 2 parameters: sem:rdf-load('/some/path/triples.ttl', 'turtle')
does not help.

  Am I missing the obvious here?  Regards,
 
--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


<div><div>
<div>
<span>&nbsp; Hi,<br><br>&nbsp; I use 7.0-2.3, and try to evaluate in QConsole the following query:<br>sem:rdf-load('/some/path/triples.ttl').&nbsp; The error I get is: "[1.0-ml]<br>XDMP-UNDFUN: (err:XPST0017) Undefined function sem:rdf-load()."&nbsp; The<br>function is documented there: https://docs.marklogic.com/sem:rdf-load.<br>Using 2 parameters: sem:rdf-load('/some/path/triples.ttl', 'turtle')<br>does not help.<br><br>&nbsp; Am I missing the obvious here?&nbsp; Regards,<br></span>&nbsp;</div>
<div>-- <br>Florent Georges<br>http://fgeorges.org/<br>http://h2oconsulting.be/<br><br><br>
</div>
</div></div>
Liubov Efremova | 22 Apr 15:09 2014
Picon

[MarkLogic Dev General] Best ways for Synonyms search implementation

I have the same question as here: http://developer.marklogic.com/pipermail/general/2009-October/003809.html

Is it possible not to create entries for each synonym?
<div><div dir="ltr">
<span>I have the same question as here:&nbsp;</span><a href="http://developer.marklogic.com/pipermail/general/2009-October/003809.html" target="_blank">http://developer.marklogic.com/pipermail/general/2009-October/003809.html</a><br><br><span>Is it possible not to create entries for each synonym?</span>
</div></div>
Danny Sinang | 22 Apr 14:48 2014
Picon

[MarkLogic Dev General] Exporting database content processing configs

Hello,

I noticed that exporting a database config using ML7's Config Manager results in a package that does not include the Content Processing configs (i.e. Domains and Pipelines).

Has anybody noticed the same ?

Is there a good reason why these were left out of the export package ?

Regards,
Danny


<div><div dir="ltr">Hello,<div><br></div>
<div>I noticed that exporting a database config using ML7's Config Manager results in a package that does not include the Content Processing configs (i.e. Domains and Pipelines).</div>

<div><br></div>
<div>Has anybody noticed the same ?</div>
<div><br></div>
<div>Is there a good reason why these were left out of the export package ?</div>
<div><br></div>
<div>Regards,</div>
<div>Danny</div>
<div><br></div>
<div>

<br>
</div>
</div></div>
Cram, Sinclair | 17 Apr 17:31 2014
Picon

[MarkLogic Dev General] Database URI dump

Does anyone know of quick, efficient way of capturing a list of all the full URI paths to documents in a database? The cts:uri-match() with wildcards would match all URIs, but for a Forest with almost 4 million documents, it may take a very long time to return the results. Any suggestions?

 

Sinclair Cram | Client Technology | J.P. Morgan | Alhambra House, 45 Waterloo Street, Glasgow | J.P. Morgan  | T: +44 141 228 0421

 

This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.

<div>
<div class="WordSection1">
<p class="MsoNormal">Does anyone know of quick, efficient way of capturing a list of all the full URI paths to documents in a database? The cts:uri-match() with wildcards would match all URIs, but for a Forest with almost 4 million documents, it may take a
 very long time to return the results. Any suggestions?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span lang="EN-GB">Sinclair Cram</span><span lang="EN-GB"> |
</span><span>Client Technology | J.P. Morgan | Alhambra House, 45 Waterloo Street, Glasgow
</span><span lang="EN-GB">| <a href="http://www.jpmorgan.com/">
<span>J.P. Morgan</span></a>&nbsp; | T: +44 141 228 0421</span><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
<p><span>
This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.  
</span></p>
</div>
Liubov Efremova | 16 Apr 15:05 2014
Picon

[MarkLogic Dev General] (no subject)

Hello!

I have the following question:
Is it possible to insert document into MarkLogic with some other state (not initial)?

Thank you!

Kind regards,
Liubov E.
<div><div dir="ltr">
<span>Hello!</span><div><br></div>
<div>I have the following question:<br>
Is it possible to insert document into MarkLogic with some other state (not initial)?</div>
<div><br></div>
<div>
<div>Thank you!</div>
<div><br></div>
<div>Kind regards,</div>
<div>Liubov E.</div>
</div>
</div></div>
Michael Blakeley | 15 Apr 05:46 2014

[MarkLogic Dev General] meet taskbot

MarkLogic 7 includes support for anonymous functions, plus a new builtin called xdmp:spawn-function.
I've been using these to put the Task Manager to work, and https://github.com/mblakele/taskbot is the result.

Taskbot is basically a map-reduce utility. Start with an anonymous function, and a list of stuff: document
URIs, or anything else. Taskbot spawns a task for each segment of the list, using a size you specify. You
provide an anonymous function that processes each segment. The Task Manager queue and thread pool manage
the work, providing as much data-driven parallelism as the configuration and the workload allow.

If the anonymous function updates the database, your work is done. If your function returns results,
supply $tb:OPTIONS-SYNC and reduce the results however you like.

All that might sound a little too abstract, so here's a quick example. Inserting 1M documents in a single
transaction can be painful, but it's easy with tasks of 500 documents each.

(: This inserts 1M simple test documents,
 : in segments of 500 documents each.
 : Extend as needed.
 :)
tb:list-segment-process(
  (: Total size of the job. :)
  1 to 1000 * 1000,
  (: Size of each segment of work. :)
  500,
  "test/",
  (: This anonymous function will be called for each segment. :)
  function($list as item()+, $opts as map:map?) {
    (: Any chainsaw should have a safety. Check it here. :)
    tb:maybe-fatal(),
    for $i in $list return xdmp:document-insert(
      "test/"||$i,
      element test { attribute id { 'test-'||$i }, $i }),
    (: This is an update, so be sure to commit. :)
    xdmp:commit() },
  (: options - not used in this example. :)
  map:new(map:entry('testing', '123...'),
  (: This is an update, so be sure to say so. :)
  $tb:OPTIONS-UPDATE)

There are more examples in the README at https://github.com/mblakele/taskbot - plus xray test cases.

I hope it's useful.

-- Mike
Gary Larsen | 14 Apr 16:05 2014

[MarkLogic Dev General] timeouts

Trying to run a very long query, but get a timeout before the ‘max time limit’ or ‘default time limit’ would have occurred.

 

Is there another setting, maybe ‘session time’, which would also cause a timeout?

 

Thanks,

Gary

<div><div class="WordSection1">
<p class="MsoNormal">Trying to run a very long query, but get a timeout before the &lsquo;max time limit&rsquo; or &lsquo;default time limit&rsquo; would have occurred.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Is there another setting, maybe &lsquo;session time&rsquo;, which would also cause a timeout?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks,<p></p></p>
<p class="MsoNormal">Gary<p></p></p>
</div></div>
Charles Foster | 13 Apr 12:58 2014
Picon

[MarkLogic Dev General] XML London 2014

Calling all MarkLogic and XML aficionados.

The XML London 2014 conference takes place on 7/8th June 2014 at
University College London and MarkLogic are the Gold Sponsor!

Early Bird Registration closes on 15th April, costing just £199 + VAT!

This year we have a STELLAR line-up of speakers, including

  Philip Fennell from MarkLogic with
    "Schematron - More useful than you’d thought".

The full line-up includes:

  Michael Kay (Saxonica)
    "Benchmarking XSLT Performance"

  Abel Braaksma (Exselt)
    "Streaming Design Patterns or:
     how I learned to stop worrying and love the Stream"

  Matt Kohl (Oxford University Press)
    "From monolithic XML for print/web to lean XML for data:
     realising linked data for dictionaries"

  Sanders Kleinfeld (O'Reilly Media)
    "HTMLBook: An XHTML5-based source format for authoring
               and producing print and digital content"

  George Bina (oXygen)
    "XML Authoring and Review on Mobile Devices"

  Elias Weingärtner (Haufe Group)
    "Engineering a XML-based Content Hub for Enterprise Publishing"

  Celina Huang (Antenna House)
    "A Visual Comparison Approach to Automated Regression Testing"

  Steven Pemberton (CWI)
    "Live XML Data"

  Kal Ahmed (NetworkedPlanet)
    "Linked Data in a .NET World"

  Robbert Broersma (Frameless)
    "The Reactive Revolution"

  Jorge Williams (Rackspace)
    "Product Usage Schemas"

  Eduardo Gonçalves (Universidade Federal Fluminense, Brazil)
    "An XML-based Approach for Data Preprocessing of
     Multi-Label Classification Problems"

  Lech Rzedzicki (Kode1100)
    "Using abstract content model and wikis to link Semantic Web,
     XML, HTML, JSON and CSV"

  William Narmontas (Apt)
    "XML processing in Scala"

  Eric van der Vlist (Dyomedea)
    "JSON and XML: a new perspective"

Don't miss this spectacular event! Register for XML London 2014 at:

    http://xmllondon.com/registration.jsp

Group discounts are available!,
   so please talk to your manager to arrange a group booking.

Regards,

Charles
XML London

Sergio Restrepo | 10 Apr 19:31 2014

[MarkLogic Dev General] OpenSSL Heartbleed

Hello,

I have gotten a couple of requests from some of our customers to check on heartbleed (http://heartbleed.com/)  vulnerability in several of our applications.

While we do not use HTTPS in most of our services, the documentation (http://docs.marklogic.com/guide/admin/SSL#id_58562) does state MarkLogic uses OpenSSL to implement SSL/TLS.

Do you have any insight as to what version of OpenSSL is embedded in MarkLogic and if that is vulnerable to heartbleed?

Thanks

SERGIO RESTREPO VP, Architecture

Yuxi Pacific LLC, 4393 Digital Way Mason, OH 45040

Office:  484-598-3729

Skype: yuxi-sergio


      


<div>Hello,<div><br></div>
<div>I have gotten a couple of requests from some of our customers to check on heartbleed (<a href="http://heartbleed.com/">http://heartbleed.com/</a>)&nbsp;&nbsp;vulnerability in several of our applications.</div>
<div><br></div>
<div>While we do not use HTTPS in most of our services, the documentation (<a href="http://docs.marklogic.com/guide/admin/SSL#id_58562">http://docs.marklogic.com/guide/admin/SSL#id_58562</a>)&nbsp;does state MarkLogic uses OpenSSL to implement SSL/TLS.</div>
<div><br></div>
<div>Do you have any insight as to what version of OpenSSL is embedded in MarkLogic and if that is vulnerable to heartbleed?</div>
<div><br></div>
<div>Thanks</div>
<div><br></div>
<div>
<div apple-content-edited="true">
<div><div><div><div><div>
<div>
<div>
<div>
<div>SERGIO RESTREPO&nbsp;VP, Architecture<p></p>
</div>
<div>Yuxi Pacific LLC, 4393 Digital Way Mason, OH 45040<p></p>
</div>
<div><span><a href="mailto:natalia.jones@...">sergio.restrepo@...</a><p></p></span></div>
<div>Office: &nbsp;484-598-3729<p></p>
</div>
<div>Skype: yuxi-sergio</div>
</div>
<div><a href="https://twitter.com/yuxipacific" target="_blank"><br class="Apple-interchange-newline"></a></div>
</div>
<span><br class="Apple-interchange-newline"></span><a href="https://twitter.com/yuxipacific"><span></span></a><a href="https://twitter.com/yuxipacific"><span><span>&nbsp;&nbsp;</span></span></a><a href="http://www.linkedin.com/company/yuxi-pacific?trk=company_name"><span></span></a><a href="http://www.linkedin.com/company/yuxi-pacific?trk=company_name"><span><span><span>&nbsp;&nbsp;</span></span></span></a><a href="http://www.youtube.com/user/yuxipacific"><span></span></a><a href="http://www.youtube.com/user/yuxipacific"><span><span><span><span>&nbsp;&nbsp;</span></span></span></span></a><a href="http://www.facebook.com/yuxipacific?fref=ts"><span></span></a><a href="http://www.facebook.com/yuxipacific?fref=ts"><span><span></span></span></a><a href="http://www.facebook.com/yuxipacific?fref=ts" target="_blank"><br class="Apple-interchange-newline"></a><span><a href="http://www.facebook.com/yuxipacific?fref=ts" target="_blank"><span><br></span></a></span><span><span></span>
</span>
</div>
</div></div></div></div></div>
</div>
<br>
</div>
</div>

Gmane