Skip to content

Gremlin-Visualizer fails to execute text search queries #78

@lauratinnel

Description

@lauratinnel

Seeing this in the ASCEND branch. I have not yet tested in the CyGAME and CAM4DM branches, but I suspect they are the same.

When writing and executing custom Gremlin queries via the visualizer, one would expect to be able to use standard Gremlin text based queries. E.g.,

 g.V().has('name', TextP.startingWith('prefix'))

 g.V().has('name', TextP.containing('substring'))

 g.V().has('name', TextP.endingWith('suffix'))

 g.V().has('name', P.or(TextP.containing('substring1'), TextP.containing('substring2')))

 g.V().filter {
    def text = it.get().value('object_handle')
    text.contains('anchoring_bias.') || text.contains('confirmation_bias.')
}

g.V().has('name', P.or(TextP.containing('anchoring_bias'), TextP.containing('confirmation_bias'), TextP.containing('loss_aversion'))).as('a').bothE().as('b').bothV().select('a', 'b'

None of these work. Given Issue #17 , we need an alternative way to build canned queries. I am reading something about these queries having to be implemented in the Groovy interface and that they are there in the Java implementation of Gremlin. Dunno.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions