MarkLogic 12 EA 1 Product Documentation
sem:triple-predicate

sem:triple-predicate(
   $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

xquery version "1.0-ml";
import module namespace sem = "http://marklogic.com/semantics" 
  at "/MarkLogic/semantics.xqy";

let $triple := sem:triple(sem:iri("subject"), sem:iri("predicate"), "object")

return
    sem:triple-predicate($triple)

(: Returns 'predicate'. :)
Powered by MarkLogic Server | Terms of Use | Privacy Policy