I'm having issues with the Graph OrientDB API in Java.
Problem:
Return vertices (OrientVertex or Vertex?) From a constant local graph database with several vertices / edges created using the console.
So, I was able to query the database from what I now think is the Document API using
graph = factory.getTx();
String string = String.format("select * from V where name like \"%s\"", criteria);
OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<OrientVertex>(string);
List<OrientDocument> results = graph.getRawGraph().command(query).execute();
But this will not work for Tops. How to execute queries that return a list of vertices in my database?
Thanks in advance.
source
share