sem:rdf-insert( $triples as sem:triple*, [$options as xs:string*], [$permissions as element], [$collections as xs:string*], [$quality as xs:int?], [$forest-ids as xs:unsignedLong*] ) as xs:string*
This function inserts triples into a specified database as
one or more sem:triples
documents. It also
creates graph metadata for the graph specified by the
"graph" or "override-graph=URI" option.
This is an update function that returns the document URIs of
inserted documents.
sem:rdf-insert
in the
context of SPARQL Update can result in undefined behavior.
xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; sem:rdf-insert(sem:triple(sem:iri("http://example.com/ns/directory#m"), sem:iri("http://example.com/ns/person#firstName"), "Michael")) => /triplestore/74521a908ece2074.xml