sem:isIRI( $value as xs:anyAtomicType ) as xs: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. |
xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "MarkLogic/semantics.xqy"; let $triple := sem:triple(sem:iri("subject"), sem:iri("predicate"), "object", sem:iri("foo")) return sem:isIRI(sem:triple-subject($triple)) => (: Returns fn:true. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.