Error parsing text/turtle
s-tittel opened this issue · comments
Hi, thanks for your great library. Recently I encountered an error parsing turtle with booleans in it. Here is an example to reproduce:
package main
import (
"fmt"
"strings"
"github.com/deiu/rdf2go"
)
func main() {
g := rdf2go.NewGraph("")
if err := g.Parse(strings.NewReader(`<s> <p> [ <o> true; <other> <triple> ] .`), "text/turtle"); err != nil {
panic(err)
}
fmt.Println(g)
}
This results in:
panic: Expected object, got Expected ':' while lexing pname%!(EXTRA []interface {}=[]) (type %!s(easylex.TokenType=-2))