ShapePath

object ShapePath
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Types

type CompReplace[A] = Ior[List[ProcessingError], A]

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def eval(p: ShapePath, s: Schema, maybeValue: Option[Value]): (List[ProcessingError], Value)

Evaluate a shapePath

Evaluate a shapePath

Value Params
maybeValue

initial value. If not provided it is initialized to the list of shapes in s

p

shape path

s

schema

Returns

A pair containing a list of processing errors (empty if no error) and a result value

def fromString(str: String, format: String, base: Option[IRI], prefixMap: PrefixMap): Either[String, ShapePath]

Parse a shapePath from a string

Parse a shapePath from a string

Returns

either an error string or a ShapePath

def fromTypePredicates(shapeType: ShapeNodeType, preds: List[Predicate]): ShapePath
def info(msg: String): CompReplace[Unit]
def okr[A](x: A): CompReplace[A]
def replace(p: ShapePath, s: Schema, maybeValue: Option[Value], newShapeNode: ShapeNode): Ior[List[ProcessingError], Schema]
def rerr[A](msg: String): CompReplace[A]
def rwarn[A](msg: String, x: A): CompReplace[A]

Concrete fields

lazy
val availableFormats: NonEmptyList[String]
lazy
val defaultFormat: String