shapepath
shapepath
es.weso.shapepath
AnyKindTest
Axis
Axis
Child
ContextType
ContextType
Descendant
EachOfType
EqName
Err
ExprIndex
ExprIndex
ExprStep
IRIItem
IRIType
IntShapeIndex
IntTripleExprIndex
KindTest
LabelTripleExprIndex
NameTest
NestedShapeExpr
NestedTripleExpr
NodeConstraintType
NodeTest
NodeTestStep
OneOfType
Predicate
ProcessingError
RegExpTest
ShapeAndType
ShapeExprIndex
ShapeExprItem
ShapeExprType
ShapeLabelIndex
ShapeNode
ShapeNode
ShapeNodeType
ShapeNotType
ShapeOrType
ShapePath
ShapePath
ShapeType
Step
Step
TripleConstraintType
TripleExprIndex
TripleExprItem
TripleExprType
UnmatchItemContextLabel
Value
Value
Warning
WildcardTest
es.weso.shapepath.compact
Parser
BuilderState
ParserErrorListener
ShapePathMaker
es.weso.shapepath.schemamappings
ConversionError
ErrorEvaluatingSource
ParseError
ParserErrorListener
SchemaMapping
SchemaMapping
SchemaMappings
SchemaMappings
SchemaMappingsMaker
SchemaMappingsParser
BuilderState
shapepath
/
es.weso.shapepath.schemamappings
/
SchemaMappingsParser
SchemaMappingsParser
object
SchemaMappingsParser
Graph
Supertypes
Self type
class
Object
trait
Matchable
class
Any
SchemaMappingsParser
Type members
Value members
Type members
Classlikes
case
class
BuilderState
(prefixMap:
PrefixMap
, base:
Option
[
IRI
], start:
Option
[
ShapeExpr
], shapesMap:
ShapesMap
, tripleExprMap:
TripleExprMap
)
Types
type
Builder
[A] =
EitherT
[
S
,
String
,
A
]
type
S
[A] =
State
[
BuilderState
,
A
]
type
ShapesMap
=
ListMap
[
ShapeLabel
,
ShapeExpr
]
type
Start
=
Option
[
ShapeExpr
]
type
TripleExprMap
=
Map
[
ShapeLabel
,
TripleExpr
]
Value members
Concrete methods
def
addBase
(base:
IRI
):
Builder
[
Unit
]
def
addPrefix
(prefix:
Prefix
, iri:
IRI
):
Builder
[
Unit
]
def
addShape
(label:
ShapeLabel
, expr:
ShapeExpr
):
Builder
[
Unit
]
def
addTripleExprLabel
(label:
ShapeLabel
, te:
TripleExpr
):
Builder
[
TripleExpr
]
def
err
[A](msg:
String
):
Builder
[A]
def
fromEither
[A](e:
Either
[
String
, A]):
Builder
[A]
def
getBase
:
Builder
[
Option
[
IRI
]]
def
getPrefixMap
:
Builder
[
PrefixMap
]
def
getShapesMap
:
Builder
[
ShapesMap
]
def
getStart
:
Builder
[
Start
]
def
getState
:
Builder
[
BuilderState
]
def
getTripleExprMap
:
Builder
[
TripleExprMap
]
def
initialState
(base:
Option
[
IRI
]):
BuilderState
def
ok
[A](x: A):
Builder
[A]
def
parseReader
(reader:
Reader
, base:
Option
[
IRI
]):
Either
[
String
,
SchemaMappings
]
def
parseSchemaMappings
(str:
String
, base:
Option
[
IRI
]):
Either
[
String
,
SchemaMappings
]
def
run
[A](c:
Builder
[A], base:
Option
[
IRI
]): (
BuilderState
,
Either
[
String
, A])
def
sequence
[A](bs:
List
[
Builder
[A]]):
Builder
[
List
[A]]
def
updateStart
(s:
Start
):
Builder
[
Unit
]
def
updateState
(fn:
BuilderState
=>
BuilderState
):
Builder
[
Unit
]