cancel
Showing results for 
Search instead for 
Did you mean: 

Create two new node based on properties

SachaClem
Node

Hello ! 
Hope your doing well 🙂 

I am struggling with a thing on neo4j for some day now and i dont know how to do.
I have created a graph with neosemantic, my file was a TTL based on a graphQL query. it created 9400 Node labels Resource with some properties URI & ID 
I need to create two Node labels based on the Resource Labels property URI. The example of the URI property is as follow htp://bms/message and htp://bms/abp 
#Neo4j Graph Platform 



1 ACCEPTED SOLUTION

I would figure the remove needs to come before the return 

View solution in original post

3 REPLIES 3

SachaClem
Node

Figure it out how to do: 

MATCH (n:Resource)
WHERE n.uri CONTAINS 'http://bms/message'
SET n:MSG
RETURN n

MATCH (n:Resource)
WHERE n.uri CONTAINS 'http://bms/abp'
SET n:ABP
RETURN n
Remove n: Resource

I would figure the remove needs to come before the return 

SachaClem
Node

Oh thanks my bad 😛