Comments (5)
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.
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.
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.
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.
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)
- How to get vertex class name with gremlin console? HOT 1
- Groovy version conflect with gremlin server HOT 2
- gremlin-python tutorial test_000.py fails
- Queries with two or more parameters don't work. HOT 7
- Inconsistent transaction beheviour w/remote: HOT 2
- Cannot create property-index on graph loaded via gremlin API HOT 2
- java.lang.IllegalArgumentException: rawElement must not be null! HOT 12
- Maven Group ID in pom.xml is not the official one? HOT 3
- First run problems on OSX (3.1.0) HOT 14
- gremlin traversalsource io step not supported
- gremlin.sh exits immediately
- java.lang.NegativeArraySizeException on g.V().drop()
- error on installing orientdb plugin into gremlin console HOT 1
- How to use GraphComputer with gremlinpython or java api to make some computation like pageRank algorithme ?
- [rl-vulnerability_alerts-1] Violation against OSS Rules of Play HOT 1
- [rl-reuse_tool-2] Violation against OSS Rules of Play HOT 1
- [rl-reuse_tool-1] Violation against OSS Rules of Play HOT 1
- [rl-reuse_tool-3] Violation against OSS Rules of Play HOT 1
- [rl-reuse_tool-4] Violation against OSS Rules of Play HOT 1
- [rl-vulnerability_alerts-1] Violation against OSS Rules of Play
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orientdb-gremlin.