Re: [MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-28 Thread John Snelson
mp:set() to modify the $tasks variable (a > sequence of elements) would be causing some kind of commit lock? > > Thanks, > > Eliot > > -- > Eliot Kimber > http://contrext.com > > > > > _______ > Gener

Re: [MarkLogic Dev General] Why No cts:median-aggregate() Function?

2017-08-28 Thread John Snelson
ing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Principal Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic

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

2017-07-19 Thread John Snelson
t me sending my questions. But yes, thanks for your time and sincerity. Ghislain Le mer. 19 juil. 2017 à 11:47, John Snelson <john.snel...@marklogic.com<mailto:john.snel...@marklogic.com>> a écrit : On 13/07/17 10:08, Ghislain Atemezing-Pro wrote: > Hi list, > I am trying to combi

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

2017-07-19 Thread John Snelson
the count() aggregate in a SPARQL query. It will probably take a really long time, and may fail to complete if it runs out of scratch space. Given this, I would suggest that this probably isn't a valuable question to answer. John -- John Snelson, Principal Engineer http:

Re: [MarkLogic Dev General] MarkLogic sem:store issue?

2017-07-12 Thread John Snelson
message from your computer. Any views or opinions presented are solely those of the author. ___ General mailing list General@developer.marklogic.com<mailto:General@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.co

Re: [MarkLogic Dev General] indexes

2017-07-11 Thread John Snelson
olutions.png] ___ General mailing list General@developer.marklogic.com<mailto:General@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Principal Engineer http://twitter.com/jpcs Mar

Re: [MarkLogic Dev General] Is there an antlr4 grammar file for the XQuery implementation in MarkLogic 9?

2017-07-03 Thread John Snelson
 If so, > can I get a copy of it. > > Thank you, > Loren > > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at:  > http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Unsubscribe

2017-05-23 Thread John Snelson
On 23/05/17 14:57, Hanumantharayappa, Shanthamurthy wrote: > To subscribe or unsubscribe via the World Wide Web, visit > http://developer.marklogic.com/mailman/listinfo/general > or, via email, send a message with subject or body 'help' to > general-requ...@developer.marklogic.co

Re: [MarkLogic Dev General] Number of Named graphs in SPARQL --> Re: operation never end?

2017-04-21 Thread John Snelson
I am just surprised that the queries you sent me do not work with other public endpoints out there; for e.g., DBpedia. Best, Ghislain Le 20 avr. 2017 à 18:27, John Snelson <john.snel...@marklogic.com<mailto:john.snel...@marklogic.com>> a écrit : Your query asked for all quads from

Re: [MarkLogic Dev General] Number of Named graphs in SPARQL --> Re: operation never end?

2017-04-20 Thread John Snelson
Le jeu. 20 avr. 2017 à 18:00, John Snelson <john.snel...@marklogic.com<mailto:john.snel...@marklogic.com>> a écrit : Try this: select ?g { graph ?g {} } or even this: select (count(?g) as ?count) { graph ?g {} } John On 20/04/17 16:46, Ghislain Atemezing-Pro wrote: Hi all, I am tr

Re: [MarkLogic Dev General] Number of Named graphs in SPARQL --> Re: operation never end?

2017-04-20 Thread John Snelson
ng.org ___ General mailing list General@developer.marklogic.com<mailto:General@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Principal Engineer http://twitter.com/jp

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

2017-04-11 Thread John Snelson
ral@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Principal Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklog

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

2016-09-26 Thread John Snelson
onent/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, > -- John Snelson, Lead Engineerhttp://twitter.com/jpcs Ma

Re: [MarkLogic Dev General] Precedence with "every" and "and"

2016-04-03 Thread John Snelson
ith 8.0-4.2. HTH, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ ___ General mailing list General@developer.marklogic.com<mailto:General@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.com/

Re: [MarkLogic Dev General] register own inference rule - not found

2015-12-14 Thread John Snelson
xml file remains. Is it the graph document that's left? Have you tried "drop graph "? John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com _

Re: [MarkLogic Dev General] mclp support for tar files?

