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
[image: 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