cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Create two new node based on properties

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

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 

Oh thanks my bad 😛