SchemaMaker

class SchemaMaker extends ShExDocBaseVisitor[Any]

Visits the AST and builds the corresponding ShEx abstract syntax

class ShExDocBaseVisitor[Any]
trait ShExDocVisitor[Any]
class AbstractParseTreeVisitor[Any]
trait ParseTreeVisitor[Any]
class Object
trait Matchable
class Any

Type members

Classlikes

case object Closed extends Qualifier
case class Extends(labels: List[ShapeLabel]) extends Qualifier
case class Extra(iris: List[IRI]) extends Qualifier
case object NLFractionDigits extends NumericLength
case object NLTotalDigits extends NumericLength
case object NRMaxExclusive extends NumericRange
case object NRMaxInclusive extends NumericRange
case object NRMinExclusive extends NumericRange
case object NRMinInclusive extends NumericRange
sealed trait NumericLength
sealed trait NumericRange
sealed trait Qualifier
case class Restricts(labels: List[ShapeLabel]) extends Qualifier
case class Sense(optInverse: Option[Boolean], optNegated: Option[Boolean])

Types

type Cardinality = (Option[Int], Option[Max])
type Directive = Either[(Prefix, IRI), Either[IRI, IRI]]
type Start = Option[ShapeExpr]

Value members

Concrete methods

def addAnnotations(maybeTe: Option[TripleExpr], anns: List[Annotation]): Builder[Option[TripleExpr]]
def checkFacets(ls: List[XsFacet]): Builder[Unit]
def cleanCode(str: String): Builder[String]
def extendTripleExpr(te: TripleExpr, cardinality: Cardinality, anns: List[Annotation], sActs: List[SemAct]): TripleExpr
def extractIRIfromIRIREF(d: String, base: Option[IRI]): Builder[IRI]
def getCardinality(ctx: CardinalityContext): Builder[Cardinality]
def getDecimal(str: String): Builder[BigDecimal]
def getDouble(str: String): Builder[Double]
def getInteger(str: String): Builder[Int]
def getPrefixes(ds: List[Directive]): Map[Prefix, IRI]
def isDefined[A](x: A): Boolean
def makeNumericFacet(nr: NumericRange, nl: NumericLiteral): Builder[NumericFacet]
def makeNumericLiteral(lexicalForm: String, datatype: IRI): Builder[NumericLiteral]
def makeShape(qualifiers: List[Qualifier], tripleExpr: Option[TripleExpr], semActs: List[SemAct], anns: List[Annotation]): Builder[ShapeExpr]
def optBuilder[A](v: A): Builder[Option[A]]
def optListCombine[A](maybeAs: Option[List[A]], as: List[A]): Option[List[A]]
def optMapBuilder[A, B](x: Option[A], f: A => Builder[B]): Builder[Option[B]]
def removeUnderscore(str: String): String
def resolve(prefixedName: String): Builder[IRI]
def splitPrefix(str: String): (String, String)
def stripStringLiteral1(s: String): String
def stripStringLiteral2(s: String): String
def stripStringLiteralLong1(s: String): String
def stripStringLiteralLong2(s: String): String
override def visitAnnotation(ctx: AnnotationContext): Builder[Annotation]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitBaseDecl(ctx: BaseDeclContext): Builder[IRI]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitBasicExpr(e: BasicExprContext): Builder[ValueExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitBlankNode(ctx: BlankNodeContext): Builder[BNode]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitBooleanLiteral(ctx: BooleanLiteralContext): Builder[Literal]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitBracketedTripleExpr(ctx: BracketedTripleExprContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitDatatype(ctx: DatatypeContext): Builder[IRI]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitDirective(ctx: DirectiveContext): Builder[Directive]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitExpr(e: ExprContext): Builder[ValueExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitExtension(ctx: ExtensionContext): Builder[Qualifier]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitExtraPropertySet(ctx: ExtraPropertySetContext): Builder[Qualifier]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitGroupTripleExpr(ctx: GroupTripleExprContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitImportDecl(ctx: ImportDeclContext): Builder[IRI]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitInclude(ctx: IncludeContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
def visitInlineLitNodeConstraint(ctx: InlineLitNodeConstraintContext): Builder[NodeConstraint]
def visitInlineNonLitNodeConstraint(ctx: InlineNonLitNodeConstraintContext): Builder[NodeConstraint]
override def visitInlineShapeAnd(ctx: InlineShapeAndContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
def visitInlineShapeAtom(ctx: InlineShapeAtomContext): Builder[ShapeExpr]
override def visitInlineShapeDefinition(ctx: InlineShapeDefinitionContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitInlineShapeExpression(ctx: InlineShapeExpressionContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitInlineShapeNot(ctx: InlineShapeNotContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitInlineShapeOr(ctx: InlineShapeOrContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitInlineShapeOrRef(ctx: InlineShapeOrRefContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitIri(ctx: IriContext): Builder[IRI]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitIriExclusion(ctx: IriExclusionContext): Builder[IRIExclusion]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitIriRange(ctx: IriRangeContext): Builder[ValueSetValue]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitLanguageExclusion(ctx: LanguageExclusionContext): Builder[LanguageExclusion]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
def visitLanguageRange(ctx: LanguageRangeContext): Builder[ValueSetValue]
def visitList[A, B](visitFn: A => Builder[B], ls: List[A]): Builder[List[B]]
override def visitLitNodeConstraint(ctx: LitNodeConstraintContext): Builder[NodeConstraint]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitLiteral(ctx: LiteralContext): Builder[Literal]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitLiteralExclusion(ctx: LiteralExclusionContext): Builder[LiteralExclusion]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitLiteralRange(ctx: LiteralRangeContext): Builder[ValueSetValue]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitMax_range(ctx: Max_rangeContext): Builder[Option[Max]]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitMin_range(ctx: Min_rangeContext): Builder[Int]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitMultiElementGroup(ctx: MultiElementGroupContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitMultiElementOneOf(ctx: MultiElementOneOfContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNodeConstraintLiteral(ctx: NodeConstraintLiteralContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNodeConstraintNonLiteral(ctx: NodeConstraintNonLiteralContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNonLitNodeConstraint(ctx: NonLitNodeConstraintContext): Builder[NodeConstraint]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNonLiteralKind(ctx: NonLiteralKindContext): Builder[NodeKind]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNotStartAction(ctx: NotStartActionContext): Builder[NotStartAction]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNumericFacet(ctx: NumericFacetContext): Builder[XsFacet]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNumericLength(ctx: NumericLengthContext): Builder[NumericLength]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNumericLiteral(ctx: NumericLiteralContext): Builder[Literal]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitNumericRange(ctx: NumericRangeContext): Builder[NumericRange]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitOneOfTripleExpr(ctx: OneOfTripleExprContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
def visitOpt[A, B](visitFn: A => Builder[B], v: A): Builder[Option[B]]
override def visitPredicate(ctx: PredicateContext): Builder[IRI]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitPrefixDecl(ctx: PrefixDeclContext): Builder[(Prefix, IRI)]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitPrefixedName(ctx: PrefixedNameContext): Builder[String]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitQualifier(ctx: QualifierContext): Builder[Qualifier]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitRawNumeric(ctx: RawNumericContext): Builder[NumericLiteral]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitRdfLiteral(ctx: RdfLiteralContext): Builder[Literal]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitRepeatCardinality(ctx: RepeatCardinalityContext): Builder[Cardinality]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitRestriction(ctx: RestrictionContext): Builder[Qualifier]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitSemanticAction(ctx: SemanticActionContext): Builder[SemAct]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitSenseFlags(ctx: SenseFlagsContext): Builder[Sense]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShExDoc(ctx: ShExDocContext): Builder[Schema]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeAnd(ctx: ShapeAndContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeDefinition(ctx: ShapeDefinitionContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeExprDecl(ctx: ShapeExprDeclContext): Builder[(ShapeLabel, ShapeExpr)]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeExprLabel(ctx: ShapeExprLabelContext): Builder[ShapeLabel]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeExpression(ctx: ShapeExpressionContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeNot(ctx: ShapeNotContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeOr(ctx: ShapeOrContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeOrRef(ctx: ShapeOrRefContext): Builder[ShapeExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitShapeRef(ctx: ShapeRefContext): Builder[ShapeLabel]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitSingleElementGroup(ctx: SingleElementGroupContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitStart(ctx: StartContext): Builder[Option[ShapeExpr]]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitStartActions(ctx: StartActionsContext): Builder[Option[List[SemAct]]]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitStatement(ctx: StatementContext): Builder[Unit]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitString(ctx: StringContext): Builder[String]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitStringFacet(ctx: StringFacetContext): Builder[XsFacet]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitStringLength(ctx: StringLengthContext): Int => Builder[StringFacet]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitTripleConstraint(ctx: TripleConstraintContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitTripleExprLabel(ctx: TripleExprLabelContext): Builder[ShapeLabel]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitTripleExpression(ctx: TripleExpressionContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitUnaryTripleExpr(ctx: UnaryTripleExprContext): Builder[TripleExpr]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitValueSet(ctx: ValueSetContext): Builder[List[ValueSetValue]]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitValueSetValue(ctx: ValueSetValueContext): Builder[ValueSetValue]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor
override def visitXsFacet(ctx: XsFacetContext): Builder[XsFacet]
Definition Classes
ShExDocBaseVisitor -> ShExDocVisitor

Inherited methods

def visit(x$0: ParseTree): Any
Inherited from
AbstractParseTreeVisitor
def visitAdd(x$0: AddContext): Any
Inherited from
ShExDocBaseVisitor
def visitChildren(x$0: RuleNode): Any
Inherited from
AbstractParseTreeVisitor
def visitDiv(x$0: DivContext): Any
Inherited from
ShExDocBaseVisitor
def visitEquals(x$0: EqualsContext): Any
Inherited from
ShExDocBaseVisitor
def visitErrorNode(x$0: ErrorNode): Any
Inherited from
AbstractParseTreeVisitor
def visitExactRange(x$0: ExactRangeContext): Any
Inherited from
ShExDocBaseVisitor
def visitGe(x$0: GeContext): Any
Inherited from
ShExDocBaseVisitor
def visitGt(x$0: GtContext): Any
Inherited from
ShExDocBaseVisitor
def visitInlineShapeAtomAny(x$0: InlineShapeAtomAnyContext): Any
Inherited from
ShExDocBaseVisitor
def visitInlineShapeAtomLitNodeConstraint(x$0: InlineShapeAtomLitNodeConstraintContext): Any
Inherited from
ShExDocBaseVisitor
def visitInlineShapeAtomNonLitNodeConstraint(x$0: InlineShapeAtomNonLitNodeConstraintContext): Any
Inherited from
ShExDocBaseVisitor
def visitInlineShapeAtomShapeExpression(x$0: InlineShapeAtomShapeExpressionContext): Any
Inherited from
ShExDocBaseVisitor
def visitInlineShapeAtomShapeOrRef(x$0: InlineShapeAtomShapeOrRefContext): Any
Inherited from
ShExDocBaseVisitor
def visitLanguageRangeAt(x$0: LanguageRangeAtContext): Any
Inherited from
ShExDocBaseVisitor
def visitLanguageRangeFull(x$0: LanguageRangeFullContext): Any
Inherited from
ShExDocBaseVisitor
def visitLe(x$0: LeContext): Any
Inherited from
ShExDocBaseVisitor
def visitLitNodeConstraintLiteral(x$0: LitNodeConstraintLiteralContext): Any
Inherited from
ShExDocBaseVisitor
def visitLitNodeConstraintStringFacet(x$0: LitNodeConstraintStringFacetContext): Any
Inherited from
ShExDocBaseVisitor
def visitLt(x$0: LtContext): Any
Inherited from
ShExDocBaseVisitor
def visitMinMaxRange(x$0: MinMaxRangeContext): Any
Inherited from
ShExDocBaseVisitor
def visitMinus(x$0: MinusContext): Any
Inherited from
ShExDocBaseVisitor
def visitMult(x$0: MultContext): Any
Inherited from
ShExDocBaseVisitor
def visitNegation(x$0: NegationContext): Any
Inherited from
ShExDocBaseVisitor
def visitNodeConstraintDatatype(x$0: NodeConstraintDatatypeContext): Any
Inherited from
ShExDocBaseVisitor
def visitNodeConstraintNumericFacet(x$0: NodeConstraintNumericFacetContext): Any
Inherited from
ShExDocBaseVisitor
def visitNodeConstraintValueSet(x$0: NodeConstraintValueSetContext): Any
Inherited from
ShExDocBaseVisitor
def visitNotEquals(x$0: NotEqualsContext): Any
Inherited from
ShExDocBaseVisitor
def visitOptionalCardinality(x$0: OptionalCardinalityContext): Any
Inherited from
ShExDocBaseVisitor
def visitPlusCardinality(x$0: PlusCardinalityContext): Any
Inherited from
ShExDocBaseVisitor
def visitRdfType(x$0: RdfTypeContext): Any
Inherited from
ShExDocBaseVisitor
def visitShapeAtomAny(x$0: ShapeAtomAnyContext): Any
Inherited from
ShExDocBaseVisitor
def visitShapeAtomLitNodeConstraint(x$0: ShapeAtomLitNodeConstraintContext): Any
Inherited from
ShExDocBaseVisitor
def visitShapeAtomNonLitNodeConstraint(x$0: ShapeAtomNonLitNodeConstraintContext): Any
Inherited from
ShExDocBaseVisitor
def visitShapeAtomShapeExpression(x$0: ShapeAtomShapeExpressionContext): Any
Inherited from
ShExDocBaseVisitor
def visitShapeAtomShapeOrRef(x$0: ShapeAtomShapeOrRefContext): Any
Inherited from
ShExDocBaseVisitor
def visitStarCardinality(x$0: StarCardinalityContext): Any
Inherited from
ShExDocBaseVisitor
def visitTerminal(x$0: TerminalNode): Any
Inherited from
AbstractParseTreeVisitor

Concrete fields

val optional: (Some[Int], Some[IntMax])
val plus: (Some[Int], Some[Star])
val star: (Some[Int], Some[Star])