- Installation
- First Steps
- Functions
- Custom Queries
pip3 install git+https://github.com/process-intelligence-research/ChemEngKG_kgtool.git
in your python file:
from kgtool.interface import *
- Init the interface with the default graph
chemKG = ChemKG()- Specify your own Graph by naming it on init
chemKG = ChemKG(graph="GraphDracula")- Upload your RDF Files via:
chemKG.uploadTurtle("/teenage/mutant/ninja.ttl")- Upload your Files via:
chemKG.uploadFile("/path/to/file.ext", "someURI")After upload the generated hash-download-url will be inserted as a Triple in the current Graph.
- get the Triples from the default or specified graph:
chemKG.getGraph()- get all graphs
chemKG.getGraphs()- delete your graph with all its triples
chemKG.deleteGraph()- Virtuoso
chemkg.runSparql("SELECT * WHERE { ?s ?p ?o } LIMIT 10")