Loading TOC...

sem.graphDelete

sem.graphDelete(
   $graphname as sem.iri
) as null

Summary

This function deletes a named graph, and its graph document containing metadata, from the database. This is an update function that deletes documents with a root element of sem:triples. All other documents are not affected.

Parameters
$graphnameThe name of the graph to delete.

Usage Notes

The default graph document is restored after you use graph-delete to delete graphs.

Example

declareUpdate();
var sem = require("/MarkLogic/semantics.xqy");
sem.graphDelete(sem.iri("bookgraph")); 

Comments

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