Loading TOC...

sem.isIRI

sem.isIRI(
   $value as xs.anyAtomicType
) as Boolean

Summary

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.

Example

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 

Comments

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