Browse Source

Add new literal tests from Turtle test suite.

git-svn-id: http://svn.drobilla.net/serd/trunk@449 490d8e77-9747-427b-9fa3-0b8f29cee8a0
zrythm_meson
David Robillard 10 years ago
parent
commit
dc9f6c8d6b
  1. 1
      tests/tests-ttl/LITERAL1_ascii_boundaries.nt
  2. BIN
      tests/tests-ttl/LITERAL1_ascii_boundaries.ttl
  3. 1
      tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl
  4. 1
      tests/tests-ttl/LITERAL2_ascii_boundaries.nt
  5. BIN
      tests/tests-ttl/LITERAL2_ascii_boundaries.ttl
  6. 1
      tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl
  7. 1
      tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt
  8. BIN
      tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl
  9. 1
      tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl
  10. 1
      tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt
  11. BIN
      tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl
  12. 1
      tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl
  13. 1
      tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt
  14. 147
      tests/tests-ttl/manifest.ttl

1
tests/tests-ttl/LITERAL1_ascii_boundaries.nt

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E&([]\u007F" .

BIN
tests/tests-ttl/LITERAL1_ascii_boundaries.ttl

Binary file not shown.

1
tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> '€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽' .

1
tests/tests-ttl/LITERAL2_ascii_boundaries.nt

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E!#[]\u007F" .

BIN
tests/tests-ttl/LITERAL2_ascii_boundaries.ttl

Binary file not shown.

1
tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> "€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽" .

1
tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> "\u0000&([]\u007F" .

BIN
tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl

Binary file not shown.

1
tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> '''€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽''' .

1
tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> "\u0000!#[]\u007F" .

BIN
tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl

Binary file not shown.

1
tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> """€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽""" .

1
tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt

@ -0,0 +1 @@ @@ -0,0 +1 @@
<http://a.example/s> <http://a.example/p> "\u0080\u07FF\u0800\u0FFF\u1000\uCFFF\uD000\uD7FF\uE000\uFFFF\U00010000\U0003FFFF\U00040000\U000FFFFF\U00100000\U0010FFFD" .

147
tests/tests-ttl/manifest.ttl

@ -37,17 +37,26 @@ @@ -37,17 +37,26 @@
<#prefixed_IRI_predicate>
<#prefixed_IRI_object>
<#prefix_only_IRI>
# <#prefix_with_PN_CHARS_BASE_character_boundaries>
# <#prefix_with_non_leading_extras>
<#default_namespace_IRI>
<#prefix_reassigned_and_used>
# <#reserved_escaped_localName>
<#percent_escaped_localName>
<#HYPHEN_MINUS_in_localName>
<#underscore_in_localName>
<#localname_with_COLON>
# <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries>
# <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries>
# <#localName_with_nfc_PN_CHARS_BASE_character_boundaries>
# <#localName_with_PN_CHARS_BASE_character_boundaries>
<#localName_with_leading_underscore>
<#localName_with_leading_digit>
# <#localName_with_non_leading_extras>
<#old_style_base>
<#labeled_blank_node_subject>
<#labeled_blank_node_object>
# <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries>
<#labeled_blank_node_with_leading_underscore>
<#labeled_blank_node_with_leading_digit>
<#labeled_blank_node_with_non_leading_extras>
@ -66,13 +75,21 @@ @@ -66,13 +75,21 @@
<#first>
<#last>
<#LITERAL1>
<#LITERAL1_ascii_boundaries>
<#LITERAL1_with_UTF8_boundaries>
<#LITERAL1_all_controls>
<#LITERAL1_all_punctuation>
<#LITERAL_LONG1>
<#LITERAL_LONG1_ascii_boundaries>
<#LITERAL_LONG1_with_UTF8_boundaries>
<#LITERAL_LONG1_with_1_squote>
<#LITERAL_LONG1_with_2_squotes>
<#LITERAL2>
<#LITERAL2_ascii_boundaries>
<#LITERAL2_with_UTF8_boundaries>
<#LITERAL_LONG2>
<#LITERAL_LONG2_ascii_boundaries>
<#LITERAL_LONG2_with_UTF8_boundaries>
<#LITERAL_LONG2_with_1_squote>
<#LITERAL_LONG2_with_2_squotes>
<#literal_with_CHARACTER_TABULATION>
@ -116,12 +133,8 @@ @@ -116,12 +133,8 @@
<#turtle-syntax-uri-03>
<#turtle-syntax-uri-04>
<#turtle-syntax-base-01>
<#turtle-syntax-base-02>
<#turtle-syntax-base-03>
<#turtle-syntax-base-04>
<#turtle-syntax-prefix-01>
<#turtle-syntax-prefix-02>
<#turtle-syntax-prefix-03>
<#turtle-syntax-prefix-04>
<#turtle-syntax-prefix-05>
<#turtle-syntax-prefix-06>
@ -371,6 +384,48 @@ @@ -371,6 +384,48 @@
mf:result <IRI_spo.nt> ;
.
# <#prefix_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "prefix_with_PN_CHARS_BASE_character_boundaries" ;
# rdfs:comment "prefix with PN CHARS BASE character boundaries (prefix: AZazÀÖØöø...:)" ;
# mf:action <prefix_with_PN_CHARS_BASE_character_boundaries.ttl> ;
# mf:result <IRI_spo.nt> ;
# .
# <#prefix_with_non_leading_extras> rdf:type rdft:TestTurtleEval ;
# mf:name "prefix_with_non_leading_extras" ;
# rdfs:comment "prefix with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
# mf:action <prefix_with_non_leading_extras.ttl> ;
# mf:result <IRI_spo.nt> ;
# .
# <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries" ;
# rdfs:comment "localName with assigned, NFC-normalized, basic-multilingual-plane PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
# mf:action <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl> ;
# mf:result <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt> ;
# .
# <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries" ;
# rdfs:comment "localName with assigned, NFC-normalized PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
# mf:action <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl> ;
# mf:result <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt> ;
# .
# <#localName_with_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "localName_with_nfc_PN_CHARS_BASE_character_boundaries" ;
# rdfs:comment "localName with nfc-normalize PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
# mf:action <localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl> ;
# mf:result <localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt> ;
# .
# <#localName_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "localName_with_PN_CHARS_BASE_character_boundaries" ;
# rdfs:comment "localName with PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
# mf:action <localName_with_PN_CHARS_BASE_character_boundaries.ttl> ;
# mf:result <localName_with_PN_CHARS_BASE_character_boundaries.nt> ;
# .
<#default_namespace_IRI> rdf:type rdft:TestTurtleEval ;
mf:name "default_namespace_IRI" ;
rdfs:comment "default namespace IRI (:ln)" ;
@ -385,6 +440,13 @@ @@ -385,6 +440,13 @@
mf:result <prefix_reassigned_and_used.nt> ;
.
# <#reserved_escaped_localName> rdf:type rdft:TestTurtleEval ;
# mf:name "reserved_escaped_localName" ;
# rdfs:comment "reserved-escaped local name" ;
# mf:action <reserved_escaped_localName.ttl> ;
# mf:result <reserved_escaped_localName.nt> ;
# .
<#percent_escaped_localName> rdf:type rdft:TestTurtleEval ;
mf:name "percent_escaped_localName" ;
rdfs:comment "percent-escaped local name" ;
@ -427,6 +489,13 @@ @@ -427,6 +489,13 @@
mf:result <localName_with_leading_digit.nt> ;
.
# <#localName_with_non_leading_extras> rdf:type rdft:TestTurtleEval ;
# mf:name "localName_with_non_leading_extras" ;
# rdfs:comment "localName with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
# mf:action <localName_with_non_leading_extras.ttl> ;
# mf:result <localName_with_non_leading_extras.nt> ;
# .
<#old_style_base> rdf:type rdft:TestTurtleEval ;
mf:name "old_style_base" ;
rdfs:comment "old-style base" ;
@ -448,6 +517,13 @@ @@ -448,6 +517,13 @@
mf:result <labeled_blank_node_object.nt> ;
.
# <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries" ;
# rdfs:comment "labeled blank node with PN_CHARS_BASE character boundaries (_:AZazÀÖØöø...)" ;
# mf:action <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl> ;
# mf:result <labeled_blank_node_object.nt> ;
# .
<#labeled_blank_node_with_leading_underscore> rdf:type rdft:TestTurtleEval ;
mf:name "labeled_blank_node_with_leading_underscore" ;
rdfs:comment "labeled blank node with_leading_underscore (_:_)" ;
@ -462,6 +538,13 @@ @@ -462,6 +538,13 @@
mf:result <labeled_blank_node_with_leading_digit.nt> ;
.
# <#labeled_blank_node_with_non_leading_extras> rdf:type rdft:TestTurtleEval ;
# mf:name "labeled_blank_node_with_non_leading_extras" ;
# rdfs:comment "labeled blank node with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
# mf:action <labeled_blank_node_with_non_leading_extras.ttl> ;
# mf:result <labeled_blank_node_object.nt> ;
# .
<#anonymous_blank_node_subject> rdf:type rdft:TestTurtleEval ;
mf:name "anonymous_blank_node_subject" ;
rdfs:comment "anonymous blank node subject" ;
@ -567,6 +650,20 @@ @@ -567,6 +650,20 @@
mf:result <LITERAL1.nt> ;
.
<#LITERAL1_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL1_ascii_boundaries" ;
rdfs:comment "LITERAL1_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x26\\x28...'" ;
mf:action <LITERAL1_ascii_boundaries.ttl> ;
mf:result <LITERAL1_ascii_boundaries.nt> ;
.
<#LITERAL1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL1_with_UTF8_boundaries" ;
rdfs:comment "LITERAL1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
mf:action <LITERAL1_with_UTF8_boundaries.ttl> ;
mf:result <LITERAL_with_UTF8_boundaries.nt> ;
.
<#LITERAL1_all_controls> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL1_all_controls" ;
rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ;
@ -588,6 +685,20 @@ @@ -588,6 +685,20 @@
mf:result <LITERAL1.nt> ;
.
<#LITERAL_LONG1_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG1_ascii_boundaries" ;
rdfs:comment "LITERAL_LONG1_ascii_boundaries '\\x00\\x26\\x28...'" ;
mf:action <LITERAL_LONG1_ascii_boundaries.ttl> ;
mf:result <LITERAL_LONG1_ascii_boundaries.nt> ;
.
# <#LITERAL_LONG1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
# mf:name "LITERAL_LONG1_with_UTF8_boundaries" ;
# rdfs:comment "LITERAL_LONG1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
# mf:action <LITERAL_LONG1_with_UTF8_boundaries.ttl> ;
# mf:result <LITERAL_with_UTF8_boundaries.nt> ;
# .
<#LITERAL_LONG1_with_1_squote> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG1_with_1_squote" ;
rdfs:comment "LITERAL_LONG1 with 1 squote '''a'b'''" ;
@ -609,6 +720,20 @@ @@ -609,6 +720,20 @@
mf:result <LITERAL1.nt> ;
.
<#LITERAL2_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL2_ascii_boundaries" ;
rdfs:comment "LITERAL2_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x21\\x23...'" ;
mf:action <LITERAL2_ascii_boundaries.ttl> ;
mf:result <LITERAL2_ascii_boundaries.nt> ;
.
<#LITERAL2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL2_with_UTF8_boundaries" ;
rdfs:comment "LITERAL2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
mf:action <LITERAL2_with_UTF8_boundaries.ttl> ;
mf:result <LITERAL_with_UTF8_boundaries.nt> ;
.
<#LITERAL_LONG2> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG2" ;
rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ;
@ -616,6 +741,20 @@ @@ -616,6 +741,20 @@
mf:result <LITERAL1.nt> ;
.
<#LITERAL_LONG2_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG2_ascii_boundaries" ;
rdfs:comment "LITERAL_LONG2_ascii_boundaries '\\x00\\x21\\x23...'" ;
mf:action <LITERAL_LONG2_ascii_boundaries.ttl> ;
mf:result <LITERAL_LONG2_ascii_boundaries.nt> ;
.
<#LITERAL_LONG2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG2_with_UTF8_boundaries" ;
rdfs:comment "LITERAL_LONG2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
mf:action <LITERAL_LONG2_with_UTF8_boundaries.ttl> ;
mf:result <LITERAL_with_UTF8_boundaries.nt> ;
.
<#LITERAL_LONG2_with_1_squote> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG2_with_1_squote" ;
rdfs:comment "LITERAL_LONG2 with 1 squote \"\"\"a\"b\"\"\"" ;

Loading…
Cancel
Save