Hi Gaël, You need to enable the triple-index. You can do that by going to the Admin UI of your MarkLogic installation, navigating to the relevant content database, and toggling the triple index from false to true there. It should be around the 10th edit option, so close to the top. Confirm the change by clicking OK at the top or bottom of the page, and then wait for the reindex to complete. You can follow the progress on the Status tab of that database. Refresh it once in a while to get it updated.
Kind regards, Geert From: <[email protected]<mailto:[email protected]>> on behalf of Gaël YIMEN YIMGA <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Saturday, February 20, 2016 at 5:46 PM To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] [1.0-ml] XDMP-TRPLIDXNOTFOUND: cts:triples() -- Triple index not enabled Hello All, I'm facing an issue in MarkLogic. I ran successfully the following query =================== import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; sem:rdf-insert( ( sem:triple( sem:iri("http://example.org/marklogic/people/John_Smith"), sem:iri("http://example.org/marklogic/predicate/livesIn"), "London" ) , sem:triple( sem:iri("http://example.org/marklogic/people/Jane_Smith"), sem:iri("http://example.org/marklogic/predicate/livesIn"), "London" ) , sem:triple( sem:iri("http://example.org/marklogic/people/Jack_Smith"), sem:iri("http://example.org/marklogic/predicate/livesIn"), "Glasgow" ) ) ) =================== But in a secnond plan, I rand the following to count the number of triples ======= xquery version "1.0-ml"; declare namespace html = "http://www.w3.org/1999/xhtml"; fn:count(cts:triples()); ======= I got the following error in the image below [Images intégrées 1] Your help to fix this will be greatfull. Thanks in advance !!! Gaël. --
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
