Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
An RDF 1.1 syntax model
Synopsis
- newtype BlankNode = BlankNode {}
- _BlankNode :: Name
- data RdfsClass = RdfsClass {
- _RdfsClass :: Name
- newtype Dataset = Dataset {}
- _Dataset :: Name
- data Description = Description {}
- _Description :: Name
- _Description_subject :: FieldName
- _Description_graph :: FieldName
- newtype Graph = Graph {}
- _Graph :: Name
- newtype Iri = Iri {}
- _Iri :: Name
- data IriOrLiteral
- _IriOrLiteral :: Name
- _IriOrLiteral_iri :: FieldName
- _IriOrLiteral_literal :: FieldName
- newtype LangStrings = LangStrings {}
- _LangStrings :: Name
- newtype LanguageTag = LanguageTag {}
- _LanguageTag :: Name
- data Literal = Literal {}
- _Literal :: Name
- _Literal_lexicalForm :: FieldName
- _Literal_datatypeIri :: FieldName
- _Literal_languageTag :: FieldName
- data Node
- _Node :: Name
- _Node_iri :: FieldName
- _Node_bnode :: FieldName
- _Node_literal :: FieldName
- data Property = Property {}
- _Property :: Name
- _Property_domain :: FieldName
- _Property_range :: FieldName
- _Property_subPropertyOf :: FieldName
- data Quad = Quad {
- quadSubject :: Resource
- quadPredicate :: Iri
- quadObject :: Node
- quadGraph :: Maybe Iri
- _Quad :: Name
- _Quad_subject :: FieldName
- _Quad_predicate :: FieldName
- _Quad_object :: FieldName
- _Quad_graph :: FieldName
- data Resource
- _Resource :: Name
- _Resource_iri :: FieldName
- _Resource_bnode :: FieldName
- data Triple = Triple {}
- _Triple :: Name
- _Triple_subject :: FieldName
- _Triple_predicate :: FieldName
- _Triple_object :: FieldName
Documentation
_BlankNode :: Name Source #
Stand-in for rdfs:Class
_RdfsClass :: Name Source #
data Description Source #
A graph of RDF statements together with a distinguished subject and/or object node
Instances
Read Description Source # | |
Defined in Hydra.Ext.Rdf.Syntax readsPrec :: Int -> ReadS Description # readList :: ReadS [Description] # readPrec :: ReadPrec Description # readListPrec :: ReadPrec [Description] # | |
Show Description Source # | |
Defined in Hydra.Ext.Rdf.Syntax showsPrec :: Int -> Description -> ShowS # show :: Description -> String # showList :: [Description] -> ShowS # | |
Eq Description Source # | |
Defined in Hydra.Ext.Rdf.Syntax (==) :: Description -> Description -> Bool # (/=) :: Description -> Description -> Bool # | |
Ord Description Source # | |
Defined in Hydra.Ext.Rdf.Syntax compare :: Description -> Description -> Ordering # (<) :: Description -> Description -> Bool # (<=) :: Description -> Description -> Bool # (>) :: Description -> Description -> Bool # (>=) :: Description -> Description -> Bool # max :: Description -> Description -> Description # min :: Description -> Description -> Description # |
_Description :: Name Source #
An Internationalized Resource Identifier
data IriOrLiteral Source #
An IRI or a literal; this type is a convenience for downstream models like SHACL which may exclude blank nodes
Instances
Read IriOrLiteral Source # | |
Defined in Hydra.Ext.Rdf.Syntax readsPrec :: Int -> ReadS IriOrLiteral # readList :: ReadS [IriOrLiteral] # | |
Show IriOrLiteral Source # | |
Defined in Hydra.Ext.Rdf.Syntax showsPrec :: Int -> IriOrLiteral -> ShowS # show :: IriOrLiteral -> String # showList :: [IriOrLiteral] -> ShowS # | |
Eq IriOrLiteral Source # | |
Defined in Hydra.Ext.Rdf.Syntax (==) :: IriOrLiteral -> IriOrLiteral -> Bool # (/=) :: IriOrLiteral -> IriOrLiteral -> Bool # | |
Ord IriOrLiteral Source # | |
Defined in Hydra.Ext.Rdf.Syntax compare :: IriOrLiteral -> IriOrLiteral -> Ordering # (<) :: IriOrLiteral -> IriOrLiteral -> Bool # (<=) :: IriOrLiteral -> IriOrLiteral -> Bool # (>) :: IriOrLiteral -> IriOrLiteral -> Bool # (>=) :: IriOrLiteral -> IriOrLiteral -> Bool # max :: IriOrLiteral -> IriOrLiteral -> IriOrLiteral # min :: IriOrLiteral -> IriOrLiteral -> IriOrLiteral # |
_IriOrLiteral :: Name Source #
newtype LangStrings Source #
A convenience type which provides at most one string value per language, and optionally a value without a language
LangStrings | |
|
Instances
Read LangStrings Source # | |
Defined in Hydra.Ext.Rdf.Syntax readsPrec :: Int -> ReadS LangStrings # readList :: ReadS [LangStrings] # readPrec :: ReadPrec LangStrings # readListPrec :: ReadPrec [LangStrings] # | |
Show LangStrings Source # | |
Defined in Hydra.Ext.Rdf.Syntax showsPrec :: Int -> LangStrings -> ShowS # show :: LangStrings -> String # showList :: [LangStrings] -> ShowS # | |
Eq LangStrings Source # | |
Defined in Hydra.Ext.Rdf.Syntax (==) :: LangStrings -> LangStrings -> Bool # (/=) :: LangStrings -> LangStrings -> Bool # | |
Ord LangStrings Source # | |
Defined in Hydra.Ext.Rdf.Syntax compare :: LangStrings -> LangStrings -> Ordering # (<) :: LangStrings -> LangStrings -> Bool # (<=) :: LangStrings -> LangStrings -> Bool # (>) :: LangStrings -> LangStrings -> Bool # (>=) :: LangStrings -> LangStrings -> Bool # max :: LangStrings -> LangStrings -> LangStrings # min :: LangStrings -> LangStrings -> LangStrings # |
_LangStrings :: Name Source #
newtype LanguageTag Source #
A BCP47 language tag
LanguageTag | |
|
Instances
Read LanguageTag Source # | |
Defined in Hydra.Ext.Rdf.Syntax readsPrec :: Int -> ReadS LanguageTag # readList :: ReadS [LanguageTag] # readPrec :: ReadPrec LanguageTag # readListPrec :: ReadPrec [LanguageTag] # | |
Show LanguageTag Source # | |
Defined in Hydra.Ext.Rdf.Syntax showsPrec :: Int -> LanguageTag -> ShowS # show :: LanguageTag -> String # showList :: [LanguageTag] -> ShowS # | |
Eq LanguageTag Source # | |
Defined in Hydra.Ext.Rdf.Syntax (==) :: LanguageTag -> LanguageTag -> Bool # (/=) :: LanguageTag -> LanguageTag -> Bool # | |
Ord LanguageTag Source # | |
Defined in Hydra.Ext.Rdf.Syntax compare :: LanguageTag -> LanguageTag -> Ordering # (<) :: LanguageTag -> LanguageTag -> Bool # (<=) :: LanguageTag -> LanguageTag -> Bool # (>) :: LanguageTag -> LanguageTag -> Bool # (>=) :: LanguageTag -> LanguageTag -> Bool # max :: LanguageTag -> LanguageTag -> LanguageTag # min :: LanguageTag -> LanguageTag -> LanguageTag # |
_LanguageTag :: Name Source #
A value such as a string, number, or date
Literal | |
|
A type representing an RDF property, and encapsulating its domain, range, and subclass relationships
Property | |
|
An RDF triple with an optional named graph component
Quad | |
|