The cl-ntriples Reference Manual

This is the cl-ntriples Reference Manual, version 2012.12.16, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 15:30:37 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-ntriples

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

Author

Victor Anyakin <>

License

BSD

Long Description

A basic parser and a set of simple utilities to parse N-Triples data.

N-Triples provides a simple format for representation of Semantic Web/W3C RDF semantic data. CL-NTRIPLES provides a simple and easy to use parser for Common Lisp applications.

Version

2012.12.16

Dependency

alexandria (system).

Source

cl-ntriples.asd.

Child Component

src (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 cl-ntriples/src

Source

cl-ntriples.asd.

Parent Component

cl-ntriples (system).

Child Components

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 cl-ntriples/cl-ntriples.asd

Source

cl-ntriples.asd.

Parent Component

cl-ntriples (system).

ASDF Systems

cl-ntriples.

Packages

cl-ntriples-asd.


4.1.2 cl-ntriples/src/package.lisp

Source

cl-ntriples.asd.

Parent Component

src (module).

Packages

cl-ntriples.


4.1.3 cl-ntriples/src/nt-parser.lisp

Dependency

package.lisp (file).

Source

cl-ntriples.asd.

Parent Component

src (module).

Public Interface
Internals

5 Packages

Packages are listed by definition order.


5.1 cl-ntriples

Source

package.lisp.

Nickname

nt

Use List
  • alexandria.
  • common-lisp.
Public Interface
Internals

5.2 cl-ntriples-asd

Source

cl-ntriples.asd.

Use List
  • asdf/interface.
  • common-lisp.

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Ordinary functions

Function: literal-string (triple)

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

Package

cl-ntriples.

Source

nt-parser.lisp.

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.

Package

cl-ntriples.

Source

nt-parser.lisp.


6.1.2 Generic functions

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.

Package

cl-ntriples.

Source

nt-parser.lisp.

Methods
Method: parse-nt ((src pathname))
Method: parse-nt ((src string))
Method: parse-nt ((src stream))

6.2 Internals


6.2.1 Constants

Constant: +nt-cr+
Package

cl-ntriples.

Source

nt-parser.lisp.

Constant: +nt-lf+
Package

cl-ntriples.

Source

nt-parser.lisp.

Constant: +nt-space+
Package

cl-ntriples.

Source

nt-parser.lisp.

Constant: +nt-tab+
Package

cl-ntriples.

Source

nt-parser.lisp.


6.2.2 Ordinary functions

Function: consume-whitespace (stream)
Package

cl-ntriples.

Source

nt-parser.lisp.

Function: ntriple-crlf-p (c)
Package

cl-ntriples.

Source

nt-parser.lisp.

Function: ntriple-ws-p (c)
Package

cl-ntriples.

Source

nt-parser.lisp.

Function: parse-literal (stream)

Parse the object literal from the stream.

Package

cl-ntriples.

Source

nt-parser.lisp.

Function: parse-node-id (stream)
Package

cl-ntriples.

Source

nt-parser.lisp.

Function: parse-ntriple-doc (stream)
Package

cl-ntriples.

Source

nt-parser.lisp.

Function: parse-ntriple-line (stream)
Package

cl-ntriples.

Source

nt-parser.lisp.

Function: 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*

Package

cl-ntriples.

Source

nt-parser.lisp.

Function: parse-uriref (stream)
Package

cl-ntriples.

Source

nt-parser.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   C   F   G   L   M   N   P  
Index Entry  Section

C
consume-whitespace: Private ordinary functions

F
Function, consume-whitespace: Private ordinary functions
Function, literal-string: Public ordinary functions
Function, ntriple-crlf-p: Private ordinary functions
Function, ntriple-ws-p: Private ordinary functions
Function, parse-literal: Private ordinary functions
Function, parse-node-id: Private ordinary functions
Function, parse-ntriple-doc: Private ordinary functions
Function, parse-ntriple-line: Private ordinary functions
Function, parse-ntriple-triple: Private ordinary functions
Function, parse-uriref: Private ordinary functions
Function, predicate?: Public ordinary functions

G
Generic Function, parse-nt: Public generic functions

L
literal-string: Public ordinary functions

M
Method, parse-nt: Public generic functions
Method, parse-nt: Public generic functions
Method, parse-nt: Public generic functions

N
ntriple-crlf-p: Private ordinary functions
ntriple-ws-p: Private ordinary functions

P
parse-literal: Private ordinary functions
parse-node-id: Private ordinary functions
parse-nt: Public generic functions
parse-nt: Public generic functions
parse-nt: Public generic functions
parse-nt: Public generic functions
parse-ntriple-doc: Private ordinary functions
parse-ntriple-line: Private ordinary functions
parse-ntriple-triple: Private ordinary functions
parse-uriref: Private ordinary functions
predicate?: Public ordinary functions