StringParserParse Method (IGraph, String)
public static void Parse( IGraph g, string data )
Public Shared Sub Parse ( g As IGraph, data As String )
Auto-detection is based on testing the string to see if it contains certain keyword constructs which might indicate a particular syntax has been used. This detection may not always be accurate and it may choose a parser which is less expressive than the actual syntax e.g. TurtleParser instead of Notation3Parser as it tends to guess downwards.
For example if you parsed a Notation 3 string that contained Graph Literals but didn't use any of the Notation 3 specific directives like @keywords it would be assumed to be Turtle but then would fail to parse
The auto-detection rules used are as follows: