marklogic

How to handle case-insensitive SPARQL data in MarkLogic

流过昼夜 提交于 2021-02-18 22:01:47
问题 I'm trying to understand how best to handle literals in Marklogic SPARQL data which may be in any case. I'd like to be able to do a case insensitive search but I believe that isn't possible with semantic queries. For a simplistic example I want: SELECT * WHERE { ?s ?p "Red"} and SELECT * WHERE { ?s ?p "red"} to return all values whether the object is "Red", "RED", "red" or "rED". My data is from another source which has variable capitalisation rules. At the moment the only thing I can think

How to handle case-insensitive SPARQL data in MarkLogic

雨燕双飞 提交于 2021-02-18 21:58:37
问题 I'm trying to understand how best to handle literals in Marklogic SPARQL data which may be in any case. I'd like to be able to do a case insensitive search but I believe that isn't possible with semantic queries. For a simplistic example I want: SELECT * WHERE { ?s ?p "Red"} and SELECT * WHERE { ?s ?p "red"} to return all values whether the object is "Red", "RED", "red" or "rED". My data is from another source which has variable capitalisation rules. At the moment the only thing I can think

Query generate 'XDMP-CHILDNODEKIND: $final — element nodes cannot have binary node children' error

Deadly 提交于 2021-02-10 13:55:15
问题 Below is my simple query, that reads all files from a directory and holds all files in $final Variable save in one single file. But when run this query, after taking some time, it prompt [1.0-ml] XDMP-CHILDNODEKIND: $final -- element nodes cannot have binary node children error. let $input-dir :=xdmp:filesystem-directory("d:\work\may\06-05-2019\all- feeds-input-output\clc\log\clc-true-ouput\")/dir:entry let $final := for $each at $i in $input-dir return xdmp:document-get($each/dir:pathname

Errors attempting to run XQuery scripts for single sign on into MarkLogic

荒凉一梦 提交于 2021-02-09 10:57:38
问题 I'm working on using an xquery re-writer script to automate the login for a Single Sign-On solution. I'm starting with the Admin App Server at port 8001. In the App Server configuration I have: Set authentication = application-level Set url rewriter = rewriter.xqy I have also set the following rewriter.xqy script at the root Admin/ directory on the server. As you can see, just as a simple test, I'm attempting to programmatically login as user "Austin" (a valid user). xquery version "1.0-ml";

Need help rewriting XQuery to avoid expanded tree cache full error in MarkLogic

人走茶凉 提交于 2021-02-08 03:32:39
问题 I am new to XQuery and MarkLogic. I am trying to update documents in MarkLogic and get the extended tree cache full error. Just to get the work done I have increased the expanded tree cache but that is not recommended. I would like to tune this query so that it does not need to simultaneously cache as much XML. Here is my query I have uploaded my query as an image because it was not so pretty when I pasted it on the editor. If any one knows a better way please suggest. Thanks in advance. 回答1:

Need help rewriting XQuery to avoid expanded tree cache full error in MarkLogic

天涯浪子 提交于 2021-02-08 03:32:31
问题 I am new to XQuery and MarkLogic. I am trying to update documents in MarkLogic and get the extended tree cache full error. Just to get the work done I have increased the expanded tree cache but that is not recommended. I would like to tune this query so that it does not need to simultaneously cache as much XML. Here is my query I have uploaded my query as an image because it was not so pretty when I pasted it on the editor. If any one knows a better way please suggest. Thanks in advance. 回答1:

How to use fn:contains(), fn:starts-with() and fn:ends-with in Optic API

瘦欲@ 提交于 2021-01-28 12:22:33
问题 Earlier we used the FLOWR query to satisfy our search requirement, since data is getting increased day by day so we decided to use Indexing for better search performance. Working FLOWR Query (Just Sample) for $doc in collection("col1") where fn:contains($doc//entityName/text(), "USA") return document-uri($doc) above query is working and it returns a document URI, Now we are trying to use Optic API to satisfy the same requirement. We have created an element range index for entityName but not

Could not initialize your DHF project using Gradle

浪子不回头ぞ 提交于 2021-01-27 23:16:45
问题 I have installed the gradle wrapper as mentioned Create a DHF Project Using the DHF Gradle Plugin and then after that when i run the Gradle command gradlew.bat hubInit to initialize datahub Project I am getting error FAILURE: Build failed with an exception. Where: Build file 'FolderPath\build.gradle' line: 2 What went wrong: An exception occurred applying plugin request [id: 'com.marklogic.ml-data-hub', version: '4.3.1'] Failed to apply plugin [id 'com.marklogic.ml-data-hub'] Could not create

Could not initialize your DHF project using Gradle

◇◆丶佛笑我妖孽 提交于 2021-01-27 22:00:33
问题 I have installed the gradle wrapper as mentioned Create a DHF Project Using the DHF Gradle Plugin and then after that when i run the Gradle command gradlew.bat hubInit to initialize datahub Project I am getting error FAILURE: Build failed with an exception. Where: Build file 'FolderPath\build.gradle' line: 2 What went wrong: An exception occurred applying plugin request [id: 'com.marklogic.ml-data-hub', version: '4.3.1'] Failed to apply plugin [id 'com.marklogic.ml-data-hub'] Could not create

ml-gradle xsd for metadata for services

南楼画角 提交于 2021-01-27 20:23:28
问题 I am deploying my resource extensions using ML-Gradle. I want to specify the parameter types and cardinality. What is the format of the metadata.xml for a given marklogic resource service extension ? Is there a documentation or an xsd that I can use ? I did the following but it did not work <?xml version="1.0" encoding="UTF-8"?> <rapi:resource-metadata xmlns:rapi="http://marklogic.com/rest-api"> <rapi:name>crSearch</rapi:name> <rapi:source-format>xquery</rapi:source-format> <rapi:title