Closed pablopareja closed 9 years ago
The error is in this line from TitanTypedVertexIndex
One thing I don't understand is why it's saying:
The property key is already indexed with the same index name and incompatible characteristics
when that's not true... :question:
Perhaps the DefaultUnique
constructor should be modified so that when trying to create an index that coincides with one that already exists it just simply does nothing ?
I think the problem is originated here:
the part:
alreadyThere.isCompositeIndex()
will always be false in our case, right?
@eparejatobes Should I create a new branch in angulillos-titan
to fix this :question:
hey sorry I didn't get any notifications about this
moved to bio4j/angulillos-titan#11. In general yes, one needs something like createOrGet for indexes, but it should check that you're getting the same exact thing that you wanted to create. It's a bit frustrating that there's not a real datatype for each of the specifications of Titan types (labels, indexes, properties, etc) with a real structural equality; if there were, createOrGet for all of them would be obvious and safe.
fixed in angulillos, closing
We need to change how indices are initialized in the current version since the following error is thrown when running ImportUniprot:
The exception is thrown when
ImportUniprot
is executed for the second time, in this case for TrEMBL XML file We should do something equivalent to thecreateOrGet
method for properties....:space_invader: