Questions tagged [graph-databases]
A graph database uses graph structures with nodes, edges, and properties to represent and store information.
2,650
questions
0
votes
0
answers
18
views
Understanding FastRP vs scaleProperties
I am trying to understand the difference or error I am receiving between these two steps. I followed this tutorial to practice KNN with my own data (https://towardsdatascience.com/create-a-similarity-...
0
votes
1
answer
13
views
Neo4j Bloom Not Showing Property Label
How do I get my neo4j bloom visual to display the lake_year property as the label? In the desktop browser it shows the lake_year property as the label.
0
votes
1
answer
17
views
Neo4j get average relationships
The following nodes relationships
(u:user{id:'some_id'})-[hpl:HAS_PRODUCT_LIST]->(pl:productList)<-[ipl:IN_PRODUCT_LIST]-(p:product)
I need to get the average products per product list.
I tried
...
0
votes
0
answers
9
views
Migrating from one neo4j database in one ec2 machine to neo4j database in other ec-2 machine having different versions
I am having some data stored in my ec2 machine having neo4j version 3.5.. , I want to migrate that to another ec2 machine having neo4j version 4.1. What would be the best stratetgy to do that ?
Both ...
0
votes
1
answer
16
views
No procedure with the name 'gds.beta.kmeans.stream'
I am new to neo4j and trying to run a k-means clustering algo. I recieve this error: "There is no procedure with the name gds.beta.kmeans.stream registered for this database instance. Please ...
0
votes
1
answer
29
views
cypher query iteration for reusability and convienience
currently I have a large amount of small queries in .cypher files that a script runs and updates my graph. All these queries do similar things but have different conditions and I was wondering if ...
1
vote
1
answer
56
views
How to create relationship between two tables in Neo4j
I am new to cypher/neo4j and I have two tables, "site" and "visit",that have already been loaded into neo4j with the correct data types. The "site" table contains a ...
0
votes
0
answers
17
views
Where to find neo4j config files in google vm
Where can I find the neo4j config files in a google vm? I need to uncomment a line in them to allow remote connection to the database.
1
vote
1
answer
50
views
how to create relationship using cypher
I have been learning neo4j/cypher for the last week. I have finally been able to upload two csv files and create a relationship,"captured". However, I am not fully confident in my ...
0
votes
0
answers
13
views
cant access browser for neo4j db set up on google cloud
I get the This site can’t be reached error on chrome when i do https://[EXTERNAL_IP]:7473/browser and put in the actual external ip for the neo4j database. The google VM has a firewall and Ive ...
1
vote
1
answer
28
views
Neo4j data modeling: correct way to specify a source for a statement?
I'm working on a scientific database that contains model statements such as:
"A possible cause of Fibromyalgia is Microglial hyperactivity, as supported by these 10 studies: [...] and ...
0
votes
1
answer
14
views
PyOrient client.command("SELECT X FROM Protein") seems to always return the internal ID of the record (Studio returns the property)
I am trying to develop python programs to set up a multi-omics graph database in OrientDB, starting with the gene-transcript-protein relations from Ensembl.
A completely unexpected problem I have run ...
0
votes
1
answer
19
views
Node Hash in ArangoDB?
I'm using ArangoDB for Graph-Versioning and would be looking for a faster method to evaluate whether or not a Node is the same in two different collections.
Apart from hashing each node before I write ...
0
votes
1
answer
38
views
How to bulk load vertices and edges to an existing AWS Neptune Graph
I have a running AWS Neptune graphDB which is being used in a production environment. I have since identified new vertices that I would like to add that will connect to specific existing vertices in ...
0
votes
1
answer
34
views
Neo4j create node if not exist on relationship creation
With Neo4J, when creating a relationship, I would like to create a node if it does not exist. I can do this using MERGE, but I would like the created node to be of a different type. Is there a way to ...
0
votes
1
answer
22
views
How would I know which one to use Gremlin and Tinkerpop
I would like to implement a graph database in our company and wanted your expert help on this. I have a data model. and want to put it into AWS Neptune, but I don't know if I want Tinkerpop or a ...
0
votes
0
answers
11
views
Query to find the elements from all nodes in orientdb
I am having structure like this in orientdb:
[orientdb structure][1]
From this I want to get aname, bname, cname from nodes.
If I search on basis of bname=bname2 then I need
areaname1 bname2 cname2
...
0
votes
0
answers
18
views
Graph DB and finding shortest path between coordinates
I am evaluating what graph db to use for my use case .
Use Case : The building layout has multiple rooms , R1, R2 , R3 , R4 , R5 ..etc . We can use these 2 paths to reach R5 From R1 .
R1 --> R2 ---&...
0
votes
1
answer
23
views
Combining related information within a cypher query
I have created a knowledge with the nodes and relationships pictured. Each person has any number of jobs and skills connected to them and each Job and Skill can have any number of People connected to ...
0
votes
1
answer
37
views
How to avoid "Multiple properties exist for the provided key, use Vertex.properties(name)"?
How to avoid "Multiple properties exist for the provided key, use Vertex.properties(name)" when the property has multiple values.
Vertex has a property called name and it has multiple values....
1
vote
1
answer
58
views
How to create an JDBC SQL view with graphdb REST API in python
I am working with GraphDB on a knowledge graph and would like to dynamically generate JDBC SQL views using the REST API :
https://graphdb.ontotext.com/documentation/10.0/devhub/rest-api/curl-commands....
0
votes
1
answer
17
views
Neo4j Indexes and Constrains in a JS Application
I am using NodeJS to create a Neo4j application. I want to add constraints like:
CREATE INDEX ON :User(userId)
But I do not know where to place this statement. If run twice, it throws an error of ...
0
votes
1
answer
29
views
Neo4j / Cypher - Conditional counting in Return Statement
Currently I got the following Cypher query:
MATCH (topic:TopicNode)-[r]-(article:ArticleNode)-[b]->(author:AuthorNode)
MATCH (topic)-[v]->(source:SourceNode)
WHERE r.relevancy > 0.002
RETURN ...
1
vote
1
answer
31
views
How to avoid StopIteration in gremlin python?
When the expected vertex or edge is not present in the database, gremlin python raises the exception StopIteration. How to resolve/prevent the exception. Query to return none or empty instead of an ...
0
votes
1
answer
37
views
Neo4J Enforce Unique Relationships bertween Nodes when reading from CSV
In graph building using Neo4j I am having an issue when importing from CSV import a sizable amount of nodes and relationships. This is a recreation of what is happening: The example has 4 ...
0
votes
0
answers
30
views
Best way to mass-insert Edges into ArangoDB?
I'm writing a python converter for Neo4J to ArangoDB and expect +10k Nodes to be imported.
The converter for the Nodes is somewhat trivial but the creator of that database has a rather custom key-...
1
vote
1
answer
57
views
Transitive graph relationship mapping back to the same label
How do I create a transitive relationship which maps back to the same initial label.
I am trying to map data from tables that go something like this :-
A -> B -> C -> A
B has the index ...
3
votes
2
answers
46
views
how to get all database names in neo4j using python?
from neo4j import GraphDatabase
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "password"))
with driver.session() as session:
result = ...
0
votes
0
answers
70
views
python library for visualizing AWS Neptune with SPARQL
I am looking for a python tool that can help me build a visualization dashboard for my AWS Neptune RDF graph database using the SPARQL query language, something that looks similar to Reactome: https://...
2
votes
0
answers
48
views
Complex Cypher Traversal with Math
I'm relatively new to Neo4j and graph databases, so bear with me.
I want to traverse through our Neo4j database in the most efficient way possible. While traversing, I need to do some math along the ...
1
vote
1
answer
44
views
Storing entire documents as node properties
I'm creating a knowledge graph from text documents, This will include document nodes.
I want to store the entire text of these documents as a node property.
Is there anything inherently wrong with ...
0
votes
2
answers
37
views
How to find shortest path limiting the distance from source?
I started to learn Neo4j a few days ago.
I'm using it to find best path and make some analyzes.
The logic is a Person (id, name) can go to a Restaurant (id, name) via some Street (id, name).
The ...
0
votes
1
answer
32
views
Cypher : load csv with multiple null based conditioning(neo4j)
I am new to the cypher query era.
I am trying to load csv and creating the relation between two nodes based on match.
Match between two need is depend on csv data, csv has assignment data like,
Id,...
0
votes
0
answers
25
views
cypher.lenient_create_relationship = true (cypher)
How to set the cypher.lenient_create_relationship = true in neo4j.conf.
I tried to create Relationships using Cypher Query Language but it says no changes later I use OPTIONAL MATCH to forcefully ...
1
vote
0
answers
221
views
Graph databases and Delphi?
I'm interested in storing graph data (nodes linked to each other via relationships) into a database.
The common answers around here recommend to use graph databases instead of SQL-based ones, such as ...
0
votes
1
answer
29
views
I am trying to create the nodes using Cypher with the counter
I am trying to create the nodes using Cypher with the counter how can I do it? I did not find anything helpful in documentation is there anyone who came across this case?
0
votes
1
answer
29
views
How to properly use MATCH inside UNWIND for a Nebula query
I’m currently working with the Nebula graph database for the first time and I’m running into some issues with a query. In terms of the schema, I have “Person” nodes, which have a “name” property, as ...
1
vote
0
answers
51
views
Cannot get posts of subscriptions in neo4j
I have a requirement where I have to get posts of users whom I have subscribed but something seems to be wrong here:
Final query returns nothing but when I run the parts separately I get results:
I ...
0
votes
1
answer
34
views
Neptune DB slow query when using text predications
When trying to find list of users that startsWith some text example :
g.V().hasLabel('user').has('username', startingWith('m')).limit(12).values('username'); //4 Seconds
g.V().hasLabel('user').has('...
0
votes
1
answer
25
views
In Neo4j what's the best practice to store and match specific path if multiple pathes are exist (with different property)
I am a beginner in Neo4j and graph databases.
I want to store scene details. I have 3 actors. They are fighting in the scene. And I want to store who kicked whom in the specific scene. And not in ...
1
vote
1
answer
64
views
Issue in Cypher Query - org.neo4j.internal.kernel.api.exceptions.EntityNotFoundException
I am performing below steps using cypher query. I am getting error in step 3. I have listed all steps below. Please help me to achieve expected output.
Step 1- Load data and define properties of nodes ...
0
votes
1
answer
42
views
Why CommitAsync does not complete in Gremlin .NET Transactions
I am having trouble with gremlin .NET
Gremlin server: 3.6.0
Gremlin .NET: 3.6.0
Code:
var gremlinServer = new GremlinServer("localhost", 8182);
ConnectionPoolSettings connectionPoolSettings =...
0
votes
0
answers
39
views
Could anyone translate this emit().repeat() Gremlin Query to ExRam.GremLinq
I am trying to translate this query to GremLinq
g.V().has("Role", "name", within("Admin", "Super Admin"))
.emit()
.repeat(out('IsParentOf'))
.out('...
1
vote
1
answer
26
views
neo4j query result changed base on return node and properties
I have a query with 2 different return nodes. My question is why when I return m2 node, result will change and when remove m2 node from return statement, result will change too. result dcount change ...
1
vote
1
answer
109
views
Neptune and Gremlin - wild CPU utilization
Issue
I'm seeing extremely high CPU utilization when making [what seems like] a fairly common ask to a graph database. In fact, the utilization is so large that Amazon Neptune seems to "tap out&...
0
votes
2
answers
21
views
Neo4J - unable to create relationships (30,000)
I've got two csv files Job (30,000 entries) and Cat (30 entries) imported into neo4j and am trying to create a relationship between them
Each Job has a cat_ID and Cat contains the category name and ID
...
1
vote
1
answer
38
views
Update PageRank of Existing Dataset in Janus / Nebula Graph Database
I’m using JanusGraph / Nebula Graph to calculate the page rank of a super large dataset (hundreds of billions of pages, trillions of edges). Every day tens of millions of new pages are indexed & I ...
1
vote
1
answer
43
views
What is the difference between Memgraph Docker images?
I can see that Memgraph has a couple of Docker images available on the Docker Hub. There is: memgraph-platform, memgraph-mage and memgraph image. What is the difference between those three?
0
votes
0
answers
13
views
Migrating Relational data to Agensgraph
I am trying to convert relational data from postgreSQL to Agensgraph , where I have 8 tables having more than 80,000 rows in most of tables. I tried the fdw extension but its give me some error Fdw ...