Closed dmoore247 closed 1 year ago
Hi, thanks for using kglab
.
For large subgraphs I would suggest using networkx
for visualization as demonstrated in this example.
It is possible to load a subgraph generated by a query:
import networkx as nx
subgraph = kglab.SubgraphMatrix(kg, sparql)
nx_graph = subgraph.build_nx_graph(nx.DiGraph(), bipartite=True)
And plot it:
nx.draw(nx_graph, node_color=color, edge_color="gray", with_labels=True)
plt.show()
I'm submitting a
Current Behaviour:
Can't find an easy path to generating a visual of the query results My graph is large at 86,000 triples, this is more than I want to visualize.
How can I get quickly from a sparql query to a visual of the query results?
Expected Behaviour:
I've been trying to figure out how to chain operations, like creating a graph from a query result, visual from results etc. Does something already exist?
How about something like this?
or