Hi!
Does anyone know if it would be possible with the RDF_GAS_API to specify two Wikidata items (e.g. Kevin Bacon and Kathy Bates) and a property (e.g. cast member) and have it calculate the shortest path between them?
Don't have much experience with this, but maybe just using com.bigdata.rdf.graph.analytics.SSSP from one node and then filtering by other node would work? Might not be the most efficient, but should do it I think. Other option may be com.bigdata.rdf.graph.analytics.BFS with gas:target. https://wiki.blazegraph.com/wiki/index.php/RDF_GAS_API has a bunch of examples which I think may do what you need.