2015-10-23 Thread John Snelson
iling list General@developer.marklogic.com<mailto:General@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www

Re: [MarkLogic Dev General] Group module location

2015-09-21 Thread John Snelson
uestion is: "Given the library > module with namespace XYZ, that I want to make available to all > modules in all app servers in the group G, without requiring any 'at' > location hint, where should I put it, and what would be the > corresponding value to put in the 'location' fiel

Re: [MarkLogic Dev General] cts:value-tuples

2015-04-20 Thread John Snelson
On 20/04/2015 15:23, Danny Sinang wrote: Does cts:value-tuples return unique json tuples ? Yes. But tuples contain only atomic values - there are no JSON tuples. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http

Re: [MarkLogic Dev General] Please out me on the list

2015-03-12 Thread John Snelson
mailing list General@developer.marklogic.commailto:General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] Parameterizing SPARQL Queries

2014-11-12 Thread John Snelson
/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman

Re: [MarkLogic Dev General] How to call xdmp:eval() with transaction-id option?

2014-10-07 Thread John Snelson
@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General

Re: [MarkLogic Dev General] MEMCANCELED error

2014-06-25 Thread John Snelson
What version of MarkLogic are you using? MarkLogic 7.0-3 is much better at planning SPARQL queries so that they don't use more than the available memory. John On 25/06/2014 09:51, Jakob Fix wrote: Hi, we have a cronjob (a scheduled Windows task, actually) that calls an API endpoint which in

Re: [MarkLogic Dev General] Non-Aggregate UDF

2014-06-12 Thread John Snelson
non-Agrregate UDF functions? Cheers Adam. -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http

Re: [MarkLogic Dev General] Non-Aggregate UDF

2014-06-12 Thread John Snelson
class that could be enough perhaps? p.s. It has been sometime since I have done C++ so my terminology may be way off! -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of John Snelson Sent: 12 June 2014 12:14

Re: [MarkLogic Dev General] Non-Aggregate UDF

2014-06-12 Thread John Snelson
that is not an option in this instance. Is the creation of an external API for non-aggregate UDF in the roadmap? Cheers Adam. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of John Snelson Sent: 12 June 2014 12:26

Re: [MarkLogic Dev General] New Feature Request: Unique Value Range Indexes

2014-06-04 Thread John Snelson
___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] New Feature Request: Unique Value Range Indexes

2014-06-04 Thread John Snelson
or more random numbers - until the statistical likelihood of a collision is small enough that you don't care about checking uniqueness anymore. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] XDMP-* errors and the XQuery 3.0 catch clause

2014-06-03 Thread John Snelson
$a as element(*, JapanAddress) return $a/prefecture default return unknown It isn't implemented in MarkLogic yet. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] XDMP-* errors and the XQuery 3.0 catch clause

2014-06-03 Thread John Snelson
xdmp:rethrow() } I agree that would be nicer - I'll add an RFE for it. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list

Re: [MarkLogic Dev General] triple store indexing

2014-05-06 Thread John Snelson
are not indexed immediately, but periodically? No, it's because you insert the document containing triples in a separate transaction. Why don't you insert it in the same transaction if you're using pre-commit triggers? John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs

Re: [MarkLogic Dev General] triple store indexing

2014-05-06 Thread John Snelson
the document to be query-able (which is the case), and a SPARQL query to return the inserted triples (which is not always the case). cheers, Jakob. On Tue, May 6, 2014 at 4:21 PM, John Snelson john.snel...@marklogic.com mailto:john.snel...@marklogic.com wrote: On 06/05/14 15:17, Jakob

Re: [MarkLogic Dev General] SVC-EXTIME vs XDMP-EXTIME

2014-04-28 Thread John Snelson
, Is there a significant difference between the error codes SVC-EXTIME and XDMP-EXTIME? Wondering if they indicate the cause of the timeout is different? For example, if I force a timeout with xdmp:sleep() I always get XDMP-EXTIME. Thanks Rob -- John Snelson, Lead Engineer

Re: [MarkLogic Dev General] number of triples

2014-03-25 Thread John Snelson
promptly delete this message and notify the sender by e-mail. Thank you. ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp

Re: [MarkLogic Dev General] number of triples

2014-03-25 Thread John Snelson
be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail. Thank you. On Mar 25, 2014, at 8:00, John Snelson john.snel...@marklogic.com mailto:john.snel...@marklogic.com

Re: [MarkLogic Dev General] Count number of triples [I]

2014-02-24 Thread John Snelson
@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list

Re: [MarkLogic Dev General] Query Plan in MarkLogic Semantic

2013-12-16 Thread John Snelson
to speed up the query I’m doing -Is there a way to do a group by Thanks and Regards, Eugene ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineer

Re: [MarkLogic Dev General] Query needs to be optimized, does not complete

2013-11-29 Thread John Snelson
the documents for those values. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http

Re: [MarkLogic Dev General] Node kind binary() not available in XQuery 3.0

2013-11-25 Thread John Snelson
XQuery 3.0 features are also available in 1.0-ml mode. Other than the methods you suggest, I don't think there is another way to test for a binary node. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http

Re: [MarkLogic Dev General] KindTest namespace-node() not supported

2013-11-25 Thread John Snelson
-node() KindTest is new in XQuery 3.0 and is not yet supported by MarkLogic. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list

Re: [MarkLogic Dev General] (no subject)

2013-11-14 Thread John Snelson
It's a precedence issue -pot the validate expression inside parentheses. John Original message From: Florent Georges li...@fgeorges.org Date: 15/11/2013 02:03 (GMT+08:00) To: MarkLogic General ML general@developer.marklogic.com Subject: [MarkLogic Dev General] (no subject)

Re: [MarkLogic Dev General] Validate email using regular expression

2013-06-19 Thread John Snelson
do I validate emails using regular expression in MarkLogic. Thanks, Sini -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General

Re: [MarkLogic Dev General] Creating a unique timestamp using fn:current-dateTime()

2013-05-29 Thread John Snelson
? Thank you! Tim Meagher -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http

Re: [MarkLogic Dev General] Xquery - fn:string-join

2013-01-21 Thread John Snelson
___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] Admin function for listing open login sessions on HTTP app server?

2012-12-14 Thread John Snelson
it possible to determine which login sessions on an HTTP app server are active (not timed out) at a given moment? Or is that information all completely dependent on client-side storage? (The last-login builtins don't really serve this purpose.) David S. -- John Snelson, Lead Engineer

Re: [MarkLogic Dev General] Sequences for external parameters with xdmp:invoke()?

2012-11-10 Thread John Snelson
There's no way to do that currently, but it's a good feature request. As a work around you can pass in a map as the single item value, containing the sequence you need. John Original message Subject: [MarkLogic Dev General] Sequences for external parameters with

Re: [MarkLogic Dev General] fn:contains() behavior in ML5 vs. ML6

2012-11-02 Thread John Snelson
. Is this a regression or a feature, or maybe an old bug that is now fixed in ML 6.0? -Will -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing

Re: [MarkLogic Dev General] Map Operator and Concurrency

2012-10-22 Thread John Snelson
evaluation saves unnecessary computation. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http

Re: [MarkLogic Dev General] Pointing to a database: using its ID?

2012-10-21 Thread John Snelson
are globally unique and will not change for the lifetime of the database or app server, so they seem ideal for your purposes. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread John Snelson
/MarkLogic/Data/Lib or equivalent. Also does the library inside Lib look the same as the one you built into a native plugin? Turning on debug logging should output more information about the native plugin cache and plugin loading - that might help you work out what's going on. John -- John Snelson

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread John Snelson
with regex/description native pathlibregex-audf.dylib/path /native /plugin Thanks again for looking into this! -Ryan Dew On Sep 24, 2012, at 7:22 AM, John Snelson john.snel...@marklogic.com wrote: On 24/09/12 14:07, Ryan Dew wrote: This past weekend I played around

Re: [MarkLogic Dev General] REST docs api, how to specify a database at PUT?

2012-09-17 Thread John Snelson
, but no database-name. But what if you don't want to target a specific forest? http://docs.marklogic.com/REST/PUT/v1/documents Kind regards, Geert -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] We Got Six

2012-09-17 Thread John Snelson
aren't mentioned or perhaps I'm just missing where the updates were announced? -Ryan Dew -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General

Re: [MarkLogic Dev General] Xquery invoker

2012-09-05 Thread John Snelson
__ __ ___ General mailing list General@developer.marklogic.com mailto:General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic

Re: [MarkLogic Dev General] Error handler not kicked off

2012-08-10 Thread John Snelson
-response-code() to fn:error(), I get the expected result: errorHTTP error: 500 Internal Server Error/error. Why the error handler is not kicked off in the first case? Did I miss anything? Regards, -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic

Re: [MarkLogic Dev General] Sorting untypedAtomic Datatypes

2012-07-02 Thread John Snelson
prohibited and may be unlawful. -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http

Re: [MarkLogic Dev General] General Digest, Vol 97, Issue 4

2012-07-02 Thread John Snelson
,\.) return ( for $p in (1 to (10 - string-length($t))) return , $t, . ) ,) order by $key return $each John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] simple cts constructor for variable check

