neo4j

Can arrows get lables in Neo4J

只谈情不闲聊 提交于 2019-12-12 01:23:49
问题 Can arrows between nodes get labels similar to nodes in Neo4J. Nodes can be annotated by labels in Neo4J. If the answer is NO, Is there any graphDB that arrows can accept labels as well as nodes and these labels are used in their corresponding query languages? UPDATE: here a similar question is asked, and the answer was NO! anything changed since then? 回答1: A relationship ("arrow") has a single "type", which is similar to a node label. However, a relationship can only have a single type. 来源:

Neo4j label index searches with wildcards

情到浓时终转凉″ 提交于 2019-12-12 01:13:40
问题 I'm trying out the new label feature in Neo4j 2.0 (M3), especially in combination with indexing. Lucene indexes seem to be referred to as legacy, so I guess Label indexes are the way to go. How should I write wildcard queries with this new approach? Am I missing something in the code below or is this feature yet to be implemented? You could do this with regex (as shown below), but than you don't use the schema index. public class IndexedLabelTest { public static void main(final String[] args)

Unable to use Neo4j 1.9.M05

安稳与你 提交于 2019-12-12 01:08:17
问题 When I add Neo4j 1.9.M05 to my project dependencies (with maven), I'm getting the following error in eclipse: ArtifactDescriptorException: Failed to read artifact descriptor for org.neo4j:neo4j-kernel:jar:tests:1.9.M05: UnresolvableModelException: Failure to find org.neo4j:parent:pom:1.9.M05 in http://m2.neo4j.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of neo4j-release-repository has elapsed or updates are forced This seems to

Neo4j: Error for relationship property: Property values can only be of primitive types or arrays thereof

别说谁变了你拦得住时间么 提交于 2019-12-12 01:05:38
问题 According to https://docs.spring.io/spring-data/neo4j/docs/4.0.0.M1/reference/html/#__relationship_connecting_node_entities I want to save nodes that have a 1:1 relation to another complex node. Used Neo4j version: 3.2.6 Following use case: For uploaded files specific information about these files are stored into Neo4j as an entity of FileHashEntity Users who are uploading files are present as user objects in Neo4j: BaseUserEntity and UserEntity FileHashEntity has a relationship to the user

How to model two nodes related through a third node in neo4j?

时光怂恿深爱的人放手 提交于 2019-12-12 00:42:06
问题 I'm learning Neo4j and currently whiteboarding the scenario i'm thinking of. I have 3 products P1, P2, P3. P1 and P2 are standalone products. P3 is an adapter that helps you connect P1 and P2. I thought of P1-[connects_to]-P2 , with P3 as a property of the connects_to relationship, but then how'd I store P3's properties? if i create all three products as nodes and do P1-[connects_to]-P3 and P2-[connects_to]-P3 , that's not really representative of the domain. How do i model this in Neo4j? 回答1

Why the query works in neo4jshell but not in neoclipse?

六月ゝ 毕业季﹏ 提交于 2019-12-12 00:39:44
问题 QUERY START t=node(17) MATCH player-[:PLAYED_WITH_TEAM]->t-[:CONTESTED_IN]->league WITH player.name as playerName, league.startDate as startDate, league.name as leagueName ORDER BY startDate RETURN playerName, collect(leagueName); NeoClipse ERROR NeoShell Output neo4j-sh (0)$ START t=node(17) > MATCH player-[:PLAYED_WITH_TEAM]->t-[:CONTESTED_IN]->league > WITH player.name as playerName, league.startDate as startDate, league.name as leagueName > ORDER BY startDate > RETURN playerName, collect

spring neo4j: how can I search data by index field case insensitive?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 00:11:45
问题 Domain class as following: @NodeEntity public class Product{ private Long nodeId; @Indexed(indexName = "productCode") private String code; ... } Repository class: public interface ProductRepository extends GraphRepository<Product>{ @Query(value="start product=node:productCode(code={0}) return product") public Set<Product> findProducts(String code); } how can I make code lookup case insensitive? I try regular expression and fail.Code as following: public interface ProductRepository extends

is it possible to iterate though property of relationship cypher

♀尐吖头ヾ 提交于 2019-12-11 23:48:05
问题 This is related to this question: How to store properties of a neo4j node as an array? I would like to iterate through a property of a relationship and check max of that value and assign a new relationship of node1 and node2 and delete node1 from the pool and move to the second one. In other words as in the context of my previous question, How to assign a given employee to a given position based max(r.score) and move to the other employee who has a maximum r.score for another position? Thanks

Nodes with variable attributes, how to model, index and query?

情到浓时终转凉″ 提交于 2019-12-11 23:36:57
问题 I have the following setup: user and event nodes, with (user)-[:PUBLISH]->(event). each user and event both have multiple properties. These properties vary significantly from user to user (and event to event) which makes it hard to create indexes for them, however I need to query both the users and event by these attributes in a fast manner. The simplest form of query I need to perform: find all users with properties {x: 'a', ...} that have published at least one event with properties { y: 'b

neo4j cypher json giving http 500 server erro

回眸只為那壹抹淺笑 提交于 2019-12-11 23:35:52
问题 I need to create a few nodes in neo4j and for that I am using json and curl inside my c++ program. This is the request and response that I get back. About to connect() to localhost port 7474 (#0) Trying ::1... Connection refused Trying 127.0.0.1... Connected to localhost (127.0.0.1) port 7474 (#0) POST /db/data/cypher HTTP/1.1 Host: localhost:7474 Accept: */* Content-Type: application/json Content-Length: 4294967295 Expect: 100-continue HTTP/1.1 100 Continue { "params" : { "props" : {