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
object Cardinality
Companion
class
object Children
case class ConversionError(msg: String) extends RuntimeException with NoStackTrace
case class DatatypeString(s: String, iri: IRI) extends ObjectLiteral
object Dependencies
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 Params
e

value expression

id

an optional ShapeLabel

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 Params
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 LanguageStemRange(stem: LanguageStemRangeValue, exclusions: Option[List[LanguageExclusion]]) extends ValueSetValue
case class LanguageStemRangeLang(stem: Lang) extends LanguageStemRangeValue
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
case class LiteralStemRange(stem: LiteralStemRangeValue, exclusions: Option[List[LiteralExclusion]]) extends ValueSetValue
case class LiteralStemRangeString(str: String) extends LiteralStemRangeValue
case class LiteralStringExclusion(str: String) 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 MaxExclusive(n: NumericLiteral) extends NumericFacet
case class MaxInclusive(n: NumericLiteral) extends NumericFacet
case class MaxLength(v: Int) extends StringFacet
case class MinExclusive(n: NumericLiteral) extends NumericFacet
case class MinInclusive(n: NumericLiteral) extends NumericFacet
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
object ObjectValue
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 class ResolvedSchema(source: Schema, resolvedMapShapeExprs: Map[ShapeLabel, ResolvedShapeExpr], resolvedMapTripleExprs: Map[ShapeLabel, ResolvedTripleExpr], inheritanceGraph: Inheritance[ShapeLabel], 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 class Schema 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(id: Option[ShapeLabel], _abstract: Boolean, shapeExpr: ShapeExpr) extends ShapeExpr
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
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