OpO A fast graph database
OpO

Triples can created or imported with multiple triple or quads defined in the uploaded data. The format of the quads can be either N-Quads, N-Triples, TURTLE, or the Opo Graph format (OG). Each create or import can also have a names space or graph associated with it. The graph is the fourth member of the quad. In if the format is N-Quads the graph is already included in the data so any specified graph is used as the default graph in the event the quad only inlcudes three elements.

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

The mime types supported are text/turtle, application/n-triples, or application/n-quads. 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-Quads 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 quads. The URL for quad imports is /quad. 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/quad?format=n-quads&graph=graph1 http://www.example.com/quad

Query parameter options are:

OptionValues
formatn-quads | n-triples | turtle | og
graph<string>