well, the error was a typo. I solved the problem by adding a second label (node) to every node in the model, andcreating a constraint on the uuid element/attribute.
Performance have to beisured, but seems not being a problem Paolo On Sunday, June 25, 2017 at 7:20:24 PM UTC+2, Paolo Di Pietro wrote: > > Hi all, Lot of years ago, I discussed with some neo4j engineers about the > ability to query an unknown object given it's uuid. > > At that time, the answer was that there was no general db index in neo4j. > > Now, I have the same problem to solve: > > each node I create has an unique id (uuid in the form <nx:u-<uuid>-?v=n> > where ns is the namespace, uuid is a unique uuid and v=n is the version > number of the element. > > I'd like to have the ability to run the following cypher query: > > match (n) where n:about = 'ki:u-SSD-v5.0?v=2' return n; > > which actually return nothing. > > The following query > > match (n:'mm:ontology') where n:about = 'ki:u-SSD-v5.0?v=2' return n; > > returns what I need, despite the fact that at query time I don't know the > element type. > > Can anyone help on this? > > Paolo > -- You received this message because you are subscribed to the Google Groups "Neo4j" 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.
