sem.tripleSubject( triple as sem.triple ) as xs.anyAtomicType
Returns the subject from a sem:triple
value.
This function is a built-in.
Parameters | |
---|---|
triple | The triple. |
var sem = require("/MarkLogic/semantics.xqy"); var triple = sem.triple(sem.iri("subject"), sem.iri("predicate"), "object"); sem.tripleSubject(triple); => "subject"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.