OpO FAST Triple Store, Web Server, and JSON Database
OpO

Triples can created or imported with multiple triples defined in the uploaded data. The format of the triples can be either N-Triples, TURTLE, or the Opo Graph format (OG).

An HTTP POST is used for triple imports. URL parameters are used to specify the format if the format is not already included in the Content-Type field of the HTTP header.

The mime types supported are text/turtle or application/n-triples. The mime type of application/og although non-standard is also allowed. If a mime type is included in the HTTP request it is honored as the means to pick the import format. If the Content-Type is not specified or is text/plain then a best guess is made on the format.

Lacking any other hints an attempt is made to guess the format of the import. If the import data begins with a '<' character a N-Triples import is attempted. If the first character is an '@' then TURTLE is assumed. A comment at the start of the import marked by a '#' and followed by the format is also an acceptable format suggestion.

Import with POST

A POST can be used to create new triples. The URL for triple imports is /triple. The request body content must be of the format specified in the Content-Type or format option.

Examples of a POST URL for importing are:

http://www.example.com/triple?format=n-triples http://www.example.com/triple

Query parameter options are:

OptionValues
formatn-triples | n-triples | turtle | og