Documentation ¶
Overview ¶
Package nquads implements parsing the RDF 1.1 N-Quads like line-based syntax for RDF datasets.
Typed parsing is performed as based on a simplified grammar derived from the N-Quads grammar defined by http://www.w3.org/TR/n-quads/.
Raw parsing is performed as defined by http://www.w3.org/TR/n-quads/ with the exception that parser will allow relative IRI values, which are prohibited by the N-Quads quad-Quads specifications.
For a complete definition of the grammar, see cquads.rl and nquads.rl.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AutoConvertTypedString = true
AutoConvertTypedString allows to convert TypedString values to native equivalents directly while parsing. It will call ToNative on all TypedString values.
If conversion error occurs, it will preserve original TypedString value.
var DecodeRaw = false
Functions ¶
Types ¶
type Reader ¶ added in v0.6.1
type Reader struct {
// contains filtered or unexported fields
}
Reader implements N-Quad document parsing according to the RDF 1.1 N-Quads specification.
type Writer ¶ added in v0.6.1
type Writer struct {
// contains filtered or unexported fields
}
Writer implements N-Quad document generator according to the RDF 1.1 N-Quads specification.