#### N-Triple syntax tests ## Syntax of this file: ## ROOT= -- set the root name of the tests in the next section ## --Syntax-- Start synatx test etc. ## --End-- End of file marker. ROOT=ntriples-syntax-file ## File and comments #This is empty. --Syntax-- --End-- --Syntax-- #Empty file. --End-- --Syntax-- #One comment, one empty line. --End-- ## URIs ROOT=ntriples-syntax-uri --Syntax-- . --End-- --Syntax-- # x53 is capital S . --End-- --Syntax-- # x53 is capital S . --End-- ## # Typed literals ROOT=ntriples-syntax-datatypes --Syntax-- "123"^^ . --End-- --Syntax--

"123"^^ . --End-- ## Strings ROOT=ntriples-syntax-string --Syntax-- "string" . --End-- --Syntax-- "string"@en . --End-- --Syntax-- "string"@en-uk . --End-- ROOT=ntriples-syntax-bad-string --BadSyntax-- # N-Triples does not allow '' strings. 'string' . --End-- --BadSyntax-- # N-Triples does not allow '' strings. 'string'@en . --End-- --BadSyntax-- # N-Triples does not allow '' strings. 'string'^^ . --End-- --BadSyntax-- # N-Triples does not allow """....""" strings. """abc def""" . --End-- --BadSyntax-- # N-Triples does not allow """....""" strings. """abc def""" . --End-- --BadSyntax-- # N-Triples does not allow '''....''' strings. '''abc def''' . --End-- # Strings and escapes ROOT=ntriples-syntax-str-esc --Syntax-- "a\n" . --End-- --Syntax-- "a\u0020b" . --End-- --Syntax-- "a\U00000020b" . --End-- ## Bad - directives ROOT=ntriples-syntax-bad-struct --BadSyntax-- # N-Triples is not TriG { } --End-- --BadSyntax-- # N-Triples is not N3 = . --End-- --BadSyntax-- # N-Triples is not NQuads . --End-- --BadSyntax-- # N-Triples does not allow literals-as-subjects "hello" . --End-- --BadSyntax-- # N-Triples does not allow literals-as-predicates "hello" . --End-- --BadSyntax-- # N-Triples does not allow bnodes-as-predicates [] . --End-- --BadSyntax-- # N-Triples does not allow [] bnodes [] . --End-- --BadSyntax-- # N-Triples does not allow bnodes-as-predicates _:p . --End-- --BadSyntax-- # N-Triples does not allow short form literals. 123 . --End--