SIOC Post profile for "AI3:::Adaptive Information"
type: Document
description: A SIOC profile describes the structure and contents of a weblog in a machine readable form. For more information please refer to http://sioc-project.org/.
primary topic: CWPK #60: Adding a SPARQL Endpoint – Part II
generator agent: http://rdfs.org/sioc/wp-sioc.php

CWPK #60: Adding a SPARQL Endpoint – Part II
type: Post
has container: weblog
has creator: Mike Bergman
maker: Mike Bergman
created: 2020-10-29T15:12:37Z
content: Finally Getting a Remote SPARQL Working Instance Yesterday's installment of Cooking with Python and KBpedia presented the first part of this two-part series on developing a SPARQL endpoint for KBpedia on a remote server. This concluding part picks up with step #7 in the stepwise approach I took to complete this task. At the outset I thought it would progress rapidly: After all, is not SPARQL a proven query language with central importance to knowledge graphs? But, possibly because our focus in the series is Python, or perhaps for other reasons, I have found a dearth of examples to follow regarding setting up a Python SPARQL endpoint (there are some resources available related to REST APIs). The first six steps in yesterday's installment covered getting our environment set up on the remote Linux server, including installing the Web framework Flask and creating a virtual environment. We also presented the Web page form design and template for our SPARQL query form. This second part covers the steps of tieing this template form into actual endpoint code, which proved to be simple in presentation but exceeding difficult to formulate and debug. Once this working endpoint is in hand, I next cover the steps of giving the site an external URL address, starting and stopping the service on the server, and packaging the code for GitHub distribution. I conclude this two-part series with some lessons learned, some comments on the use and relevance of linked data, and point to additional documentation. Step-wise Approach (con't) We pick up our step-wise approach here. 7. Tie SPARQL Form to Local Instance So far, we have a local instance that works from the command line and an empty SPARQL form. We need to relate thest two pieces together. In the last installment, I noted two SPARQL-related efforts, pyLDAPI (and its GNAF example) and adhs. I could not find working examples for either, but I did consult their code frequently while testing various options. Thus, unlike many areas th…
encoded: Finally Getting a Remote SPARQL Working Instance Yesterday’s installment of Cooking with Python and KBpedia presented the first part of this two-part series on developing a SPARQL endpoint for KBpedia on a remote server. This concluding part picks up with step #7 in the stepwise approach I took to complete this task. At the outset I thought it would progress rapidly: After all, is not SPARQL a proven query language with central importance to knowledge graphs? But, possibly because our focus in the series is Python, or perhaps for other reasons, I have found a dearth of examples to follow regarding setting up a Python SPARQL endpoint (there are some resources available related to REST APIs). The first six steps in yesterday’s installment covered getting our environment set up on the remote Linux server, including installing the Web framework Flask and creating a virtual environment. We also presented the Web page form design and template for our SPARQL query form. This second part covers the steps of tieing this template form into actual endpoint code, which proved to be simple in presentation but exceeding difficult to formulate and debug. Once this working endpoint is in hand, I next cover the steps of giving the site an external URL address, starting and stopping the service on the server, and packaging the code for GitHub distribution. I conclude this two-part series with some lessons learned, some comments on the use and relevance of linked data, and point to additional documentation. Step-wise Approach (con’t) We pick up our step-wise approach here. 7. Tie SPARQL Form to Local Instance So far, we have a local instance that works from the command line and an empty SPARQL form. We need to relate thest two pieces together. In the last installment, I noted two SPARQL-related efforts, pyLDAPI (and its GNAF example) and adhs. I could not find working examples for either, but I did consult their code frequently while testing various options. Thus, unlike many areas th…
topic: CWPK
topic: KBpedia
topic: Semantic Web Tools
links to: Cooking with Python and KBpedia
links to: SPARQL
links to: knowledge graphs
links to: Python
links to: REST
links to: APIs
links to: Flask
links to: linked data
links to: pyLDAPI
links to: GNAF
links to: adhs
links to: CWPK #58
links to: StackOverflow
links to: WinSCP
links to: sparql
links to: set content types
links to: cURL
links to: wget
links to: Postman
links to: W3C validator
links to: CWPK #25
links to: SPARQLwrapper
links to: cb1-1
links to: cb1-2
links to: cb1-3
links to: cb1-4
links to: cb1-5
links to: cb1-6
links to: cb1-7
links to: cb1-8
links to: cb1-9
links to: cb1-10
links to: cb1-11
links to: cb1-12
links to: cb1-13
links to: cb1-14
links to: cb1-15
links to: cb1-16
links to: cb1-17
links to: cb1-18
links to: cb1-19
links to: cb1-20
links to: cb1-21
links to: cb1-22
links to: cb1-23
links to: cb1-24
links to: cb1-25
links to: cb1-26
links to: cb1-27
links to: cb1-28
links to: cb1-29
links to: cb1-30
links to: cb1-31
links to: cb1-32
links to: cb1-33
links to: cb1-34
links to: cb1-35
links to: cb1-36
links to: cb1-37
links to: cb1-38
links to: cb1-39
links to: cb1-40
links to: cb1-41
links to: cb1-42
links to: cb1-43
links to: cb1-44
links to: cb1-45
links to: cb1-46
links to: cb1-47

Mike Bergman
type: User

Mike Bergman
type: Person

Cooking with Python and KBpedia
label: CWPK listing

WinSCP
label: Filezilla

KBpedia SPARQL endpoint

CWPK #46

semantic Web

5-star

content negotiation

RDFLib-web

Using cURL for SPARQL

RDFLib JSON-LD

Flask-RDF

Cautions about SPARQL endpoints

KBpedia

code listing covering the series

direct download

notify me