glaciers-in-archives/snowman

View on GitHub
internal/template/function/query.go

Summary

Maintainability
A
0 mins
Test Coverage
package function

import (
    "github.com/glaciers-in-archives/snowman/internal/sparql"
    "github.com/knakk/rdf"
)

func Query(queryLocation string, arguments ...interface{}) ([]map[string]rdf.Term, error) {
    if len(arguments) == 0 {
        return sparql.CurrentRepository.Query(queryLocation)
    }

    return sparql.CurrentRepository.Query(queryLocation, arguments...)
}