Project

General

Profile

RESTInterface » History » Version 2

Paula Gearon, 04/21/2009 05:27 AM
Description of the read-only endpoint

1 1 Paula Gearon
= REST =
2
3
== Default Configuration ==
4 2 Paula Gearon
By default, there are two REST interfaces on a standalone Mulgara server. These are found at:
5 1 Paula Gearon
 * http://localhost:8080/sparql/
6
 * http://localhost:8080/tql/
7
8
The interfaces provide similar functionality, with the /sparql/ interface accepting SPARQL queries, and the /tql/ interface accepting [wiki:TQLUserGuide TQL] queries. Note that SPARQL is a query-only language, while TQL permits full [http://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD] operations.
9 2 Paula Gearon
10
Note that these paths end with a / (slash). The built-in server provides a redirect from the URLs without a slash to the correct URL, but not all clients handle this correctly. For instance the [http://en.wikipedia.org/wiki/Wget WGet] utility handles this correctly, but [http://en.wikipedia.org/wiki/CURL cURL] does not.
11
12
=== Read-Only ===
13
A read-only interface is also available at:
14
 * http://localhost:8081/sparql/
15
This interface is provided for public access to the server, where updates are undesirable.
16
17
== WAR Files ==
18
The read/write interfaces are also available as a deployable Web application in a WAR file. See [wiki:Configuration] for more details.
19 1 Paula Gearon
20
== Interface Description ==
21
 * [wiki:Configuration]
22
 * [wiki:RESTQueries Queries and Commands]
23
 * [wiki:RESTStatements Statements]
24
 * [wiki:RESTGraphs Graphs]