Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding map[string]struct { Type Type `json:"type"` DataType IRI `json:"datatype"` XMLLang string `json:"xml:lang"` Value interface{} `json:"value"` }
Binding is a part of a SPARQL query result json.
type Client ¶
type Client struct { HTTPClient http.Client Logger logger.Logger Endpoint string // contains filtered or unexported fields }
Client queries to its SPARQL endpoint.
type Head ¶
type Head struct {
Vars []string `json:"vars"`
}
Head is a part of a SPARQL query result json.
type Option ¶
Option sets an option to the SPARQL client.
func IdleConnTimeout ¶
IdleConnTimeout sets the maximum amount of time an idle (keep-alive) connection.
type Param ¶
type Param struct { // Ordinal position of the parameter starting from one and is always set. Ordinal int // Value is the parameter value. Value interface{} }
Param is a parameter to fill placeholders
type PrefixedName ¶
type PrefixedName string
PrefixedName https://www.w3.org/TR/rdf-sparql-query/#rPrefixedName
type QueryResult ¶
type QueryResult struct { Head Head `json:"head"` Results Results `json:"results"` Boolean bool `json:"boolean"` }
QueryResult is a destination to decoding a SPARQL query result json.
type Results ¶
type Results struct {
Bindings []Binding `json:"bindings"`
}
Results is a part of a SPARQL query result json.
type Serializable ¶
type Serializable interface {
Serialize() string
}
Serializable serialize data to embed to queries.
Click to show internal directories.
Click to hide internal directories.