es.weso.shex

package es.weso.shex

Type members

Classlikes

abstract class AbstractSchema
case class Annotation(predicate: IRI, obj: ObjectValue)
case object BNodeKind extends NodeKind
case class BNodeLabel(bnode: BNode) extends ShapeLabel
case class Cardinality(min: Int, max: Max)
Companion:
object
Companion:
class
object Children
case class ConversionError(msg: String) extends RuntimeException with NoStackTrace
case class DatatypeString(s: String, iri: IRI) extends ObjectLiteral
case class Direct(pred: IRI) extends Path
case class EachOf(id: Option[ShapeLabel], expressions: List[TripleExpr], optMin: Option[Int], optMax: Option[Max], semActs: Option[List[SemAct]], annotations: Option[List[Annotation]]) extends TripleExpr
Companion:
object
object EachOf
Companion:
class
case class Expr(id: Option[ShapeLabel], e: ValueExpr) extends TripleExpr

Support for arithmetic expressions

Support for arithmetic expressions

Value parameters:
e

value expression

id

an optional ShapeLabel

case object Extends extends ShapesRelation
case class FractionDigits(n: Int) extends NumericFacet
sealed trait IRIExclusion
case object IRIKind extends NodeKind
case class IRILabel(iri: IRI) extends ShapeLabel
case class IRIRefExclusion(iri: IRI) extends IRIExclusion
case class IRIStem(stem: IRI) extends ValueSetValue
case class IRIStemExclusion(iriStem: IRIStem) extends IRIExclusion
case class IRIStemRange(stem: IRIStemRangeValue, exclusions: Option[List[IRIExclusion]]) extends ValueSetValue
sealed trait IRIStemRangeValue
case class IRIStemValueIRI(iri: IRI) extends IRIStemRangeValue
case class IRIStemWildcard() extends IRIStemRangeValue
case class IRIValue(i: IRI) extends ObjectValue
case class Inclusion(include: ShapeLabel) extends TripleExpr
case class IntMax(v: Int) extends Max

Bounded cardinality represented by an Int value

Bounded cardinality represented by an Int value

Value parameters:
v

maximum cardinality

case class Inverse(pred: IRI) extends Path
case class LangString(s: String, lang: Lang) extends ObjectLiteral
case class Language(languageTag: Lang) extends ValueSetValue
sealed trait LanguageExclusion
case class LanguageStem(stem: Lang) extends ValueSetValue
case class LanguageStemExclusion(languageStem: LanguageStem) extends LanguageExclusion
case class LanguageTagExclusion(lang: Lang) extends LanguageExclusion
case class Length(v: Int) extends StringFacet
sealed trait LiteralExclusion
case object LiteralKind extends NodeKind
case class LiteralStem(stem: String) extends ValueSetValue
case class LiteralStemExclusion(literalStem: LiteralStem) extends LiteralExclusion
sealed abstract trait Max

Represents the maximum cardinality which can be a number or unbounded

Represents the maximum cardinality which can be a number or unbounded

