MarkLogic 12 EA 1 Product Documentation
sem.tripleObject

sem.tripleObject(
   triple as sem.triple
) as xs.anyAtomicType

Summary

Returns the object from a sem:triple value.

This function is a built-in.

Parameters
triple The triple.

Example

var sem = require("/MarkLogic/semantics.xqy");

var triple = sem.triple(sem.iri("subject"), sem.iri("predicate"), "object");
sem.tripleObject(triple);
=>
"object"
Powered by MarkLogic Server | Terms of Use | Privacy Policy