Marklogic Java API 語義三重搜索 (Marklogic Java API Semantic Triple Search)


問題描述

Marklogic Java API 語義三重搜索 (Marklogic Java API Semantic Triple Search)

我將 json 文檔插入服務器並使用該文檔創建了三元組。使用 SPARQL 處理三元組並將新的三元組作為輸出插入到集合中。現在我想在三元組集合中搜索。像 Java Client api(google like)中的文檔搜索一樣,可以三元組搜索嗎?如果不是,請針對上述情況提出任何解決方案。


參考解法

方法 1:

You have multiple powerful options at your disposal here. I'll highlight two:

I suggest you do either on a collection holding your original JSON documents, because you know exactly what's in each one and how your string queries will match. If you instead query the collection containing triples you created with SPARQL, those are managed triples which means many triples are in one document so your constraining queries won't narrow as precisely.

If you really want to search your managed triples you could use this more precise but less efficient approach:

方法 2:

There is always the MarkLogic Query Console (http://localhost:8000/qconsole/). Create a new tab, choose the Query type as SPARQL Query (or Update), and choose the Content Source containing the triples.

Place the SPARQL query in the body of the Query console and the query will be executed across all triples in the selected Content Source/

(by LogeshSam Meffordscotthenninger)

參考文件

  1. Marklogic Java API Semantic Triple Search (CC BY‑SA 2.5/3.0/4.0)

#marklogic #marklogic-8






相關問題

Marklogic 是否有 liquibase 等價物 (Is there a liquibase equivalent for Marklogic)

Cách hiệu quả nhất để lưu trữ các cặp tên / giá trị trong cơ sở dữ liệu Marklogic là gì (What is the most efficient way to store name/value pairs in a Marklogic database)

對特定用戶隱藏 marklogic 數據庫(權限) (Hide a marklogic database to specific user (permissions))

在 marklogic 中使用 xquery 返回搜索結果 (Returning search results using xquery in marklogic)

創建僅對給定數據庫具有權限的用戶 (Create user that has permission only to given database)

Marklogic Java API 語義三重搜索 (Marklogic Java API Semantic Triple Search)

marklogic mlcp 自定義轉換將聚合文檔拆分為多個文件 (marklogic mlcp custom transform split aggregate document to multiple files)

如果某些文檔具有空值元素,則在日期字段上使用 element-range-query 搜索 (Search with element-range-query on date field if some of the documents have empty-value elements)

使用 MarkLogic 節點 API,我可以通過 LDAP 進行身份驗證嗎? (Using the MarkLogic Node API, can I authenticate through LDAP?)

如何使用 xdmp:node-insert 在 Marklogic 的 JSON 文檔中插入節點 (how to insert node in JSON doc in Marklogic using xdmp:node-insert)

我們可以在不同版本的 marklogic 之間進行森林或數據複製嗎? (Can we have forests or data replication between different versions of marklogic?)

換行在 XQuery 的行尾留下額外的空間 (Line feed leaving extra space at end of line in XQuery)







留言討論