hydra-0.1.0: Type-aware transformations for data and functional programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydra.Ext.Shacl.Model

Description

A SHACL syntax model. See https://www.w3.org/TR/shacl

Synopsis

Documentation

data CommonConstraint Source #

Any of a number of constraint parameters which can be applied either to node or property shapes

Constructors

CommonConstraintAnd (Set (Reference Shape))

See https://www.w3.org/TR/shacl/#AndConstraintComponent

CommonConstraintClosed Closed

See https://www.w3.org/TR/shacl/#ClosedConstraintComponent

CommonConstraintClass (Set RdfsClass)

See https://www.w3.org/TR/shacl/#ClassConstraintComponent

CommonConstraintDatatype Iri

See https://www.w3.org/TR/shacl/#DatatypeConstraintComponent

CommonConstraintDisjoint (Set Property)

See https://www.w3.org/TR/shacl/#DisjointConstraintComponent

CommonConstraintEquals (Set Property)

See https://www.w3.org/TR/shacl/#EqualsConstraintComponent

CommonConstraintHasValue (Set Node)

Specifies the condition that at least one value node is equal to the given RDF term. See https://www.w3.org/TR/shacl/#HasValueConstraintComponent

CommonConstraintIn [Node]

Specifies the condition that each value node is a member of a provided SHACL list. See https://www.w3.org/TR/shacl/#InConstraintComponent

CommonConstraintLanguageIn (Set LanguageTag)

See https://www.w3.org/TR/shacl/#LanguageInConstraintComponent

CommonConstraintNodeKind NodeKind

See https://www.w3.org/TR/shacl/#NodeKindConstraintComponent

CommonConstraintNode (Set (Reference NodeShape))

See https://www.w3.org/TR/shacl/#NodeConstraintComponent

CommonConstraintNot (Set (Reference Shape))

See https://www.w3.org/TR/shacl/#NotConstraintComponent

CommonConstraintMaxExclusive Literal

See https://www.w3.org/TR/shacl/#MaxExclusiveConstraintComponent

CommonConstraintMaxInclusive Literal

See https://www.w3.org/TR/shacl/#MaxInclusiveConstraintComponent

CommonConstraintMaxLength Integer

See https://www.w3.org/TR/shacl/#MaxLengthConstraintComponent

CommonConstraintMinExclusive Literal

See https://www.w3.org/TR/shacl/#MinExclusiveConstraintComponent

CommonConstraintMinInclusive Literal

See https://www.w3.org/TR/shacl/#MinInclusiveConstraintComponent

CommonConstraintMinLength Integer

See https://www.w3.org/TR/shacl/#MinLengthConstraintComponent

CommonConstraintPattern Pattern

See https://www.w3.org/TR/shacl/#PatternConstraintComponent

CommonConstraintProperty (Set (Reference PropertyShape))

See https://www.w3.org/TR/shacl/#PropertyConstraintComponent

CommonConstraintOr (Set (Reference Shape))

See https://www.w3.org/TR/shacl/#OrConstraintComponent

CommonConstraintXone (Set (Reference Shape))

See https://www.w3.org/TR/shacl/#XoneConstraintComponent

data CommonProperties Source #

Common constraint parameters and other properties for SHACL shapes

data Definition a Source #

An instance of a type like sh:Shape or sh:NodeShape, together with a unique IRI for that instance

Constructors

Definition 

Instances

Instances details
Read a => Read (Definition a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Show a => Show (Definition a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Eq a => Eq (Definition a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Methods

(==) :: Definition a -> Definition a -> Bool #

(/=) :: Definition a -> Definition a -> Bool #

Ord a => Ord (Definition a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

data NodeKind Source #

Constructors

NodeKindBlankNode

A blank node

NodeKindIri

An IRI

NodeKindLiteral

A literal

NodeKindBlankNodeOrIri

A blank node or an IRI

NodeKindBlankNodeOrLiteral

A blank node or a literal

NodeKindIriOrLiteral

An IRI or a literal

data Pattern Source #

Constructors

Pattern 

Instances

Instances details
Read Pattern Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Show Pattern Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Eq Pattern Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Methods

(==) :: Pattern -> Pattern -> Bool #

(/=) :: Pattern -> Pattern -> Bool #

Ord Pattern Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

data PropertyShape Source #

data PropertyShapeConstraint Source #

A number of constraint parameters which are specific to property shapes, and cannot be applied to node shapes

data QualifiedValueShape Source #

data Reference a Source #

Either an instance of a type like sh:Shape or sh:NodeShape, or an IRI which refers to an instance of that type

Constructors

ReferenceNamed Iri 
ReferenceAnonymous a

An anonymous instance

ReferenceDefinition (Definition a)

An inline definition

Instances

Instances details
Read a => Read (Reference a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Show a => Show (Reference a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Eq a => Eq (Reference a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Methods

(==) :: Reference a -> Reference a -> Bool #

(/=) :: Reference a -> Reference a -> Bool #

Ord a => Ord (Reference a) Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

data Severity Source #

Constructors

SeverityInfo

A non-critical constraint violation indicating an informative message

SeverityWarning

A non-critical constraint violation indicating a warning

SeverityViolation

A constraint violation

data Shape Source #

A SHACL node or property shape. See https://www.w3.org/TR/shacl/#shapes

Instances

Instances details
Read Shape Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Show Shape Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Methods

showsPrec :: Int -> Shape -> ShowS #

show :: Shape -> String #

showList :: [Shape] -> ShowS #

Eq Shape Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Methods

(==) :: Shape -> Shape -> Bool #

(/=) :: Shape -> Shape -> Bool #

Ord Shape Source # 
Instance details

Defined in Hydra.Ext.Shacl.Model

Methods

compare :: Shape -> Shape -> Ordering #

(<) :: Shape -> Shape -> Bool #

(<=) :: Shape -> Shape -> Bool #

(>) :: Shape -> Shape -> Bool #

(>=) :: Shape -> Shape -> Bool #

max :: Shape -> Shape -> Shape #

min :: Shape -> Shape -> Shape #

newtype ShapesGraph Source #

An RDF graph containing zero or more shapes that is passed into a SHACL validation process so that a data graph can be validated against the shapes

Constructors

ShapesGraph 

Fields

  • unShapesGraph :: Set (Definition Shape)

    An RDF graph containing zero or more shapes that is passed into a SHACL validation process so that a data graph can be validated against the shapes