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.
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:
Query parameter options are:
|format||n-triples | n-triples | turtle | og|