test.lua 285 B

123456789101112
  1. term = require "term"
  2. triple = require "triple"
  3. trp = triple.new (
  4. term.iriref_new("urn:s:1"),
  5. term.iriref_new("urn:p:1"),
  6. term.lit_new("hello", nil, "us-EN"))
  7. t1 = term.iriref_new("urn:s:11")
  8. t2 = term.lit_new("123", "xsd:int")
  9. graph = require "graph"
  10. gr1 = graph.new()