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 #58: Setting Up a Remote Instance and Web Page Server
generator agent: http://rdfs.org/sioc/wp-sioc.php

CWPK #58: Setting Up a Remote Instance and Web Page Server
type: Post
has container: weblog
has creator: Mike Bergman
maker: Mike Bergman
created: 2020-10-26T15:28:27Z
content: The Beginning of Moving Our Environment into the Cloud Today's installment in our Cooking with Python and KBpedia series begins a three-part mini-series of moving our environment into the clouds. This first part begins with setting up a remote instance and Web page server using the mini-framework Flask. The next installment expands on this basis to begin adding a SPARQL endpoint to the remote instance. And, then, in the concluding third part to this mini-series, we complete the endpoint and make the SPARQL service active. We undertake this mini-series because we want to make KBpedia more open to SPARQL queries from anywhere on the Web and we will be migrating our main KBpedia Web site content to Python. The three installments in this mini-series pave the way for us to achieve these aims. We begin today's installment by looking at the approach and alternatives for achieving these aims, and then we proceed to outline the steps needed to set up a Python instance on a remote (cloud) instance and to begin serving Web pages. Approach and Alternatives We saw earlier in CWPK #25 and CWPK #50 the usefulness of the SPARQL query language to interact with knowledge graphs. Our first objective, therefore, was to establish a similar facility for KBpedia. Though we have an alternate choice to set up some form of RESTful API to KBpedia (see further Additional Documentation below), and perhaps that may make sense at some point in time, our preference is to use SPARQL given its robustness and many query examples as earlier installments document. Further, we can foresee that our work with Python in KBpedia may warrant our moving our standard KBpedia Web site to that away from Clojure and its current Bootstrap-based Web page format. Though Python is not generally known for its Web-page serving capabilities, some exploration of that area may indicate whether we may go in that direction or not. Lastly, given our intent to make querying of KBpedia more broadly available, we also wanted to…
encoded: The Beginning of Moving Our Environment into the Cloud Today’s installment in our Cooking with Python and KBpedia series begins a three-part mini-series of moving our environment into the clouds. This first part begins with setting up a remote instance and Web page server using the mini-framework Flask. The next installment expands on this basis to begin adding a SPARQL endpoint to the remote instance. And, then, in the concluding third part to this mini-series, we complete the endpoint and make the SPARQL service active. We undertake this mini-series because we want to make KBpedia more open to SPARQL queries from anywhere on the Web and we will be migrating our main KBpedia Web site content to Python. The three installments in this mini-series pave the way for us to achieve these aims. We begin today’s installment by looking at the approach and alternatives for achieving these aims, and then we proceed to outline the steps needed to set up a Python instance on a remote (cloud) instance and to begin serving Web pages. Approach and Alternatives We saw earlier in CWPK #25 and CWPK #50 the usefulness of the SPARQL query language to interact with knowledge graphs. Our first objective, therefore, was to establish a similar facility for KBpedia. Though we have an alternate choice to set up some form of RESTful API to KBpedia (see further Additional Documentation below), and perhaps that may make sense at some point in time, our preference is to use SPARQL given its robustness and many query examples as earlier installments document. Further, we can foresee that our work with Python in KBpedia may warrant our moving our standard KBpedia Web site to that away from Clojure and its current Bootstrap-based Web page format. Though Python is not generally known for its Web-page serving capabilities, some exploration of that area may indicate whether we may go in that direction or not. Lastly, given our intent to make querying of KBpedia more broadly available, we also wanted to…
topic: CWPK
topic: KBpedia
topic: Semantic Web Tools
links to: Cooking with Python and KBpedia
links to: Flask
links to: SPARQL
links to: endpoint
links to: CWPK #25
links to: CWPK #50
links to: RESTful API
links to: linked data
links to: conneg
links to: triple store
links to: Virtuoso
links to: installation
links to: guides
links to: Django
links to: Web framework
links to: Drupal
links to: microframework
links to: Bottle
links to: Falcon
links to: Jinja
links to: Werkzeug
links to: WSGI
links to: RDFlib
links to: CWPK #24
links to: EC2
links to: Amazon Web Services
links to: Ubuntu 18.04 LTS
links to: SSH
links to: this one
links to: this other one
links to: conda
links to: Anaconda
links to: CWPK #9
links to: miniconda
links to: useful source
links to: cb1-1
links to: cb1-2
links to: cb1-3
links to: pip package manager
links to: advanced package tool
links to: yum
links to: rpm
links to: pip
links to: sudo
links to: virtual environments
links to: online
links to: sources
links to: cb2-1
links to: cb3-1
links to: cb4-1
links to: cb5-1
links to: kbpedia
links to: The Definitive Guide to Conda Environments
links to: Deploy Flask apps using Anaconda on Ubuntu Server
links to: Why You Need Python Environments and How to Manage Them with Conda
links to: Conda Best Practices
links to: Flask and Apache and AWS
links to: first step.html
links to: endpoints
links to: Another good starting point
links to: how-to-use-an-api-with-python
links to: developing-restful-apis-with-python-and-flask
links to: Flask-RESTful
links to: Another source
links to: A good, official introductory site to Flask
links to: Using URL processors
links to: Using SQL3Lite with Flask
links to: Quickstart
links to: Useful reference on Flask as a Web framework
links to: The Mega Tutorial

Mike Bergman
type: User

Mike Bergman
type: Person

Cooking with Python and KBpedia
label: CWPK listing

this one
label: Another Deploy on AWS

sources
label: Deploy on AWS

root@ip-xxx-xx-x-xx

follow-up with emphasis on a RESTful Web API

nice overview of RDFlib

video on setting up an EC2 instance and Putty

Ordia

Wikimedia tools

Converting Jupyter to WordPress HTML

Webweb

paper

WebVOWL

KBpedia

code listing covering the series

direct download

notify me