w3c_test.nt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # Copyright World Wide Web Consortium, (Massachusetts Institute of
  3. # Technology, Institut National de Recherche en Informatique et en
  4. # Automatique, Keio University).
  5. #
  6. # All Rights Reserved.
  7. #
  8. # Please see the full Copyright clause at
  9. # <http://www.w3.org/Consortium/Legal/copyright-software.html>
  10. #
  11. # Test file with a variety of legal N-Triples
  12. #
  13. # Dave Beckett - http://purl.org/net/dajobe/
  14. #
  15. # $Id: test.nt,v 1.7 2003/10/06 15:52:19 dbeckett2 Exp $
  16. #
  17. #####################################################################
  18. # comment lines
  19. # comment line after whitespace
  20. # empty blank line, then one with spaces and tabs
  21. <http://example.org/resource1> <http://example.org/property> <http://example.org/resource2> .
  22. _:anon <http://example.org/property> <http://example.org/resource2> .
  23. <http://example.org/resource2> <http://example.org/property> _:anon .
  24. # spaces and tabs throughout:
  25. <http://example.org/resource3> <http://example.org/property> <http://example.org/resource2> .
  26. # line ending with CR NL (ASCII 13, ASCII 10)
  27. <http://example.org/resource4> <http://example.org/property> <http://example.org/resource2> .
  28. # 2 statement lines separated by single CR (ASCII 10)
  29. <http://example.org/resource5> <http://example.org/property> <http://example.org/resource2> . <http://example.org/resource6> <http://example.org/property> <http://example.org/resource2> .
  30. # All literal escapes
  31. <http://example.org/resource7> <http://example.org/property> "simple literal" .
  32. <http://example.org/resource8> <http://example.org/property> "backslash:\\" .
  33. <http://example.org/resource9> <http://example.org/property> "dquote:\"" .
  34. <http://example.org/resource10> <http://example.org/property> "newline:\n" .
  35. <http://example.org/resource11> <http://example.org/property> "return\r" .
  36. <http://example.org/resource12> <http://example.org/property> "tab:\t" .
  37. # Space is optional before final .
  38. <http://example.org/resource13> <http://example.org/property> <http://example.org/resource2>.
  39. <http://example.org/resource14> <http://example.org/property> "x".
  40. <http://example.org/resource15> <http://example.org/property> _:anon.
  41. # \u and \U escapes
  42. # latin small letter e with acute symbol \u00E9 - 3 UTF-8 bytes #xC3 #A9
  43. <http://example.org/resource16> <http://example.org/property> "\u00E9" .
  44. # Euro symbol \u20ac - 3 UTF-8 bytes #xE2 #x82 #xAC
  45. <http://example.org/resource17> <http://example.org/property> "\u20AC" .
  46. # resource18 test removed
  47. # resource19 test removed
  48. # resource20 test removed
  49. # XML Literals as Datatyped Literals
  50. <http://example.org/resource21> <http://example.org/property> ""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  51. <http://example.org/resource22> <http://example.org/property> " "^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  52. <http://example.org/resource23> <http://example.org/property> "x"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  53. <http://example.org/resource23> <http://example.org/property> "\""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  54. <http://example.org/resource24> <http://example.org/property> "<a></a>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  55. <http://example.org/resource25> <http://example.org/property> "a <b></b>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  56. <http://example.org/resource26> <http://example.org/property> "a <b></b> c"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  57. <http://example.org/resource26> <http://example.org/property> "a\n<b></b>\nc"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  58. <http://example.org/resource27> <http://example.org/property> "chat"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
  59. # resource28 test removed 2003-08-03
  60. # resource29 test removed 2003-08-03
  61. # Plain literals with languages
  62. <http://example.org/resource30> <http://example.org/property> "chat"@fr .
  63. <http://example.org/resource31> <http://example.org/property> "chat"@en .
  64. # Typed Literals
  65. <http://example.org/resource32> <http://example.org/property> "abc"^^<http://example.org/datatype1> .
  66. # resource33 test removed 2003-08-03