Documentation ¶
Index ¶
- func GetBLAKE2(jsonld string, v1 *viper.Viper) (string, error)
- func GetNormMD5(jsonld string, v1 *viper.Viper) (string, error)
- func GetNormSHA(jsonld string, v1 *viper.Viper) (string, error)
- func GetSHA(s string) string
- func JLD2nq(jsonld string, proc *ld.JsonLdProcessor, options *ld.JsonLdOptions) (string, error)
- func JLDProc(v1 *viper.Viper) (*ld.JsonLdProcessor, *ld.JsonLdOptions)
- func MinioConnection(v1 *viper.Viper) *minio.Client
- func PipeCopyNG(name, bucket, prefix string, mc *minio.Client) error
- type Buffer
- type ContextMapping
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNormSHA ¶
GetNormSHA returns the sha hash for a normalized JSON-LD data graph
func JLD2nq ¶
func JLD2nq(jsonld string, proc *ld.JsonLdProcessor, options *ld.JsonLdOptions) (string, error)
JLD2nq converts JSON-LD documents to NQuads
func JLDProc ¶
func JLDProc(v1 *viper.Viper) (*ld.JsonLdProcessor, *ld.JsonLdOptions)
JLDProc build the JSON-LD processer and sets the options object to use in framing, processing and all JSON-LD actions TODO we create this all the time.. stupidly.. Generate these pointers and pass them around, don't keep making it over and over Ref: https://schema.org/docs/howwework.html and https://schema.org/docs/jsonldcontext.json
func MinioConnection ¶
MinioConnection Set up minio and initialize client
Types ¶
type ContextMapping ¶
ContextMapping holds the JSON-LD mappings for cached context
type Entry ¶
Entry is a struct holding the json-ld metadata and data (the text)
func GetMillObjects ¶
GetMillObjects gets the objects for a given miller
func GetShapeGraphs ¶
GetShapeGraphs gets the shape graphs the shacl miller will use. Currently this is a basic duplication of GetObjects but later this may pull shapes from geoschemas.org so this will change completely. For it pulls from the object store