.
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-08.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # No relative IRIs in N-Triples
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/literal_true.nt:
--------------------------------------------------------------------------------
1 | "true"^^ .
2 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-uri-03.nt:
--------------------------------------------------------------------------------
1 | # x53 is capital S
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-struct-01.nt.LENIENT:
--------------------------------------------------------------------------------
1 | , .
2 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/literal_false.nt:
--------------------------------------------------------------------------------
1 | "false"^^ .
2 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-bnode-02.nt:
--------------------------------------------------------------------------------
1 | _:a .
2 | _:a .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-bnode-03.nt:
--------------------------------------------------------------------------------
1 | _:1a .
2 | _:1a .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-datatypes-01.nt:
--------------------------------------------------------------------------------
1 | "123"^^ .
2 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-datatypes-02.nt:
--------------------------------------------------------------------------------
1 | "123"^^ .
2 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-01.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # Bad IRI : space.
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-09.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # No relative IRIs in N-Triples
2 | "foo"^^ .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-02.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # Bad IRI : bad escape
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-03.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # Bad IRI : bad escape
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-bnode-02.nt.expected:
--------------------------------------------------------------------------------
1 | _:a .
2 | _:a .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-bnode-03.nt.expected:
--------------------------------------------------------------------------------
1 | _:1a .
2 | _:1a .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-struct-02.nt.LENIENT:
--------------------------------------------------------------------------------
1 | ; , .
2 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-04.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # Bad IRI : character escapes not allowed.
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/negatives/nt-syntax-bad-uri-05.nt.LENIENT:
--------------------------------------------------------------------------------
1 | # Bad IRI : character escapes not allowed.
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/nt-syntax-uri-04.nt:
--------------------------------------------------------------------------------
1 | # IRI with all chars in it.
2 | .
3 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/literal_all_controls.nt:
--------------------------------------------------------------------------------
1 | "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" .
2 |
--------------------------------------------------------------------------------
/fuzz/binary/main.go:
--------------------------------------------------------------------------------
1 | package binary
2 |
3 | import "github.com/wallix/triplestore"
4 | import "bytes"
5 |
6 | func Fuzz(data []byte) int {
7 | dec := triplestore.NewBinaryDecoder(bytes.NewReader(data))
8 | if _, err := dec.Decode(); err != nil {
9 | return 0
10 | }
11 | return 1
12 | }
13 |
--------------------------------------------------------------------------------
/fuzz/ntriples/main.go:
--------------------------------------------------------------------------------
1 | package ntriples
2 |
3 | import "github.com/wallix/triplestore"
4 | import "bytes"
5 |
6 | func Fuzz(data []byte) int {
7 | dec := triplestore.NewLenientNTDecoder(bytes.NewReader(data))
8 | if _, err := dec.Decode(); err != nil {
9 | return 0
10 | }
11 | return 1
12 | }
13 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/minimal_whitespace.nt:
--------------------------------------------------------------------------------
1 | .
2 | "Alice".
3 | _:o.
4 | _:s.
5 | _:s"Alice".
6 | _:s_:bnode1.
7 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/minimal_whitespace.nt.expected:
--------------------------------------------------------------------------------
1 | .
2 | "Alice" .
3 | _:o .
4 | _:s .
5 | _:s "Alice" .
6 | _:s _:bnode1 .
7 |
--------------------------------------------------------------------------------
/testdata/ntriples/w3c_suite/positives/comment_following_triple.nt:
--------------------------------------------------------------------------------
1 | . # comment
2 | _:o . # comment
3 | "o" . # comment
4 | "o"^^ . # comment
5 | "o"@en . # comment
--------------------------------------------------------------------------------
/fuzz/binary/corpus/samples.bin:
--------------------------------------------------------------------------------
1 | a pred b a pred b a pred b anon pred b a pred a> .
2 |