am using enipedia to run SPARQL queries like the one below, I need to know how can I combine data from more than one SPARQL end point then I want to know how can I present the results in a HTML (web based application)

BASE PREFIX article: PREFIX a: PREFIX property: PREFIX prop: PREFIX category: PREFIX cat: PREFIX rdfs: PREFIX rdf: PREFIX fn: PREFIX afn: select ?Name ?Point ?Generation_capacity where { ?powerPlant prop:Country a:Netherlands . ?powerPlant rdfs:label ?Name . ?powerPlant prop:Point ?Point . ?powerPlant prop:Generation_capacity-23W ?Generation_capacity . }

asked 29 Feb, 17:14

linksparql's gravatar image

accept rate: 0%

Have the endpoint return the results in SPARQL Query Results XML format (, which is very simple and straightforward, and then use whatever tool you like to convert the XML to HTML. I like XSLT.


answered 02 Mar, 15:11

bobdc's gravatar image

accept rate: 0%

Actually you are asking two questions:

1. combining two endpoints You can do this like bobdc has proposed, that is: make one query per endpoint and than combine the data yourself. You also can make ONE query using the SERVICE keyword to federate the query (see ) which I would prefer, but your endpoint must have implemented SPARQL1.1.

2. present HTML You have yourself to process and present the data. You can get RDFXML from the endpoint if this is easy for you to process. You can even get JSON from many endpoints (e.g. 4store) , using the Accept-Header, i.e. using curl: curl -H "Accept: application/json"


answered 30 Apr, 09:43

dr0i's gravatar image

accept rate: 0%

edited 07 May, 10:29

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 29 Feb, 17:14

Seen: 521 times

Last updated: 12 Jul, 08:10

powered by OSQA