sem.isIRI( value as xs.anyAtomicType ) as Boolean
Returns true if the argument is an RDF IRI - that is, derived from
type sem:iri
, but not derived from type sem:blank
.
This XQuery function backs up the SPARQL isIRI() and isURI() functions.
This function is a built-in.
Parameters | |
---|---|
value | The value to test. |
var sem = require("/MarkLogic/semantics.xqy"); var triple = sem.triple(sem.iri("subject"), sem.iri("predicate"), "object", sem.iri("foo")); sem.isIRI(sem.tripleSubject(triple)); => true
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.