简体   繁体   中英

Can we put triples in specific graph or collections for Triples generated via TDE?

I know that TDE generates unmanaged triples, and unmanaged triples are not part of graphs by default. So is there any way to put these TDE generated triples in specific graphs or collections?

You can't specify a named graph. Unmanaged triples will inherit the collection of the document.

https://docs.marklogic.com/guide/semantics/tde#id_67662

An extracted triples graph cannot be specified through the template. The graph is implicitly defined by the document's collection similar to embedded triples.

https://www.marklogic.com/blog/managed-vs-unmanaged-triples/

Document collections are what's important here. MarkLogic collections are used to represent the notion of graphs in SPARQL. Graphs are useful in addressing subsets of triples. For instance, you could use graphs to distinguish triples from different sources, or triples about different topics, or triples with different quality measures. These are just a few of the many ways in which you could use graphs. Document collections have the very same purpose, but for documents. Since all triples are persisted in documents in the database, using document collections for graphs makes a lot of sense.

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