Re: [MarkLogic Dev General] Roxy Deployment Error

2017-08-22 Thread Darrel Cox
Dave, The admin console for server shows 8.0-6 and "ml qa info | grep server-version" reports /> ml qa info | grep server-version ml.server-version: 8 Thanks, Darrel Darrel Cox Sr. Consultant | Avalon Consulting, LLC M: 703-585-0392 LinkedIn

[MarkLogic Dev General] MarkLogic as pubic sparql endpoint?

2017-08-22 Thread Tony Greaves
Wondering of someone can show me how to achieve what is required to use MarkLogic (v9) as would be required for a public SPARQL endpoint, in particular 1) Limit SPARQL queries to read only (not CRUD!); 1) authentication turned off for appserver *for SPARQL queries*; 2) results returned in W3C SPAR

Re: [MarkLogic Dev General] Large job processing question.

2017-08-22 Thread Sam Mefford
We generally write external applications for long-running jobs. Java is a popular language for such jobs, and our Data Movement SDK (DMSDK) is written specifically to support such jobs. You'd still need to write the Java code to travers

Re: [MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-22 Thread Eliot Kimber
If I sum the counts of each bucket calculated using cts:frequency() it matches the total calculated using the initial result from the element-values() query, so I guess the 10,000 count is a side effect of some internal lexicon implementation magic. Cheers, E. -- Eliot Kimber http://contrext

Re: [MarkLogic Dev General] Large job processing question.

2017-08-22 Thread Eliot Kimber
The Task Manager will queue the jobs. It will only process as many at once as there are threads configured for the Task Manager. In my profiling application I’m queueing 10s of 1000s of 10-doc tasks. My Task Manager has a maximum queue of 100,000 tasks. If I do a small number of large tasks

Re: [MarkLogic Dev General] Roxy Deployment Error

2017-08-22 Thread Dave Cassel
The "#" message generally means there's a problem trying to connect to the server. Make sure that the "server-version" property matches the version of MarkLogic you're working with. If they were upgraded, perhaps "ml qa info | grep server-version" didn't get updated when MarkLogic did. -- Dave

Re: [MarkLogic Dev General] Large job processing question.

2017-08-22 Thread Ladner, Eric (Eric.Ladner)
Is it smart enough not to spawn 100,000 jobs at once and swamp the system? Eric Ladner Systems Analyst eric.lad...@chevron.com From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: August 22

Re: [MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-22 Thread Eliot Kimber
I think this is again my weak understanding of lexicons and frequency counting. If I change my code to sum the frequencies of the durations in each range then I get more sensible numbers, e.g.: let $count := sum(for $dur in $durations[. lt $upper-bound][. ge $lower-bound] return cts:frequency(

[MarkLogic Dev General] Roxy Deployment Error

2017-08-22 Thread Darrel Cox
I'm having an issue with a Roxy deployment. The "*ml bootstrap*" works fine. However, I'm getting the error below when I try to do a "*ml * *deploy content*" or "*ml * *deploy modules*". When it runs locally (on my Mac) they work fine on a new Marklogic installation using both version 8.0-6 and 9.

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

2017-08-22 Thread Eliot Kimber
A closer reading of the manual reveals my mistake: I needed to specify "item-frequency" in the element-values() query. Without it I was getting the count of *fragments* with the value, not the total number of occurrences. When I add the “item-frequency” option to element-values() then I get the

[MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-22 Thread Eliot Kimber
Using ML 8.0-3.2 As part of my profiling application I run a large number of profiles, storing the profiler results back to the database. I’m then extracting the times from the profiling data to create histograms and do other analysis. My first attempt to do this with buckets ran into the probl

Re: [MarkLogic Dev General] Large job processing question.

2017-08-22 Thread Geert Josten
Hi Eric, Personally, I would probably let go of the all-docs-at-once approach, and spawn processes for each input (sub)folder, and potentially for batches or individual files in any folder as well. Same for the existing documents, spawn a process for batches or individual docs that check if the

[MarkLogic Dev General] Large job processing question.

2017-08-22 Thread Ladner, Eric (Eric.Ladner)
We have some large jobs (ingestion and validation of unstructured documents) that have timeout issues. The way the jobs are structured is structured is that the first job checks that all the existing documents are valid (still exists on the file system). It does this in two steps: 1) gath

[MarkLogic Dev General] Bug in SPARQL date functions

2017-08-22 Thread Weissenberg, Norbert
Hello, using Query Console of MarkLogic-9.0-1.1-amd64, executing PREFIX xs: SELECT (year("2017-08-17"^^xs:date) AS ?year) WHERE {} returns null, while the following returns "2017"^^xs:integer correctly. Same with other SPARQL date functions and with xs:datetime

Re: [MarkLogic Dev General] SPARQL 'SERVICE' ?

2017-08-22 Thread Weissenberg, Norbert
Hi Eric, as defined in https://www.w3.org/TR/sparql11-query/, SPARQL 1.1 is defined by "eleven SPARQL 1.1 Recommendations produced by the SPARQL Working Group: 1. SPARQL 1.1 Overview 2. SPARQ

Re: [MarkLogic Dev General] Search result estimation: issue with json array structure

2017-08-22 Thread APEL Holger
Ah yes, I got the cts.andQuery parameter wrong. But what I really want to do is using the Java API to query my pojos StructuredQueryBuilder qb = new StructuredQueryBuilder(); StructuredQueryDefinition q = qb.containerQuery(qb.jsonProperty("stages"), qb.and( qb.value(qb.jsonProperty("s