New Features
-
Zef repo has been open-sourced under the Apache License 2.0.
-
New traversal syntax...
- Instead of
z >> RT.Somethingusez | Out[RT.Something] - Instead of
z >> L[RT.Something]usez | Outs[RT.Something] - Instead of
z < RT.Somethingusez | in_rel[RT.Something]
- Instead of
-
The traversal operators now can take another argument to filter on the target/source, e.g.
z | Outs[RT.Something][ET.SpecificEntity]. -
PyPI packages. Zef can now be installed via
pip install zef. -
General movement from predicates to types:
is_acompares its argument to a type.- Use
Is[<predicate>]to create a type which is the set of all items where the predicate is satisfied.
-
pattern matching with the
matchoperator. match_apply has been retired, if a constant value is to be returned this is easily done with a lambda. -
the
Patternfunction: returns a ValueType and allows very concise pattern matching on dictionaries and lists. -
Preliminary Windows support.
New ZefOps
-
schemato show delegate entities/relations. Note: the output of this is not stable and likely to change. -
eventson aZefRefreplacesinstantiation_tx,termination_tx, etc... -
eventson aTXreplacesinstantiated,terminated, etc... -
absorbedandwithout_absorbedmanipulate parameters absorbed into ZefOps.
Bug Fixes
- Many fixes!
Deprecations
-
New traversal syntax with ZefOps.
- The operators
>>,<<,>,<are deprecated along with theL[...]andO[...]syntax. - Instead use the operators like the following examples for single values:
z | Out[...]returns a ZefRef to the target of the outgoing relationz | In[...]z | out_rel[...]the ZefRef to the relation itself is returnedz | in_rel[...]
- Multiple relations are obtained with a plural form of these operators:
z | Outs[...]for multary relations (a list of ZefRef is returned)z | Ins[...]z | out_rels[...]z | in_rels[...]
- The operators
-
match_applyis retired formatch.