Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sem:describe

sem:describe(
   $iris as sem:iri*
) as sem:triple*

Summary

This function implements the Concise Bounded Description (CBD) specification to describe one or more nodes in the graph. This implementation does not provide any reified statements, and will return a maximum of 9,999 triples.

Parameters
iris A set of IRIs representing graph nodes.

Example

xquery version "1.0-ml"; 
 
import module namespace sem = "http://marklogic.com/semantics" 
      at "/MarkLogic/semantics.xqy";
sem:describe(sem:iri("urn:isbn:9780080540160"))
	
=>
   	sem:triple(sem:iri("urn:isbn:9780080540160"),
	sem:iri("http://purl.org/dc/elements/1.1/title"),
	"Query XML,
XQuery, XPath, and SQL/XML in context")
    

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