janusgraph-python geoWithin
Looks like the file core/attribute/GeoPredicate/geoWithin.py should be renamed GeoWithin. Doing so allows me to use: from janusgraph_python.structure.io.GraphsonReader import JanusGraphSONReader. Otherwise, I get the error: ModuleNotFoundError: No module named 'janusgraph_python.core.attribute.GeoPredicate.GeoWithin'
@John-Boik : Can you share the snippet of code you are working with because the following import works on my system.
from janusgraph_python.structure.io.GraphsonWriter import JanusGraphSONWriter
from janusgraph_python.structure.io.GraphsonReader import JanusGraphSONReader
reader = JanusGraphSONReader().register_deserializer(geoshape_identifier, geoshape_deserializer)
writer = JanusGraphSONWriter().register_serializer(obj_to_register, circle_serializer)
If you take a look at unreleased library docs, you will see the exact classes which needs to be imported.
As for import error regarding GeoWithin and GeoContains, you are importing in wrong way. The following unreleased library docs guides through how to invoke all Geo predicates. You ideally don't import the module directly. Rather, you import GeoPredicate.Geo module, inside which you call either geoContains or geoWithin predicates.
So, something like this should work:
from janusgraph_python.core.attribute import Geo
g.V().has("name", "hercules").outE().has("place", Geo.geoWithin(shape)).next()
Hope that helps :-)