An N-Triples document is defined by the
ntripleDoc grammar
term below and parsing it results in a sequence of RDF statements
formed from the subject, predicate and object terms. The meaning of
these are defined either in [RDFMS] or
is ongoing as part of the
RDF Core WG activity.

This is based on a subset of the allowed escapes in
[N3] which is in turn based on
Python string literals.
It is a subset since not all that complexity is needed or required
and for example, the \ before real newlines (cr or lf) could not be
allowed since that would break the line-basis of N-Triples.