Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sem.triplePredicate

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

Summary

Returns the predicate 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.triplePredicate(triple);
=>
"predicate"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.