Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the simplest way to embed SPARQL query results into a web page?

I want to add results of SPARQL queries to a web page using a server-side script. My server-side scripting is beginner-level, so the simpler the script, the better for now.

I've made some basic SPARQL queries using Snorql; I'm assuming this is an appropriate first step. My end goal is to have a portable, relatively simple php/python solution of making queries to datasets such as dbpedia, for output to a web page.

Any advice would be much appreciated.

like image 525
Mattypants Avatar asked Sep 16 '25 05:09

Mattypants


1 Answers

After some research, I was able to accomplish my original task, so I'll answer my own question.

I was able to output results from SPARQL queries on a web page using the ARC2 PHP library. Once I got everything working, I wrote a tutorial on it: Creating HTML Web Pages from Linked Data Using PHP, SPARQL, and ARC2

like image 53
Mattypants Avatar answered Sep 18 '25 19:09

Mattypants