internal/sparql/sparql.go
Method Repository.Query
has 8 return statements (exceeds 4 allowed). Open
Open
func (r *Repository) Query(queryLocation string, arguments ...interface{}) ([]map[string]rdf.Term, error) {
query, exists := r.QueryIndex[queryLocation] // QueryIndex includes query/, wanted or not? not?
if !exists {
return nil, errors.New("The given query could not be found. " + queryLocation)
}
Method Repository.QueryCall
has 5 return statements (exceeds 4 allowed). Open
Open
func (r *Repository) QueryCall(query string) (*string, error) {
form := url.Values{}
form.Set("query", query)
b := form.Encode()