简体   繁体   中英

How to insert TRIPLES into ML DB as triples, generated by TDE template

I have template which creates triple from XML. Now I want to insert these triples in ML DB as RDF document/triples. Below is the code which I am using to insert the triples but it is inserted as XML doc and not as triples.

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM