Sign in or register
for additional privileges

Scalar 1 User’s Guide

Previous page on path     Next page on path

 

You appear to be using an older verion of Internet Explorer. For the best experience please upgrade your IE version or switch to a another web browser.

API Explorer & Remote Access

A first place to begin is Scalar’s API Explorer. This simple interactive tool allows you to select options to generate API query URLs and see the results.

If you wish to access the API directly (e.g., via Javascript), data is accessed via the same URLs that are constructed in the API Explorer. User's Guide pages on query scope and GET variables explain the full list of available URL parameters in detail.

There are two main ways to access the API from a remote server. First, you can proxy the data via a PHP file on your server (which sidesteps cross-site scripting restrictions) in either RDF-XML or RDF-JSON. Alternatively, you can access the API directly using JSONP (a JSON wrapper that facilitates remote calls that is supported by frameworks such as jQuery). For example, this call will return all content nodes in the Scalar Guide, formatted in JSONP with the “abcdef123456″ callback:

http://scalar.usc.edu/works/guide/rdf/instancesof/content?format=json&callback=abcdef123456
Comment on this page
 

Discussion of "API Explorer & Remote Access"

Add your voice to this discussion.

Checking your signed in status ...

Previous page on path Working with the API, page 1 of 6 Next page on path