case class MaxLength(v: Int) extends StringFacet
case class MinLength(v: Int) extends StringFacet
case class NodeConstraint(id: Option[ShapeLabel], nodeKind: Option[NodeKind], datatype: Option[IRI], xsFacets: List[XsFacet], values: Option[List[ValueSetValue]], annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr
Companion:
object
Companion:
class
sealed trait NodeKind
case object NonLiteralKind extends NodeKind
sealed trait NumericFacet extends XsFacet
sealed trait ObjectLiteral extends ObjectValue
sealed trait ObjectValue extends ValueSetValue
Companion:
object
Companion:
class
case class OneOf(id: Option[ShapeLabel], expressions: List[TripleExpr], optMin: Option[Int], optMax: Option[Max], semActs: Option[List[SemAct]], annotations: Option[List[Annotation]]) extends TripleExpr
Companion:
object
object OneOf
Companion:
class
sealed trait Path
Companion:
object
object Path
Companion:
class
case class Pattern(p: String, flags: Option[String]) extends StringFacet
case object References extends ShapesRelation
case class ResolvedSchema(source: Schema, resolvedMapShapeExprs: Map[ShapeLabel, ResolvedShapeExpr], resolvedMapTripleExprs: Map[ShapeLabel, ResolvedTripleExpr], inheritanceGraph: Inheritance[ShapeLabel, ShapesRelation], labelLocationMap: Option[Map[ShapeLabel, Location]]) extends AbstractSchema

Represents a schema with all the imports resolved

Represents a schema with all the imports resolved

Companion:
object
Companion:
class
case class ResolvedShapeExpr(se: ShapeExpr, source: Option[IRI])
Companion:
object
Companion:
class
case class ResolvedTripleExpr(te: TripleExpr, source: Option[IRI])
Companion:
object
Companion:
class
case object Restricts extends ShapesRelation
case class Schema(id: IRI, prefixes: Option[PrefixMap], base: Option[IRI], startActs: Option[List[SemAct]], start: Option[ShapeExpr], shapes: Option[List[ShapeExpr]], optTripleExprMap: Option[Map[ShapeLabel, TripleExpr]], imports: List[IRI], labelLocationMap: Option[Map[ShapeLabel, Location]]) extends AbstractSchema
Companion:
object
object Schema
Companion:
class
case class SemAct(name: IRI, code: Option[String])
object ShExDiff
case class Shape(id: Option[ShapeLabel], virtual: Option[Boolean], closed: Option[Boolean], extra: Option[List[IRI]], expression: Option[TripleExpr], _extends: Option[List[ShapeLabel]], restricts: Option[List[ShapeLabel]], annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr with Extend
Companion:
object
object Shape
Companion:
class
case class ShapeAnd(id: Option[ShapeLabel], shapeExprs: List[ShapeExpr], annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr
Companion:
object
object ShapeAnd
Companion:
class
case class ShapeDecl(lbl: ShapeLabel, shapeExpr: ShapeExpr) extends ShapeExpr

Declares an abstract shape expression

Declares an abstract shape expression

Companion:
object
object ShapeDecl
Companion:
class
sealed abstract trait ShapeExpr extends Product with Serializable
Companion:
object
object ShapeExpr
Companion:
class
case class ShapeExternal(id: Option[ShapeLabel], annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr
Companion:
object
Companion:
class
sealed abstract trait ShapeLabel extends Product with Serializable
Companion:
object
object ShapeLabel
Companion:
class
case class ShapeNot(id: Option[ShapeLabel], shapeExpr: ShapeExpr, annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr
Companion:
object
object ShapeNot
Companion:
class
case class ShapeOr(id: Option[ShapeLabel], shapeExprs: List[ShapeExpr], annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr
Companion:
object
object ShapeOr
Companion:
class
case class ShapeRef(reference: ShapeLabel, annotations: Option[List[Annotation]], actions: Option[List[SemAct]]) extends ShapeExpr
Companion:
object
object ShapeRef
Companion:
class
sealed abstract class ShapesRelation
case object Star extends Max

Unbounded cardinality

Unbounded cardinality

case object Start extends ShapeLabel
sealed trait StringFacet extends XsFacet
case class StringValue(s: String) extends ObjectLiteral
case class TotalDigits(n: Int) extends NumericFacet
case class TripleConstraint(id: Option[ShapeLabel], optInverse: Option[Boolean], optNegated: Option[Boolean], predicate: IRI, valueExpr: Option[ShapeExpr], optMin: Option[Int], optMax: Option[Max], optVariableDecl: Option[VarName], semActs: Option[List[SemAct]], annotations: Option[List[Annotation]]) extends TripleExpr
Companion:
object
Companion:
class
sealed trait TripleExpr
sealed trait ValueSetValue
final case class VarName(str: String) extends AnyVal
Companion:
object
object VarName
Companion:
class
case class VarTable(table: Map[VarName, List[RDFNode]])
Companion:
object
object VarTable
Companion:
class
sealed trait XsFacet
object values