I am trying to wrap my head around using predicate and all, but the minimal examples in the documentation don’t provide a lot of detail.
I understand how the examples provided work, but I don’t understand the following.
- Why is can predicate be expanded if it is saved as a variable first, but can’t be expanded in the form
expand(_predicate_)which gives the following error -
Invalid argument _predicate_ in expand()? In contrast,
expand(_all_)works without being saved to a variable.
- Why do things like count and aliases not take affect on
_predicate? Instead it acts just as if
_predicate_was the only statement on that line.
- Why does
- I guess the root question that got me exploring all of this, is there a way that I can get a count of how many predicates have been assigned to an entity? It would be very useful for scoring/ordering to be able to determine the overall “connectedness” of nodes/entities.