[an error occurred while processing this directive] SPARQL Table Formatting XSLT [an error occurred while processing this directive]

Table XSLT for SPARQL

Using table.xslt, you can transform queries into a vertical table.

Example Usage

Generate your query url using some resource like the pellet servlet. The example used here is a list of all people in the lab and their homepage:

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?Name ?Homepage FROM <http://www.mindswap.org/2004/owl/mindswappers>
WHERE 
{ ?person a foaf:Person;
          foaf:name ?Name.
  OPTIONAL { ?person foaf:homepage ?Homepage.}
} ORDER BY ?Name

Then include it in your page via xhtml:

<!--#exec cmd="xsltproc table.xslt [query-url]"-->

The result is this:

Name Homepage
Aaron Manneshttp://www.terrorprofiles.com/
Aditya Kalyanpur
Amy Alfordhttp://www.sarn.org/
Anant Kaushivahttp://anant.kaushiva.com/
Andrew Schainhttp://www.schain.org/
Bernardo Cuenca
Bijan Parsiahttp://www.unc.edu/~bparsia/
Bin Zhao
Chris Shentonhttp://chris.shenton.org/
Chris Testa
Christian Halaschek-Wiener
Daniel Hewlett
Daniel Krechhttp://eikeon.com/
David Woodhttp://www.mindswap.org/~dwood/
Debbie Heisler
Edna Ruckhaushttp://www.ldc.usb.ve/~ruckhaus/
Evren Sirin
Femke Reitsma
Grecia C. Lapizco-Encinas
Hamid Haidarian-Shahri
Hidenari Kiyomitsu
Jay Banerjee
Jennifer Golbeckhttp://www.cs.umd.edu/~golbeck/
Jim Hendler
Jordan Katzhttp://underlevel.net/jordan/
Kaoru Hiramatsu
Katy Newton
Kendall Grant Clarkhttp://clark.dallas.tx.us/kendall/
Matt Westhoff
Meem Mahmud
Mike Grove
Nada Hashmihttp://www.cs.umd.edu/~nada/
Naiwen Lin
Ron Alfordhttp://volus.net/~ronwalf/
Ronald P. Reck
Ross Baker
Taowei David Wang
Ugur Kuter
Vladimir Kolovski
Yvonne Shashoua

Author: Ron Alford

[an error occurred while processing this directive]