<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sem.isLiteral.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sem.isLiteral</api:function-name><api:suggest>sem.isliteral</api:suggest><api:suggest>sem</api:suggest><api:suggest>isliteral</api:suggest><api:function-link mode="xquery" fullname="sem:isLiteral">/apidoc/8.0/sem:isLiteral.xml</api:function-link><api:function mode="javascript" name="isLiteral" type="builtin" lib="sem" category="Semantics" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sem" namespace="http://marklogic.com/semantics" fullname="sem.isLiteral"><api:summary>
  Returns true if the argument is an RDF literal - that is, derived from
  type <code xmlns="http://www.w3.org/1999/xhtml">xs:anyAtomicType</code>, but not derived from type <code xmlns="http://www.w3.org/1999/xhtml">sem:iri</code>.
  This XQuery function backs up the SPARQL isLiteral() function.
  <p xmlns="http://www.w3.org/1999/xhtml">This function is a built-in.</p>
</api:summary><api:params><api:param name="value" type="xs:anyAtomicType"><api:param-description>
    The value to test.
  </api:param-description><api:param-name>value</api:param-name><api:param-type>xs.anyAtomicType</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
sem.isLiteral("subject text");
=&gt;
true
</pre></api:example></api:function></api:function-page>