Difference between revisions of "Lab: Group Project Presentations 1"
Revision as of 00:35, 14 February 2020. Last week we added triples manually from the web interface.
However, sometimes we would rather want to program the insertion or updates of triples for our databases.
With Blazegraph
You can look at the python example page to see how to connect to your Blazegraph database in Python and how to perform some basic queries. The most important part is that we need to import a SPARQLWrapper in order to connect to the SPARQL endpoint of Blazegraph.
Remember before you can program with Blazegraphm you have to make sure its running like we did in Lab 4. Make sure that the URL is the same as the one you receive form the commandline when running the server. Now you will be able to program queries and updates.
from SPARQLWrapper import SPARQLWrapper, JSON sparql = SPARQLWrapper("")