mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 23:26:52 +08:00

This code is based on the RDF N-Quad parsing code that I wrote for the Cayley graph database project in 2014. The code here does not include any code that was written by other members of the Cayley project and so is unencumbered by copyright ownership from that project. License addition is for the test suite from [1] linked from [2]. A second more restrictive license is possible if we are claiming spec compliance[3]. [1]https://www.w3.org/Consortium/Legal/2008/03-bsd-license [2]https://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html [3]https://www.w3.org/Consortium/Legal/2008/04-testsuite-license.html
27 lines
621 B
Go
27 lines
621 B
Go
// Code generated by "stringer -type=Kind"; DO NOT EDIT.
|
|
|
|
package rdf
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[Invalid-0]
|
|
_ = x[IRI-1]
|
|
_ = x[Literal-2]
|
|
_ = x[Blank-3]
|
|
}
|
|
|
|
const _Kind_name = "InvalidIRILiteralBlank"
|
|
|
|
var _Kind_index = [...]uint8{0, 7, 10, 17, 22}
|
|
|
|
func (i Kind) String() string {
|
|
if i < 0 || i >= Kind(len(_Kind_index)-1) {
|
|
return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
|
|
}
|