Common Lisp Package: CL-NTRIPLES

README:

FUNCTION

Public

LITERAL-STRING (TRIPLE)

Returns the literal-string value of the triple's object.

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.

Private

PARSE-LITERAL (STREAM)

Parse the object literal from the stream.

PARSE-NTRIPLE-TRIPLE (STREAM)

The triple consists of a: subject, predicate, object. All they are separated by whitespace. There is also a terminating full stop point in the end of a tripple. Returns a list consisting of three elements corresponding to the tripple. The syntax is: triple ::= subject ws+ predicate ws+ object ws* '.' ws*

Undocumented

CONSUME-WHITESPACE (STREAM)

NTRIPLE-CRLF-P (C)

NTRIPLE-WS-P (C)

PARSE-NODE-ID (STREAM)

PARSE-NTRIPLE-DOC (STREAM)

PARSE-NTRIPLE-LINE (STREAM)

PARSE-URIREF (STREAM)

GENERIC-FUNCTION

Public

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.

CONSTANT

Private

Undocumented

+NT-CR+

+NT-LF+

+NT-SPACE+

+NT-TAB+