Giter VIP home page Giter VIP logo

Comments (5)

mpollmeier avatar mpollmeier commented on June 15, 2024

Sorry for the late reply, I'm only just back from holidays.

You can configure this behaviour (prefixing V_ and E_) on OrientGraphFactory.setLabelAsClassName(boolean)

Are you using an existing orientdb that was not created with this driver?

from orientdb-gremlin.

Krever avatar Krever commented on June 15, 2024

No problem, I hope you've had happy holidays.

Yes, I'm using existing DB. I prefer to create a schema by script rather than by code.

Thanks for your help :)

from orientdb-gremlin.

wildroco avatar wildroco commented on June 15, 2024

Hi,

Why I have to query like this to get vertices by class?
graph.V.has("@Class","xxx")
graph.V.hasLabel("class:xxx")

not like this? (by greamlin-scala syntax)
graph.V.has("xxx")

Is this difference come from nature of orientDB..?

...anyway, thx to your contributions very much!

from orientdb-gremlin.

mpollmeier avatar mpollmeier commented on June 15, 2024

has(String) always checks for property values, not class names, this is true for all gremlin variants and databases. not sure if I understood you correctly...?

from orientdb-gremlin.

wildroco avatar wildroco commented on June 15, 2024

Oh, sorry.

I mean: hasLabel(string)

And I found it works fine after some test.

Anyway, I queried my class "A" using
g. V. hasLabel("A")

and it seems works below too.
g. V. hasLabel("class:A")

Is there any difference or better way between them?

from orientdb-gremlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.