shacl

package
v0.0.0-...-57b3f38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package shacl is about validating dataset files on the shacl API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DisableValidation bool
	Host              string
	ValidationTimeout time.Duration
	HTTPClient        *http.Client
}

type Detail

type Detail struct {
	Description string `json:"description,omitempty"`
	Location    string `json:"location,omitempty"`
	Test        string `json:"test,omitempty"`
}

type Validation

type Validation struct {
	Result         string   `json:"result,omitempty"`
	TotalAssertion int      `json:"total_assertion,omitempty"`
	TotalError     int      `json:"total_error,omitempty"`
	TotalWarning   int      `json:"total_warning,omitempty"`
	Details        []Detail `json:"details,omitempty"`
}

func Validate

func Validate(ctx context.Context, cfg Config, dataset []byte) (Validation, error)

Validate validates a dataset against specific shapes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL