Skip to content

Conversation

@ubyndr
Copy link
Collaborator

@ubyndr ubyndr commented Sep 8, 2023

Resolves #38

I have refactored the subgraph generation in visualize_rdf_graph method. Couple of example queries and results can be seen below. I'm open to parameter re-naming.

gg.visualize_rdf_graph(
    node_selector={"property":"label", "value":"epithelial cell of glomerular capsule"},
    predicate=None,
    file_path="kidney_iri_test.ttl",
    bottom_up=True
)

image (5)

gg.visualize_rdf_graph(
    node_selector={"property":"label", "value":"epithelial cell of glomerular capsule"},
    predicate=None,
    file_path="kidney_iri_test.ttl",
    bottom_up=False
)

image (4)

gg.visualize_rdf_graph(
    # start_node=["http://example.org/0088cc46-ecea-42bc-83d4-e0d51e9cffcf"],
    node_selector={"property":"subclass.l1", "value":"PEC"},
    file_path="kidney_iri_test.ttl",
)

Figure_1

@ubyndr ubyndr requested a review from dosumis September 8, 2023 14:22
@ubyndr ubyndr merged commit b66d0af into main Sep 29, 2023
@ubyndr ubyndr deleted the 38-extend-graph-visualization-to-give-more-flexibility-in-filtering branch September 29, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend graph visualization to give more flexibility in filtering

2 participants