[英]What's the best way to reload python query module during development?
我正在為 Memgraph 開發我的第一個查詢模塊。 我試圖找到最好的方法。 我有一個依賴於本地子模塊( firstone )的查詢模塊: 如果我理解正確,如果firstone模塊發生變化,程序仍然使用以前的代碼。 如何在開發過程中重新加載 Python 查詢模塊? ...
[英]What's the best way to reload python query module during development?
我正在為 Memgraph 開發我的第一個查詢模塊。 我試圖找到最好的方法。 我有一個依賴於本地子模塊( firstone )的查詢模塊: 如果我理解正確,如果firstone模塊發生變化,程序仍然使用以前的代碼。 如何在開發過程中重新加載 Python 查詢模塊? ...
[英]Are composite indexes supported in Memgraph?
我可以為任何給定的 label 在多個屬性上創建索引嗎? 我正在運行如下查詢: 我想知道我是否可以創建多個屬性索引,如果不能,是否有查詢匹配多個屬性的節點的好方法? ...
[英]When developing query modules for Memgraph in Python how to get type completion?
我想在 Python 中為 Memgraph 開發查詢模塊時進行類型補全。是否可以添加它? ...
[英]What the difference between Cypher procedure and function in Memgraph?
我看到Cypher既有過程又有功能。 在 Memgraph 的 Cypher 實現中,這兩者有什么區別? ...
[英]Adding packages to memgraph transformation
我正在 python 中編寫 memgraph 轉換。 當我導入諸如“requests”或 .networkx 之類的模塊時,轉換會按預期進行。 我有帶有模式注冊表的 avro 數據,所以我需要反序列化它。 我在這里遵循了 memgraph 示例: https://memgraph.com/docs ...
[英]Problems with temporal types like duration in of the wShortest aggregate function
我有 Memgraph v2.0,似乎像持續時間這樣的時間類型不能成為 wShortest 聚合 function 的一部分。這是我的代碼: 這是wShortest查詢: 我得到的錯誤是Error: Query failed: Calculated weight must be numeric, ...
[英]How to import CSV file (LOAD CSV) from a remote location?
我的 CSV 數據存儲在可以通過 inte.net 訪問的服務器上。 訪問該文件不需要授權。 目前,我使用scp和一些 crone 作業將該文件復制到我的 Memgrpah 服務器。 然后我使用LOAD CSV導入數據。 有沒有辦法做類似LOAD CSV FROM "https://my-serv ...
[英]Are subqueries supported in Memgraph?
我正在使用 Memgraph Platform 2.6.4,我想在查詢中調用子查詢。 例如: 我在 Memgraph 文檔中找不到類似的內容,但在Cypher 最佳實踐博客文章中看到了它。 有沒有辦法在 Memgraph 中運行子查詢? ...
[英]Can I restrict access to properties with Memgraph database?
我看到您有關於基於標簽的訪問控制作為 Memgraph 的企業功能的文檔。 我注意到有基於標簽/類型的安全性,但是有沒有辦法限制對屬性的訪問? ...
[英]Cypher - given relationship, get the nodes
如果我查詢 如何獲取每個已獲取關系的節點以獲取格式結果: 是否有 function,例如type(r)但用於從關系中獲取節點? ...
[英]Can I install and run Memgraph on Amazon Linux?
我想在 Amazon Linux 上運行 Memgraph。我該如何安裝它? 是否有特定於 Amazon Linux 的預構建包? ...
[英]Error when trying to run Memgraph under Ubuntu on WSL: "System has not been booted with systemd as init system (PID 1). Can't operate."
我的設置是 Windows 11 with WSL2 和 Ubuntu 22.04.1 LTS (GNU/Linux 5.15.79.1-microsoft-standard-WSL2 x86_64)。 我按照 說明在 Ubuntu 上安裝 Memgraph,但我一直收到錯誤消息: 我已經嘗試了通 ...
[英]Memgraph 1.6.0 returns error "does not match the detected host platform" on Docker run when using Apple M1
我繼承了一個基於 Memgrpah 1.6.0 的項目。 當我嘗試在我的 M1 power Apple 上運行 docker 時,我收到以下錯誤消息: 我該怎么辦? ...
[英]Can I pass around mgp.ProcCtx and implement parallel graph algorithms in Python that use the actual graph?
我正在使用包含 MAGE 1.5.1 的 Memgraph Platform 2.6.4。 我注意到 MAGE 的代碼中有一個有趣的部分告訴我您可以在服務器上使用多處理。 但是,我可以繞過mgp.ProcCtx並在 Python 中實現使用實際圖形的並行圖形算法,還是我需要像本例中那樣處理圖形表示 ...
[英]Is there something in Memgraph that has the same function as APOC in Neo4j?
我知道 Memgraph 和 Neo4j 都使用 Cypher 作為查詢語言。 我看到 Neo4j 有 APOC(Awesome Procedures on Cypher)。 是否有 Memgraph 版本或 APOC 的替代版本? 我查看了 Memgraph 文檔,但找不到這方面的信息。 ...
[英]Remove property from all nodes in a Neo4j database
我繼承了一個 Neo4j 數據庫,至少可以說這個數據庫很大。 我一直在研究它並注意到我們在每個未使用的節點中存儲了一個大字符串。 假設我們有幾百萬個名為Post的節點,每個Post都有Text 。 我想從整個數據庫中的每個Post中刪除Text 。 有人可以通過 Cypher 指出我這樣做的途徑嗎? ...
[英]Can I bulk delete one node property for all nodes?
我得到的數據 model 具有三個節點,這些節點與三個關系相連。 這是我的數據 model 通過查看 model,為每個國家存儲 2 個和 3 個字母的代碼對我來說毫無意義,因此我想刪除國家/地區的所有 2 個字母的 ISO 代碼。 我嘗試運行以下代碼,但沒有返回。 我應該怎么辦? 有替代方法嗎? ...
[英]How can I get all of the properties related to one node type?
我有一個節點國家。 我知道這個節點有一些屬性,但我不知道是哪個。 我的意思是,我知道,因為我看過 model。這是我在文檔中找到的內容: 我知道如果我跑 我會得到一個特定屬性的結果。 是否有一個查詢會返回類似的結果: name, iso_2_code, iso_3_code, region, su ...
[英]Can I use case insensitive regex in Cypher query?
我正在使用 Memgraph Platform 2.6.4,我似乎無法將(?i)用於不區分大小寫的正則表達式。 它拋出"Invalid special open parenthesis"錯誤。 解決這個問題的最佳方法是什么? ...
[英]Neo4j query for getting multiple connected nodes
在我的圖中,我想獲得某個節點的一級、二級和三級鄰居。 如果我的圖是A -> B -> C -> D -> E ,那么 C 的一級鄰居是 B C 的二級鄰居是 A C 的三級鄰居為無檢查鄰居時,我 go 在邊緣的反方向。 為了獲取這些節點,我編寫了以下查詢。 我意識到此代碼 ...