Shape

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
trait Extend
trait ShapeExpr
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Definition Classes
override def addId(lbl: ShapeLabel): Shape
Definition Classes
override def addSemActs(as: List[SemAct]): ShapeExpr
Definition Classes

Return the all paths that are mentioned in a shape It includes also the paths in extends

Return the all paths that are mentioned in a shape It includes also the paths in extends

Value parameters:
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)

If the shape can be flatten, returns a FlatShape

If the shape can be flatten, returns a FlatShape

override def paths(schema: AbstractSchema): Either[String, Set[Path]]
Definition Classes
override def relativize(base: IRI): Shape
Definition Classes
override def rmId: ShapeExpr
Definition Classes

Inherited methods

Inherited from:
ShapeExpr
def extendCheckingVisited[S, E, Label](s: S, finder: Label => Either[String, S], extend: S => Option[List[Label]], combineExpr: (E, E) => E, expr: S => Option[E]): Either[String, Option[E]]
Inherited from:
Extend

Return the labels that are referenced in a shape expression This method can use useful to detect if a shape doesn't refer to non-existing labels

Return the labels that are referenced in a shape expression This method can use useful to detect if a shape doesn't refer to non-existing labels

Inherited from:
ShapeExpr
Inherited from:
ShapeExpr
Inherited from:
ShapeExpr
Inherited from:
Product
def showId(pm: PrefixMap): String
Inherited from:
ShapeExpr
Inherited from:
ShapeExpr