func NewProcessor(algorithm string) *Processor {
	if algorithm == "" {
		return Default()
	}
	return &Processor{algorithm}
}
NewProcessor returns new JSON-LD processor for aries.
package jsonld
import (
	"errors"
	"fmt"
	"strings"
	"github.com/google/uuid"
	"github.com/piprate/json-gold/ld"
	"github.com/hyperledger/aries-framework-go/pkg/common/log"
)
const (
	format             = "application/n-quads"
	defaultAlgorithm   = "URDNA2015"
	handleNormalizeErr = "error while parsing N-Quads; invalid quad. line:"
)
var logger = log.New("aries-framework/json-ld-processor")
var ErrInvalidRDFFound = errors.New("invalid JSON-LD context")
type processorOpts struct {
	removeInvalidRDF bool
	frameBlankNodes  bool
	validateRDF      bool
	documentLoader   ld.DocumentLoader
	externalContexts []string
}
type ProcessorOpts func(opts *processorOpts)
func WithRemoveAllInvalidRDF() ProcessorOpts {
	return func(opts *processorOpts) {
		opts.removeInvalidRDF = true
	}
}
func WithFrameBlankNodes() ProcessorOpts {
	return func(opts *processorOpts) {
		opts.frameBlankNodes = true
	}
}
func WithDocumentLoader(loader ld.DocumentLoader) ProcessorOpts {
	return func(opts *processorOpts) {
		opts.documentLoader = loader
	}
}
func WithExternalContext(context ...string) ProcessorOpts {
	return func(opts *processorOpts) {
		opts.externalContexts = context
	}
}
func WithValidateRDF() ProcessorOpts {
	return func(opts *processorOpts) {
		opts.validateRDF = true
	}
}
type Processor struct {
	algorithm string
}