W3C home > Mailing lists > Public > public-lod@w3.org > May 2009

Re: Wikipedia on your webpage

From: Alexandre Passant <alex@passant.org>
Date: Sun, 24 May 2009 18:33:06 +0100
Message-ID: <f0e160660905241033n41827e67u2910c57c3dfefea9@mail.gmail.com>
To: Terry Brooks <tabrooks@u.washington.edu>
Cc: "public-lod@w3.org" <public-lod@w3.org>

On Sat, May 23, 2009 at 9:37 PM, Terry Brooks <tabrooks@u.washington.edu> wrote:
> Thanks to everyone for responding to my enquiry about making a SPARQL query from client-side JavaScript.  I followed Aldo Bucchi's suggestion to look at the Virtuoso server documentation.

I missed your previous e-mail but regarding SPARQL results inclusion
on client side, you may also be interested in SPARCool:


It allows JSONP callbacks to easily include results in your webpages,
see the last example of the previous link.



> I have built a tutorial webpage at http://projects.ischool.washington.edu/tabrooks/dbpedia/presentationPage.htm that illustrates the use of two mime types: JSON and text/html.  I intend to use this tutorial with my undergraduate Informatics students this coming Autumn quarter.
> Receiving the payload from the Virtuoso server as text/html and then targeting the desired information with XPath is particularly easy and would be my recommended method.
> I was less successful in working with the mime type: 'application/sparql-results+xml'.  While I could get client-side JavaScript to recognize the payload as XML, I wasn't able to target its contents with XPath.  If anyone has an working example of unpacking a SPARQL XML object with XPath in client-side JavaScript, I would appreciate seeing it.
> Thanks, Terry
> Terrence Brooks
> Information School
> University of Washington
> Voice: 206 543-2646
> Fax: 206 616-3152
> E-mail: tabrooks@u.washington.edu
> Web: http://faculty.washington.edu/tabrooks/
Received on Sunday, 24 May 2009 17:33:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:15:56 UTC