问题
In the above graph [which is in dbpedia], I want to extract information about TIM COOK, with hops, IF I put hop as 1, I would need all the first level information about TIM COOK, like Masters, APPLE, Car
If hops are 2, I need Masters, APPLE, Car, United States
Is there any way I could extract such graph ?
I would like to pass direction (Incoming, Outgoing) also to extract graph.
Could you please help me with SPARQL query?
来源:https://stackoverflow.com/questions/54774104/extract-graph-from-dbpedia-by-number-of-hops-direction