Project

General

Profile

RESTInterface » History » Version 4

Paula Gearon, 04/21/2009 07:18 AM
Reworded a sentence

1 1 Paula Gearon
2 4 Paula Gearon
h1. REST
3
4
5
6
h2. Default Configuration
7
8 1 Paula Gearon
By default, there are two REST interfaces on a standalone Mulgara server. These are found at:
9 4 Paula Gearon
* http://localhost:8080/sparql/
10
* http://localhost:8080/tql/
11 1 Paula Gearon
12 4 Paula Gearon
The interfaces provide similar functionality, with the /sparql/ interface accepting SPARQL queries, and the /tql/ interface accepting [[TQLUserGuide|TQL]] queries. Note that SPARQL is a query-only language, while TQL permits full "CRUD":http://en.wikipedia.org/wiki/Create,_read,_update_and_delete operations.
13 1 Paula Gearon
14 4 Paula Gearon
The paths listed both 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 "WGet":http://en.wikipedia.org/wiki/Wget utility handles this correctly, but "cURL":http://en.wikipedia.org/wiki/CURL does not.
15 1 Paula Gearon
16 4 Paula Gearon
17
h3. Read-Only
18
19 1 Paula Gearon
A read-only interface is also available at:
20 4 Paula Gearon
* http://localhost:8081/sparql/
21 2 Paula Gearon
This interface is provided for public access to the server, where updates are undesirable.
22
23
24 4 Paula Gearon
h2. WAR Files
25
26
The read/write interfaces are also available as a deployable Web application in a WAR file. See [[Configuration]] for more details.
27
28
29
h2. Interface Description
30
31
* [[Configuration]]
32
* [[RESTQueries|Queries and Commands]]
33
* [[RESTStatements|Statements]]
34
* [[RESTGraphs|Graphs]]