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 http://enipedia.tudelft.nl/wiki/ PREFIX article: http://enipedia.tudelft.nl/wiki/ PREFIX a: http://enipedia.tudelft.nl/wiki/ PREFIX property: http://enipedia.tudelft.nl/wiki/Property: PREFIX prop: http://enipedia.tudelft.nl/wiki/Property: PREFIX category: http://enipedia.tudelft.nl/wiki/Category: PREFIX cat: http://enipedia.tudelft.nl/wiki/Category: PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# PREFIX fn: http://www.w3.org/2005/xpath-functions# PREFIX afn: http://jena.hpl.hp.com/ARQ/function# 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

linksparql
16223
accept rate: 0%


Have the endpoint return the results in SPARQL Query Results XML format (http://www.w3.org/TR/2008/REC-rdf-sparql-XMLres-20080115/), which is very simple and straightforward, and then use whatever tool you like to convert the XML to HTML. I like XSLT.

link

answered 02 Mar, 15:11

bobdc's gravatar image

bobdc
112
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 http://getthedata.org/questions/13/making-sparql-queries-against-two-data-stores?page=1#912 ) 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"

link

answered 30 Apr, 09:43

dr0i's gravatar image

dr0i
112
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×24
×10
×3

Asked: 29 Feb, 17:14

Seen: 521 times

Last updated: 12 Jul, 08:10

powered by OSQA