Import Mapping


In [ ]:
import ipywidgets as widgets
mappingBox = widgets.Text(value="mapping.ttl", description="URL of mapping file location:", style={"description_width": "initial"})
widgets.VBox([mappingBox])

Insert mapping

Execute the code below to insert the default mapping


In [ ]:
from R2RML_visualizer import R2RML_visualizer
rmlVis = R2RML_visualizer(remoteTermEndpoint="http://graphdb:7200/repositories/ontologies")

rmlVis.loadScript(mappingBox.value)
graph = rmlVis.plotGraph()
graph.format = "svg"
graph.render(mappingBox.value + "_output")
graph

In [ ]:
r2rmlStore = "http://graphdb:7200/repositories/r2rml"
rmlVis.clearRemoteR2RMLStore(r2rmlStore)
rmlVis.uploadR2RML(r2rmlStore)

In [ ]:
rmlVis.uploadTermStore("http://graphdb:7200/repositories/ontologies")

In [ ]:


In [ ]: