cl-ntriples

API Reference

cl-ntriples

CL-NTRIPLES is a simple basic parser for Ntriples data.

CL-NTRIPLES

  • Generic-Function PARSE-NT (src)
    Parses N-Triples from the given source. This method accepts a file pathname, a stream, or a string. Returns a list of triples consisting of three elements: subject, predicate, object. Subjects can be either an `uriref' or a `nodeID'. Objects can be of three types: `uriref', `nodeID' or a `literal'. Depending on the type of the object it is encoded into a list.
  • Method PARSE-NT ((src stream))
  • Method PARSE-NT ((src stream))
  • Method PARSE-NT ((src stream))
  • Method PARSE-NT ((src string))
  • Method PARSE-NT ((src string))
  • Method PARSE-NT ((src string))
  • Method PARSE-NT ((src pathname))
  • Method PARSE-NT ((src pathname))
  • Method PARSE-NT ((src pathname))
  • Function PREDICATE? (triples predicate &key lang data-type)
    Given the list of triples produced by PARSE-NT returns a list of triples with predicates matching the given one.
  • Function LITERAL-STRING (triple)
    Returns the literal-string value of the triple's object.