On 14 August 2014 11:33, Nicolas Delsaux <[email protected]> wrote:

> Hi
> I'm currently trying to make sure my graph mapping library (
> https://github.com/Riduidel/gaedo) supports OrientDB.
> I must confess first tests are not that satisfying : it seems there are
> invalid characters for property names, contrary to what Blueprints doc
> states there http://www.tinkerpop.com/docs/javadocs/blueprints/2.5.0/com/
> tinkerpop/blueprints/Element.html#setProperty(java.lang.
> String,%20java.lang.Object)
>
> > key - the string key of the property
>
> Indeed, when I try to call the setproperty method with
>
> key = "java.util.Map$Entry___key"
> value = "java.lang.String___a"
>
> nothing happens. AT ALL.
> is there a reason for this lack of reaction of orientDB ?
>
> Is there a way to configure the way orientDB reacts when encountering an
> unsupported character in property key or value ?
>
> Could it be possible to add this limitation to Blueprints implementation
> to the https://github.com/orientechnologies/orientdb/
> wiki/Graph-Database-Tinkerpop page ?
>

You can configure OrientDB to be less strict than Blueprints that doesn't
accept NULL values and the "id" property name:

graph.setStandardElementConstraints(false);

But in your case the problem seems to be the dot (.). In OrientDB with the
dot-notation you cross embedded objects (this isn't supported by Blueprints
and Neo4J).

Can you try to set this against vertex/edge before to set the property?

v.getRecord().setAllowChainedAccess(false);

If this works (please let me know it), we can fix BP implementation to
implicitly call this method against all the vertex/edge underlying
documents.


> I must - to my big disappointment - confess this code is tested and works
> exactly as expected with two other Graph implementations : TinkerGraph
> (quite logical) and neo4j.
>
> Do I have to plan a long adaptation delay to have my API working with
> OrientDB ?
>

Strange property names apart, which are the other problems (I already saw
other email about transactions & indexes) ?

Lvc@



>
> Thanks
>
> --
> Nicolas Delsaux
>
> --
>
> --- You received this message because you are subscribed to the Google
> Groups "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to