On Wed, Jun 12, 2013 at 11:25 AM, Gustaph Sanga <[email protected]> wrote: > I am trying to index components(Nodes and Edges) of an OWL model file (Call > it: x.owl file) using Jena. After indexing them, I need to be able assign > a value to each of the component in the model be it automatic or static > assignment. Also I want to be able to traverse my ontology with specific > algorithms such as BFS and retrieve all the paths according to my algorithm > walk. > > [snip] > > Could any one please assist me with very specific Jena tutorials on > performing the indexing?
It's not BFS, but I posted an answer on StackOverflow the other day about doing a DFS (depth first search) on a Jena model. Assuming that you're comfortable implementing the algorithms (which are not specific to Jena at all), it might be a useful starting point: http://stackoverflow.com/questions/17024419/parsing-rdf-recursive-with-jena/17026669#17026669 //JT -- Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
