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 

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.