First, it's worth noting that if you insert your template into MarkLogic, it will automatically put the triples into the index, without the need to materialize them in documents. That would be the standard approach. Take a look at the Template Driven Extraction tutorial for example code showing how to do this. (The first part of the tutorial works with rows, but the second part addresses triples.)
That said, if you really want to material the triples, then you should use sem:rdf-insert
to do it. This way, you'll be creating managed triples . If you want to isolate them from other triples for any reason, specify a graph in the sem:rdf-insert
call.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.