2012-04-16 Thread John Snelson
for the first part. Or maybe I’m looking at this all wrong. Thanks for any suggestions. Gary -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing

Re: [MarkLogic Dev General] Internal Server Error

2012-03-26 Thread John Snelson
; lt;/error:framegt; lt;/error:stackgt; lt;/error:errorgt; Best Regards, Kashif Khan * * -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General

Re: [MarkLogic Dev General] Can't re-install MarkLogic on Mac Lion

2012-01-23 Thread John Snelson
there preventing him from installing any version of MarkLogic now? thanks, Ryan -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list

Re: [MarkLogic Dev General] xdmp:current-last() and xdmp:current-position()

2012-01-06 Thread John Snelson
Hi David, To my knowledge, these functions haven't been proposed to the XSLT working group. The place to do so, if you wanted to, would be here: https://www.w3.org/Bugs/Public/ John On 5 Jan 2012, at 03:22, David Sewell wrote: These two XSLT extension functions (see

Re: [MarkLogic Dev General] non-ascii element names

2011-12-05 Thread John Snelson
this is a cq or browser issue, but can anyone shed any light here? -Mike -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread John Snelson
Software Engineer Epocrates, Inc. d...@epocrates.com mailto:d...@epocrates.com 812-482-5224 -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread John Snelson
-482-5224 -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com

Re: [MarkLogic Dev General] Why does xs:boolean(())=()?

2011-06-20 Thread John Snelson
false? No. The fn:empty() function simply returns true if it's argument is the empty sequence(). Since fn:false() returns a single boolean value, fn:empty() returns false (it's not the empty sequence). However, xs:boolean(()) returns the empty sequence, so fn:empty() returns true. John -- John

Re: [MarkLogic Dev General] op:except?

2011-05-09 Thread John Snelson
please tell me how I can get an equivalent functionality? By the way, I tried c1 - c2, and it doesn't work. thanks, Jakob. [1] http://www.w3.org/TR/xpath-functions/#func-except [2] http://www.w3.org/TR/xpath-functions [3] http://www.w3.org/TR/xpath-functions/#namespace-prefixes -- John

Re: [MarkLogic Dev General] XDMP-UNEXPECTED Error

2011-05-04 Thread John Snelson
://developer.marklogic.com/mailman/listinfo/general -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http

Re: [MarkLogic Dev General] Deferred argument evaluation in cts:highlight

2011-03-07 Thread John Snelson
running, since $cts:text doesn’t appear to exist outside of a call to cts:highlight. Is this a defined part of XQuery or is this MarkLogic-specific? Thanks, Alex -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http

Re: [MarkLogic Dev General] ML 4.2-2 throws error on empty function

2011-02-22 Thread John Snelson
it as something to watch out for. David -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ General mailing list General@developer.marklogic.com http