Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A SHACL syntax model. See https://www.w3.org/TR/shacl
Synopsis
- data Closed = Closed {}
- _Closed :: Name
- _Closed_isClosed :: FieldName
- _Closed_ignoredProperties :: FieldName
- data CommonConstraint
- = CommonConstraintAnd (Set (Reference Shape))
- | CommonConstraintClosed Closed
- | CommonConstraintClass (Set RdfsClass)
- | CommonConstraintDatatype Iri
- | CommonConstraintDisjoint (Set Property)
- | CommonConstraintEquals (Set Property)
- | CommonConstraintHasValue (Set Node)
- | CommonConstraintIn [Node]
- | CommonConstraintLanguageIn (Set LanguageTag)
- | CommonConstraintNodeKind NodeKind
- | CommonConstraintNode (Set (Reference NodeShape))
- | CommonConstraintNot (Set (Reference Shape))
- | CommonConstraintMaxExclusive Literal
- | CommonConstraintMaxInclusive Literal
- | CommonConstraintMaxLength Integer
- | CommonConstraintMinExclusive Literal
- | CommonConstraintMinInclusive Literal
- | CommonConstraintMinLength Integer
- | CommonConstraintPattern Pattern
- | CommonConstraintProperty (Set (Reference PropertyShape))
- | CommonConstraintOr (Set (Reference Shape))
- | CommonConstraintXone (Set (Reference Shape))
- _CommonConstraint :: Name
- _CommonConstraint_and :: FieldName
- _CommonConstraint_closed :: FieldName
- _CommonConstraint_class :: FieldName
- _CommonConstraint_datatype :: FieldName
- _CommonConstraint_disjoint :: FieldName
- _CommonConstraint_equals :: FieldName
- _CommonConstraint_hasValue :: FieldName
- _CommonConstraint_in :: FieldName
- _CommonConstraint_languageIn :: FieldName
- _CommonConstraint_nodeKind :: FieldName
- _CommonConstraint_node :: FieldName
- _CommonConstraint_not :: FieldName
- _CommonConstraint_maxExclusive :: FieldName
- _CommonConstraint_maxInclusive :: FieldName
- _CommonConstraint_maxLength :: FieldName
- _CommonConstraint_minExclusive :: FieldName
- _CommonConstraint_minInclusive :: FieldName
- _CommonConstraint_minLength :: FieldName
- _CommonConstraint_pattern :: FieldName
- _CommonConstraint_property :: FieldName
- _CommonConstraint_or :: FieldName
- _CommonConstraint_xone :: FieldName
- data CommonProperties = CommonProperties {
- commonPropertiesConstraints :: Set CommonConstraint
- commonPropertiesDeactivated :: Maybe Bool
- commonPropertiesMessage :: LangStrings
- commonPropertiesSeverity :: Severity
- commonPropertiesTargetClass :: Set RdfsClass
- commonPropertiesTargetNode :: Set IriOrLiteral
- commonPropertiesTargetObjectsOf :: Set Property
- commonPropertiesTargetSubjectsOf :: Set Property
- _CommonProperties :: Name
- _CommonProperties_constraints :: FieldName
- _CommonProperties_deactivated :: FieldName
- _CommonProperties_message :: FieldName
- _CommonProperties_severity :: FieldName
- _CommonProperties_targetClass :: FieldName
- _CommonProperties_targetNode :: FieldName
- _CommonProperties_targetObjectsOf :: FieldName
- _CommonProperties_targetSubjectsOf :: FieldName
- data Definition a = Definition {
- definitionIri :: Iri
- definitionTarget :: a
- _Definition :: Name
- _Definition_iri :: FieldName
- _Definition_target :: FieldName
- data NodeKind
- _NodeKind :: Name
- _NodeKind_blankNode :: FieldName
- _NodeKind_iri :: FieldName
- _NodeKind_literal :: FieldName
- _NodeKind_blankNodeOrIri :: FieldName
- _NodeKind_blankNodeOrLiteral :: FieldName
- _NodeKind_iriOrLiteral :: FieldName
- data NodeShape = NodeShape {}
- _NodeShape :: Name
- _NodeShape_common :: FieldName
- data Pattern = Pattern {}
- _Pattern :: Name
- _Pattern_regex :: FieldName
- _Pattern_flags :: FieldName
- data PropertyShape = PropertyShape {}
- _PropertyShape :: Name
- _PropertyShape_common :: FieldName
- _PropertyShape_constraints :: FieldName
- _PropertyShape_defaultValue :: FieldName
- _PropertyShape_description :: FieldName
- _PropertyShape_name :: FieldName
- _PropertyShape_order :: FieldName
- _PropertyShape_path :: FieldName
- data PropertyShapeConstraint
- _PropertyShapeConstraint :: Name
- _PropertyShapeConstraint_lessThan :: FieldName
- _PropertyShapeConstraint_lessThanOrEquals :: FieldName
- _PropertyShapeConstraint_maxCount :: FieldName
- _PropertyShapeConstraint_minCount :: FieldName
- _PropertyShapeConstraint_uniqueLang :: FieldName
- _PropertyShapeConstraint_qualifiedValueShape :: FieldName
- data QualifiedValueShape = QualifiedValueShape {}
- _QualifiedValueShape :: Name
- _QualifiedValueShape_qualifiedValueShape :: FieldName
- _QualifiedValueShape_qualifiedMaxCount :: FieldName
- _QualifiedValueShape_qualifiedMinCount :: FieldName
- _QualifiedValueShape_qualifiedValueShapesDisjoint :: FieldName
- data Reference a
- _Reference :: Name
- _Reference_named :: FieldName
- _Reference_anonymous :: FieldName
- _Reference_definition :: FieldName
- data Severity
- _Severity :: Name
- _Severity_info :: FieldName
- _Severity_warning :: FieldName
- _Severity_violation :: FieldName
- data Shape
- _Shape :: Name
- _Shape_node :: FieldName
- _Shape_property :: FieldName
- newtype ShapesGraph = ShapesGraph {
- unShapesGraph :: Set (Definition Shape)
- _ShapesGraph :: Name
Documentation
data CommonConstraint Source #
Any of a number of constraint parameters which can be applied either to node or property shapes
Instances
Read CommonConstraint Source # | |
Defined in Hydra.Ext.Shacl.Model | |
Show CommonConstraint Source # | |
Defined in Hydra.Ext.Shacl.Model showsPrec :: Int -> CommonConstraint -> ShowS # show :: CommonConstraint -> String # showList :: [CommonConstraint] -> ShowS # | |
Eq CommonConstraint Source # | |
Defined in Hydra.Ext.Shacl.Model (==) :: CommonConstraint -> CommonConstraint -> Bool # (/=) :: CommonConstraint -> CommonConstraint -> Bool # | |
Ord CommonConstraint Source # | |
Defined in Hydra.Ext.Shacl.Model compare :: CommonConstraint -> CommonConstraint -> Ordering # (<) :: CommonConstraint -> CommonConstraint -> Bool # (<=) :: CommonConstraint -> CommonConstraint -> Bool # (>) :: CommonConstraint -> CommonConstraint -> Bool # (>=) :: CommonConstraint -> CommonConstraint -> Bool # max :: CommonConstraint -> CommonConstraint -> CommonConstraint # min :: CommonConstraint -> CommonConstraint -> CommonConstraint # |
data CommonProperties Source #
Common constraint parameters and other properties for SHACL shapes
CommonProperties | |
|
Instances
Read CommonProperties Source # | |
Defined in Hydra.Ext.Shacl.Model | |
Show CommonProperties Source # | |
Defined in Hydra.Ext.Shacl.Model showsPrec :: Int -> CommonProperties -> ShowS # show :: CommonProperties -> String # showList :: [CommonProperties] -> ShowS # | |
Eq CommonProperties Source # | |
Defined in Hydra.Ext.Shacl.Model (==) :: CommonProperties -> CommonProperties -> Bool # (/=) :: CommonProperties -> CommonProperties -> Bool # | |
Ord CommonProperties Source # | |
Defined in Hydra.Ext.Shacl.Model compare :: CommonProperties -> CommonProperties -> Ordering # (<) :: CommonProperties -> CommonProperties -> Bool # (<=) :: CommonProperties -> CommonProperties -> Bool # (>) :: CommonProperties -> CommonProperties -> Bool # (>=) :: CommonProperties -> CommonProperties -> Bool # max :: CommonProperties -> CommonProperties -> CommonProperties # min :: CommonProperties -> CommonProperties -> CommonProperties # |
data Definition a Source #
An instance of a type like sh:Shape or sh:NodeShape, together with a unique IRI for that instance
Definition | |
|
Instances
Read a => Read (Definition a) Source # | |
Defined in Hydra.Ext.Shacl.Model readsPrec :: Int -> ReadS (Definition a) # readList :: ReadS [Definition a] # readPrec :: ReadPrec (Definition a) # readListPrec :: ReadPrec [Definition a] # | |
Show a => Show (Definition a) Source # | |
Defined in Hydra.Ext.Shacl.Model showsPrec :: Int -> Definition a -> ShowS # show :: Definition a -> String # showList :: [Definition a] -> ShowS # | |
Eq a => Eq (Definition a) Source # | |
Defined in Hydra.Ext.Shacl.Model (==) :: Definition a -> Definition a -> Bool # (/=) :: Definition a -> Definition a -> Bool # | |
Ord a => Ord (Definition a) Source # | |
Defined in Hydra.Ext.Shacl.Model compare :: Definition a -> Definition a -> Ordering # (<) :: Definition a -> Definition a -> Bool # (<=) :: Definition a -> Definition a -> Bool # (>) :: Definition a -> Definition a -> Bool # (>=) :: Definition a -> Definition a -> Bool # max :: Definition a -> Definition a -> Definition a # min :: Definition a -> Definition a -> Definition a # |
_Definition :: Name Source #
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 |
A SHACL node shape. See https://www.w3.org/TR/shacl/#node-shapes
_NodeShape :: Name Source #
A SHACL pattern. See https://www.w3.org/TR/shacl/#PatternConstraintComponent
data PropertyShape Source #
A SHACL property shape. See https://www.w3.org/TR/shacl/#property-shapes
PropertyShape | |
|
Instances
Read PropertyShape Source # | |
Defined in Hydra.Ext.Shacl.Model readsPrec :: Int -> ReadS PropertyShape # readList :: ReadS [PropertyShape] # | |
Show PropertyShape Source # | |
Defined in Hydra.Ext.Shacl.Model showsPrec :: Int -> PropertyShape -> ShowS # show :: PropertyShape -> String # showList :: [PropertyShape] -> ShowS # | |
Eq PropertyShape Source # | |
Defined in Hydra.Ext.Shacl.Model (==) :: PropertyShape -> PropertyShape -> Bool # (/=) :: PropertyShape -> PropertyShape -> Bool # | |
Ord PropertyShape Source # | |
Defined in Hydra.Ext.Shacl.Model compare :: PropertyShape -> PropertyShape -> Ordering # (<) :: PropertyShape -> PropertyShape -> Bool # (<=) :: PropertyShape -> PropertyShape -> Bool # (>) :: PropertyShape -> PropertyShape -> Bool # (>=) :: PropertyShape -> PropertyShape -> Bool # max :: PropertyShape -> PropertyShape -> PropertyShape # min :: PropertyShape -> PropertyShape -> PropertyShape # |
data PropertyShapeConstraint Source #
A number of constraint parameters which are specific to property shapes, and cannot be applied to node shapes
PropertyShapeConstraintLessThan (Set Property) | See https://www.w3.org/TR/shacl/#LessThanConstraintComponent |
PropertyShapeConstraintLessThanOrEquals (Set Property) | See https://www.w3.org/TR/shacl/#LessThanOrEqualsConstraintComponent |
PropertyShapeConstraintMaxCount Integer | The maximum cardinality. Node shapes cannot have any value for sh:maxCount. See https://www.w3.org/TR/shacl/#MaxCountConstraintComponent |
PropertyShapeConstraintMinCount Integer | The minimum cardinality. Node shapes cannot have any value for sh:minCount. See https://www.w3.org/TR/shacl/#MinCountConstraintComponent |
PropertyShapeConstraintUniqueLang Bool | See https://www.w3.org/TR/shacl/#UniqueLangConstraintComponent |
PropertyShapeConstraintQualifiedValueShape QualifiedValueShape | See https://www.w3.org/TR/shacl/#QualifiedValueShapeConstraintComponent |
Instances
data QualifiedValueShape Source #
Instances
Read QualifiedValueShape Source # | |
Defined in Hydra.Ext.Shacl.Model | |
Show QualifiedValueShape Source # | |
Defined in Hydra.Ext.Shacl.Model showsPrec :: Int -> QualifiedValueShape -> ShowS # show :: QualifiedValueShape -> String # showList :: [QualifiedValueShape] -> ShowS # | |
Eq QualifiedValueShape Source # | |
Defined in Hydra.Ext.Shacl.Model (==) :: QualifiedValueShape -> QualifiedValueShape -> Bool # (/=) :: QualifiedValueShape -> QualifiedValueShape -> Bool # | |
Ord QualifiedValueShape Source # | |
Defined in Hydra.Ext.Shacl.Model compare :: QualifiedValueShape -> QualifiedValueShape -> Ordering # (<) :: QualifiedValueShape -> QualifiedValueShape -> Bool # (<=) :: QualifiedValueShape -> QualifiedValueShape -> Bool # (>) :: QualifiedValueShape -> QualifiedValueShape -> Bool # (>=) :: QualifiedValueShape -> QualifiedValueShape -> Bool # max :: QualifiedValueShape -> QualifiedValueShape -> QualifiedValueShape # min :: QualifiedValueShape -> QualifiedValueShape -> QualifiedValueShape # |
Either an instance of a type like sh:Shape or sh:NodeShape, or an IRI which refers to an instance of that type
ReferenceNamed Iri | |
ReferenceAnonymous a | An anonymous instance |
ReferenceDefinition (Definition a) | An inline definition |
Instances
Read a => Read (Reference a) Source # | |
Show a => Show (Reference a) Source # | |
Eq a => Eq (Reference a) Source # | |
Ord a => Ord (Reference a) Source # | |
Defined in Hydra.Ext.Shacl.Model |
_Reference :: Name Source #
SeverityInfo | A non-critical constraint violation indicating an informative message |
SeverityWarning | A non-critical constraint violation indicating a warning |
SeverityViolation | A constraint violation |
A SHACL node or property shape. See https://www.w3.org/TR/shacl/#shapes
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
ShapesGraph | |
|
Instances
Read ShapesGraph Source # | |
Defined in Hydra.Ext.Shacl.Model readsPrec :: Int -> ReadS ShapesGraph # readList :: ReadS [ShapesGraph] # readPrec :: ReadPrec ShapesGraph # readListPrec :: ReadPrec [ShapesGraph] # | |
Show ShapesGraph Source # | |
Defined in Hydra.Ext.Shacl.Model showsPrec :: Int -> ShapesGraph -> ShowS # show :: ShapesGraph -> String # showList :: [ShapesGraph] -> ShowS # | |
Eq ShapesGraph Source # | |
Defined in Hydra.Ext.Shacl.Model (==) :: ShapesGraph -> ShapesGraph -> Bool # (/=) :: ShapesGraph -> ShapesGraph -> Bool # | |
Ord ShapesGraph Source # | |
Defined in Hydra.Ext.Shacl.Model compare :: ShapesGraph -> ShapesGraph -> Ordering # (<) :: ShapesGraph -> ShapesGraph -> Bool # (<=) :: ShapesGraph -> ShapesGraph -> Bool # (>) :: ShapesGraph -> ShapesGraph -> Bool # (>=) :: ShapesGraph -> ShapesGraph -> Bool # max :: ShapesGraph -> ShapesGraph -> ShapesGraph # min :: ShapesGraph -> ShapesGraph -> ShapesGraph # |
_ShapesGraph :: Name Source #