In Neo4j möchte ich alle Substantive oder Eigennamen durch eine bestimmte Beziehung beziehen. Ich habe eine Abfrage wie folgtWeniger ausführliche ODER Bedingung in Chiffre
match (n)-[r]->(n1) where n:NOUN and n1:NOUN or n:NOUN and n1:PROPN or n:PROPN and n1:NOUN or n1:PROPN and n:PROPN return r
Gibt es etwas kompakter es zu tun? Wie:
match (n:[NOUN, PROPN])-[r]->(n1:[NOUN, PROPN]) return r
das ist definitiv eine gute Idee –