Loading TOC...

sem.tripleSubject

sem.tripleSubject(
   $triple as sem.triple
) as xs.anyAtomicType

Summary

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

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy