case class Validator21(schema: ResolvedSchema, externalResolver: ExternalResolver = ExternalResolver.NoAction, builder: RDFBuilder) extends Validator with ShExChecker with ShowValidator with AllPaths with Product with Serializable
ShEx validator for ShEx 2.1 (no extends, abstract)
- Alphabetic
- By Inheritance
- Validator21
- Serializable
- Product
- Equals
- AllPaths
- Extend
- ShowValidator
- ShExChecker
- Validator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Validator21(schema: ResolvedSchema, externalResolver: ExternalResolver = ExternalResolver.NoAction, builder: RDFBuilder)
Type Members
- type Base[A] = IndexedReaderWriterStateT[IO, ConfigEnv, Log, State, State, A]
- Definition Classes
- ShExChecker
- type Check[A] = EitherT[Base, Err, A]
- Definition Classes
- ShExChecker
- type CheckTyping = EitherT[Base, Err, ShapeTyping]
- Definition Classes
- ShExChecker
- type Config = ShExConfig
- Definition Classes
- ShExChecker
- type Env = Context
- Definition Classes
- ShExChecker
- type Err = ShExError
- Definition Classes
- ShExChecker
- type Evidence = (NodeShape, String)
- Definition Classes
- ShExChecker
- type Log = ValidationLog
- Definition Classes
- ShExChecker
- type NodeChecker = (Attempt) => (RDFNode) => CheckTyping
- type NodeShapeChecker = (RDFNode, Shape) => CheckTyping
- type ShapeChecker = (ShapeExpr) => CheckTyping
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAction2Log(a: Action): Check[Unit]
- Definition Classes
- ShExChecker
- def addEvidence(nodeShape: NodeShape, msg: String): Check[ShapeTyping]
- Definition Classes
- ShExChecker
- def addLog(log: Log): Check[Unit]
- Definition Classes
- ShExChecker
- def addNotEvidence(nodeShape: NodeShape, e: ShExError, msg: String): Check[ShapeTyping]
- Definition Classes
- ShExChecker
- def allPaths(se: ShapeExpr, schema: AbstractSchema): Either[String, Set[Path]]
Return all the paths that are mentioned in a shape expression It includes also the paths it extends and the paths from its descendants
Return all the paths that are mentioned in a shape expression It includes also the paths it extends and the paths from its descendants
- schema
Schema to which the shape belongs, it is needed to resolve references to other shapes
- returns
Set of paths or error in case the shape is not well defined (may have bad references)
- Definition Classes
- AllPaths
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attempt[A](c: Check[A]): Check[Either[Err, A]]
- Definition Classes
- ShExChecker
- def bind[A, Other](c1: Check[Other], c2: Check[A]): Check[A]
- Definition Classes
- ShExChecker
- val builder: RDFBuilder
- def checkAll[A](xs: List[Check[A]]): Check[List[A]]
Checks all elements in a list If any of the elements fails, it fails
Checks all elements in a list If any of the elements fails, it fails
- Definition Classes
- ShExChecker
- def checkAllFailFAtFirstFlag[A, B, F[_]](ls: => LazyList[A], check: (A) => F[(B, Boolean)], last: => B)(implicit arg0: Monoid[B], arg1: Monad[F]): F[(B, Boolean)]
- Definition Classes
- ShExChecker
- def checkAllFlag[A, B, F[_]](ls: => LazyList[A], check: (A) => F[(B, Boolean)], last: => B)(implicit arg0: Monoid[B], arg1: Monad[F]): F[(B, Boolean)]
- Definition Classes
- ShExChecker
- def checkCond(condition: Boolean, attempt: Attempt, error: ShExError, evidence: String): CheckTyping
- Definition Classes
- ShExChecker
- def checkList[A, B](ls: List[A], check: (A) => Check[B]): Check[List[B]]
- Definition Classes
- ShExChecker
- def checkLs[A](cs: List[Check[A]]): Check[List[A]]
Given a list of checks, return the list of values that pass It never fails (in case of failure, it ignores the value)
Given a list of checks, return the list of values that pass It never fails (in case of failure, it ignores the value)
- Definition Classes
- ShExChecker
- def checkOneOf[A](cs: List[Check[A]], errNone: Err, errMoreThanOne: (List[A]) => Err): Check[A]
- Definition Classes
- ShExChecker
- def checkPair1st[A, B](p: (Check[A], B)): Check[(A, B)]
- Definition Classes
- ShExChecker
- def checkPair2nd[A, B](p: (A, Check[B])): Check[(A, B)]
- Definition Classes
- ShExChecker
- def checkPartitionNeighs(attempt: Attempt, node: RDFNode, s: Shape, neighsShape: Neighs, extended: List[(ShapeExpr, Neighs)], visited: Visited): CheckTyping
- def checkSequenceFlag[A, F[_]](ls: => List[F[(A, Boolean)]], last: A)(implicit arg0: Monoid[A], arg1: Monad[F]): F[(A, Boolean)]
- Definition Classes
- ShExChecker
- def checkSome[A](cs: LazyList[Check[A]])(implicit ev: Monoid[Err]): Check[A]
- Definition Classes
- ShExChecker
- def checkSome[A](cs: List[Check[A]], errorIfNone: Err): Check[A]
- Definition Classes
- ShExChecker
- def checkSomeFlag[A, B, F[_]](ls: => LazyList[A], check: (A) => F[(B, Boolean)], last: F[(B, Boolean)])(implicit arg0: Monad[F]): F[(B, Boolean)]
Given a computation check that returns a pair of value and a flag, returns the first value whose flag is true If none is true, returns the value of the computation parameter last
Given a computation check that returns a pair of value and a flag, returns the first value whose flag is true If none is true, returns the value of the computation parameter last
- Definition Classes
- ShExChecker
- def checkSomeFlagCount[A, B](ls: => LazyList[A], check: (A) => Check[(B, Boolean)], last: B)(implicit arg0: Monoid[B]): Check[(B, Int)]
- Definition Classes
- ShExChecker
- def checkSomeFlagValue[A, B](ls: => LazyList[A], check: (A) => Check[B], last: Check[B]): Check[(B, Option[A])]
Checks some values.
Checks some values. Returns the first that passes or None
- Definition Classes
- ShExChecker
- def checkSomeLazyList[A](cs: LazyList[Check[A]], errIfNone: => Err): Check[A]
- Definition Classes
- ShExChecker
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def combineTypings(ts: ShapeTyping*): Check[ShapeTyping]
- Definition Classes
- ShExChecker
- def combineTypings(ts: List[ShapeTyping]): Check[ShapeTyping]
- Definition Classes
- ShExChecker
- def cond[A, B](check: Check[A], thenPart: (A) => Check[B], elsePart: (Err) => Check[B]): Check[B]
Attempts to execute a check If it fails, applies
thenPartto the result, otherwise applieselsePartto the errorAttempts to execute a check If it fails, applies
thenPartto the result, otherwise applieselsePartto the error- A
type returned by the computation
- B
type returned the the condition
- check
Computation to check
- thenPart
part to be executed when it passes
- elsePart
part to be executed when the check fails
- Definition Classes
- ShExChecker
- def condFlag[A, B](check: Check[A], thenPart: (A) => Check[B], elsePart: (Err) => Check[B]): Check[(B, Boolean)]
- Definition Classes
- ShExChecker
- def debug(msg: String): Check[Unit]
- Definition Classes
- ShExChecker
- def entries2Neighs(set: Set[Entry[Path, RDFNode]]): Neighs
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def err[A](e: Err): Check[A]
- Definition Classes
- ShExChecker
- def errStr[A](msg: String): Check[A]
- Definition Classes
- ShExChecker
- def extendCheckingVisited[S, E, Err, Label](s: S, finder: (Label) => Either[Err, S], extend: (S) => Option[List[Label]], expr: (S) => Option[E])(implicit arg0: Semigroup[E]): Either[Err, Option[E]]
- Definition Classes
- Extend
- val externalResolver: ExternalResolver
- def filterSuccess[A, B](ls: List[A], check: (A) => Check[B]): Check[List[(A, B)]]
Returns the list of values whose computation is successful
Returns the list of values whose computation is successful
- A
type of values
- B
type returned by computation
- ls
list of values
- check
computation to check for each value
- returns
a computation with a list of pairs for whom the computation was successful
- Definition Classes
- ShExChecker
- def fromBase[A](b: Base[A]): Check[A]
- Definition Classes
- ShExChecker
- def fromEither[A](e: Either[Err, A]): Check[A]
- Definition Classes
- ShExChecker
- def fromEitherIO[A](e: EitherT[IO, Err, A]): Check[A]
- Definition Classes
- ShExChecker
- def fromEitherIOS[A](e: EitherT[IO, String, A]): Check[A]
- Definition Classes
- ShExChecker
- def fromEitherString[A](e: Either[String, A]): Check[A]
- Definition Classes
- ShExChecker
- def fromIO[A](io: IO[A]): Check[A]
- Definition Classes
- ShExChecker
- def fromIOUnsafe[A](io: IO[A]): Check[A]
- Definition Classes
- ShExChecker
- def fromStream[A](s: Stream[IO, A]): Check[List[A]]
- Definition Classes
- ShExChecker
- def getAvailablePaths(ses: List[ShapeExpr]): Check[List[Available[Path]]]
- def getAvailableShapeExprs(s: Shape): Check[List[ShapeExpr]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getConfig: Check[Config]
- Definition Classes
- ShExChecker
- def getConfigEnv: Check[ConfigEnv]
- Definition Classes
- ShExChecker
- def getEntries(neighs: Neighs): Set[Entry[Path, RDFNode]]
- def getEnv: Check[Env]
- Definition Classes
- ShExChecker
- def getNeighPaths(node: RDFNode, paths: Set[Path], ext: Option[Neighs]): Check[Neighs]
- Definition Classes
- ShExChecker
- def getNeighs(node: RDFNode, ext: Option[Neighs]): Check[Neighs]
- Definition Classes
- ShExChecker
- def getNodesPrefixMap: Check[PrefixMap]
- Definition Classes
- ShExChecker
- def getNotAllowedPredicates(node: RDFNode, paths: List[Path], neighs: Neighs): Check[Set[IRI]]
- Definition Classes
- ShExChecker
- def getPaths(se: ShapeExpr, schema: ResolvedSchema): Check[Set[Path]]
- Definition Classes
- ShExChecker
- def getRDF: Check[RDFReader]
- Definition Classes
- ShExChecker
- def getTargetNodeDeclarations(rdf: RDFReader): Check[List[(RDFNode, ShapeLabel)]]
- Definition Classes
- ShExChecker
- def getTyping: Check[ShapeTyping]
- Definition Classes
- ShExChecker
- def getValuesPath(node: RDFNode, path: Path, ext: Option[Neighs]): Check[Set[RDFNode]]
- Definition Classes
- ShExChecker
- def getVerbose: Check[VerboseLevel]
- Definition Classes
- ShExChecker
- lazy val ignoredPathsClosed: List[Path]
- Definition Classes
- ShExChecker
- def incomingTriples(node: RDFNode, rdf: RDFReader): Check[List[Arc]]
- Definition Classes
- ShExChecker
- def incomingTriplesPredicates(node: RDFNode, preds: Set[IRI], rdf: RDFReader): Check[List[Arc]]
- Definition Classes
- ShExChecker
- def info(msg: String): Check[Unit]
- Definition Classes
- ShExChecker
- def infoGreen(msg: String): Check[Unit]
- Definition Classes
- ShExChecker
- def infoTyping(t: ShapeTyping, msg: String, shapesPrefixMap: PrefixMap): Check[Unit]
- Definition Classes
- ShExChecker
- val iriActions: IRI
- Definition Classes
- ShExChecker
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def local[A](f: (Env) => Env)(comp: Check[A]): Check[A]
- Definition Classes
- ShExChecker
- def mkErr[F[_]](e: Err)(implicit arg0: Applicative[F]): F[Err]
- Definition Classes
- ShExChecker
- def mkLabel(label: ShapeMapLabel): ShapeLabel
- Definition Classes
- ShExChecker
- def mkSeq[A, B](vs: List[A], f: (A) => IO[List[B]]): IO[List[B]]
- Definition Classes
- ShExChecker
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nodeValidator: NodeConstraintValidator
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ok[A](x: A): Check[A]
- Definition Classes
- ShExChecker
- def optCheck[A, B](c: Option[A], check: (A) => Check[B], default: => Check[B]): Check[B]
If
cis some value, appliescheck, otherwise appliesdefaultIf
cis some value, appliescheck, otherwise appliesdefault- c
Optional value
- check
check function
- default
value in case there is no option
- Definition Classes
- ShExChecker
- def orElse[A](c1: Check[A], c2: => Check[A]): Check[A]
- Definition Classes
- ShExChecker
- def outgoingTriples(node: RDFNode, rdf: RDFReader): Check[List[Arc]]
- Definition Classes
- ShExChecker
- def outgoingTriplesPredicates(node: RDFNode, preds: Set[IRI], rdf: RDFReader): Check[List[Arc]]
- Definition Classes
- ShExChecker
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def run[A](c: Check[A])(config: Config)(env: Env): IO[(Log, Either[Err, A])]
- Definition Classes
- ShExChecker
- def runCheck[A](c: Check[A], rdf: RDFReader, verbose: VerboseLevel = VerboseLevel.Nothing)(implicit arg0: Show[A]): IO[CheckResult[ShExError, A, Log]]
- Definition Classes
- ShExChecker
- def runLocal[A](c: Check[A], f: (Env) => Env): Check[A]
- Definition Classes
- ShExChecker
- def runLocalSafe[A](c: Check[A], f: (Env) => Env, safe: (Err, Env) => A): Check[A]
Run a computation in a local environment.
Run a computation in a local environment. If the computation fails, return the result of calling
safefunction over the current environment- c
computation to run
- f
environment
- safe
function to call if the computation fails
- Definition Classes
- ShExChecker
- def runLocalSafeTyping[A](c: Check[A], f: (ShapeTyping) => ShapeTyping, safe: (Err, ShapeTyping) => A): Check[A]
- Definition Classes
- ShExChecker
- def runLocalTyping[A](c: Check[A], f: (ShapeTyping) => ShapeTyping): Check[A]
- Definition Classes
- ShExChecker
- def runValidator(chk: Check[ShapeTyping], rdf: RDFReader, verbose: VerboseLevel): IO[Result]
Execute the validator with a given checker param chk Checker param rdf RDFReader verbose boolean flag to show internal messages
- val schema: ResolvedSchema
- Definition Classes
- Validator21 → ShowValidator
- def sequence[A](xs: List[Check[A]]): Check[List[A]]
- Definition Classes
- ShExChecker
- def sh(lbls: Set[ShapeLabel]): String
- Definition Classes
- ShowValidator
- implicit lazy val showAttempt: Show[Attempt]
- Definition Classes
- ShowValidator
- def showCurrentTyping(msg: String, shapesPrefixMap: PrefixMap): Check[Unit]
- Definition Classes
- ShExChecker
- implicit lazy val showIRI: Show[IRI]
- Definition Classes
- ShowValidator
- implicit lazy val showPath: Show[Path]
- Definition Classes
- ShowValidator
- implicit lazy val showRDFNode: Show[RDFNode]
- Definition Classes
- ShowValidator
- implicit lazy val showRDFTriple: Show[RDFTriple]
- Definition Classes
- ShowValidator
- def showSE(s: ShapeExpr): String
- Definition Classes
- ShowValidator
- def showShape(s: Shape): String
- Definition Classes
- ShowValidator
- implicit lazy val showShapeLabel: Show[ShapeLabel]
- Definition Classes
- ShowValidator
- def step(msg: String): Check[Unit]
- Definition Classes
- ShExChecker
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def validateCheck(condition: Boolean, e: Err): Check[Unit]
- Definition Classes
- ShExChecker
- def validateNodeDecls(rdf: RDFReader, verbose: VerboseLevel): IO[Result]
Validate a node following target declarations.
Validate a node following target declarations. This methods follows SHACL convention and could be deprecated in the future
- Definition Classes
- Validator21 → Validator
- def validateNodeShape(rdf: RDFReader, node: IRI, shape: String, verbose: VerboseLevel): IO[Result]
Validate a node against a shape
Validate a node against a shape
- Definition Classes
- Validator21 → Validator
- def validateNodeStart(rdf: RDFReader, node: IRI, verbose: VerboseLevel): IO[Result]
Validate a node against the START declaration
Validate a node against the START declaration
- Definition Classes
- Validator21 → Validator
- def validateShapeMap(rdf: RDFReader, shapeMap: FixedShapeMap, verbose: VerboseLevel): IO[Result]
Validate a node against a shape map
Validate a node against a shape map
- Definition Classes
- Validator21 → Validator
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])