But then never used. Except the goTermTypeLabel which is used to create an index:
goTermIdIndex = new TitanTypedVertexIndex.DefaultUnique<>(mgmt, this, GoTerm().id);
goTermIdIndex.makeOrGet(goTermTypeLabel);
There it's not really needed, because you create index once and can just call the same raw().createOrGet(mgmt, goTermType.raw()).
So I think those unused property keys and vertex/edge labels can be removed. Then with https://github.com/bio4j/angulillos/issues/51 there is no much business left in this code and I think it can be made generic.
I'm reading the code of, say
TitanGoGraph.java
, and I see:And these private fields are not used ever. They are assigned in the
initTypes
method:But then never used. Except the
goTermTypeLabel
which is used to create an index:There it's not really needed, because you create index once and can just call the same
raw().createOrGet(mgmt, goTermType.raw())
.So I think those unused property keys and vertex/edge labels can be removed. Then with https://github.com/bio4j/angulillos/issues/51 there is no much business left in this code and I think it can be made generic.