Sorry I put too many questions these days. I have used SPARQL for a while and try to use Cayley for our main triple store for performance reasons.
Can it query triples together instead of just vertices?
For example, there is a graph like this:
S1 P1 O1
S1 P2 O2.
I would like to get pairs of subjects and objects that are connected with a certain predicate, here P1. So if I query like “What are the pairs of S and O connected by P1?”, then it can return S1 and O1 together. (I know I can combine multiple queries like i) get all Ses related to P1, and ii) find Os related to each S with P1. But I wonder if Cayley can optimize this somehow by itself.)
I looked at Gremlin specification, and it can be described by “table” in Gremlin, which seems not to be implemented in Cayley.
Is there another workaround for this?
Additionally, I wonder if there is any plan for Cayley to include SPARQL.