I have a RDF triple store with more than 30,000 triples in it. I want to know the shortest path between any two triples in the store for all edges (If there exists a path between them).
Calculate length of path between nodes? is something similar to what I am looking for. But the proposed solution works for Trees, mine would be a directed graph with multiple paths and with blank nodes.
Is it possible to find the shortest length of the path between two nodes using SPARQL queries? Performance is not an issue at all for my use case.
Or the use of Dijkstra or BFS algorithm is a better solution?
Thanks for all the help!