Comments (5)
HI @pebbie , that's excellent!
I was able to run your notebook with this
pip install pygraphviz jupyterlab pyvis networkx
and this query
#endpoint: https://sparql.rhea-db.org/sparql
PREFIX rh:<http://rdf.rhea-db.org/>
SELECT ?reaction ?reactionEquation
WHERE {
VALUES ?status { rh:Approved rh:Preliminary }
?reaction rdfs:subClassOf rh:Reaction .
?reaction rh:status ?status .
?reaction rh:equation ?reactionEquation .
}
ORDER BY ?reaction
Would you feel like adapting your code and contributing this in a PR ?
pyvis nbetworkx rdflib
are already part of the requirements and I think we could cut out pygraphviz
then right?
from kglab.
so i managed to adapt the code to generate the graph without using pygraphviz
and adding some default style.
any suggestion on how to integrate this?
from kglab.
Sure, I'll see if I can provide into networkx
graph directly without using pygraphviz
.
Do you have any ideas/suggestions on how or where this should be integrated with kglab?
from kglab.
Yeah as a first step, I would vouch for "parking" this code either in the util.py
file or even in a standalone module sparql_viz.py
or something like that.
from kglab.
@pebbie wonderful!! So glad to see :)
Perhaps as a simple approach to integration, if you'd like to add a PR for this as a utility function in https://github.com/DerwenAI/kglab/blob/main/kglab/util.py then we could refactor into the classes.
@louisguitton @Ankush-Chander: How about, this could fit well within the PyVis-related methods of SubgraphTensor
https://github.com/DerwenAI/kglab/blob/main/kglab/subg.py#L452 ?
from kglab.
Related Issues (20)
- Support DGL HOT 1
- Integration with scipy and scikit-learn HOT 4
- Make SubGraph more pythonic HOT 5
- Make easy to load default datasets HOT 3
- Improve installation HOT 7
- Renaming SubgraphMatrix HOT 5
- Move setup.py functionality to poetry for pre-check and package build and release. HOT 4
- I couldn't find a way to add type coercion in the context of the RDF graph HOT 4
- Bug report: "AttributeError: partially initialized module 'kglab'..." HOT 7
- kglab.KnowledgeGraph().visualize_query breaks when query contains LIMIT 1000 HOT 3
- Can't find an easy path to generating a visual of the query results HOT 1
- Source distribution does not observe the file/path excludes and is too big HOT 7
- Missing direction of edges in visualisation example HOT 5
- help loading nquads into kglab.KnowledgeGraph HOT 1
- RAPIDS docs at https://derwen.ai/docs/kgl/depend/#nvidia-gpu-support 404 then redirect
- not compatible with venv ? HOT 1
- Query the full graph as subgraph HOT 1
- Change linters to ruff for precommit hooks? HOT 1
- RE: IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
- Food.com URL Changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kglab.