encodeURIString(String s) Encodes the supplied string for inclusion as a (relative) URI in a Turtle
document.
public static int
findURISplitIndex(String uri) Tries to find an index where the suppied URI can be split into a namespace
and a local name that comply with the serialization constraints of the
Turtle format.
Decodes an encoded Turtle string. Any \-escape sequences are substituted
with their decoded value.
Parameters: s - An encoded Turtle string. The unencoded string. exception: IllegalArgumentException - If the supplied string is not acorrectly encoded Turtle string.
Encodes the supplied string for inclusion as a (relative) URI in a Turtle
document.
findURISplitIndex
public static int findURISplitIndex(String uri)(Code)
Tries to find an index where the suppied URI can be split into a namespace
and a local name that comply with the serialization constraints of the
Turtle format. Specifically, the local name should adhere to Turtle's name production
rule.
Parameters: uri - The URI to split. The index where the supplied URI can be split, or -1 ifthe URI cannot be split.