cayleygraph / cayley

An open-source graph database
https://cayley.io
Apache License 2.0
14.83k stars 1.25k forks source link

LinkedQL: Match #905

Closed iddan closed 4 years ago

iddan commented 4 years ago

Depends on #904 Define a Match step in LinkedQL that accepts a subgraph pattern and return entities matching the graph. Example:

Vertex().Match({ "http://example.org/likes": "http://example.org/bob" })

Will return all the entities which have a property pointing to Bob.


This change is Reviewable

iddan commented 4 years ago

Quoting the Zen of Python:

"There should be one—and preferably only one—obvious way to do it."

Should we remove steps that can be replaced with .match()? Steps that can be easily replaced with .match():