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 :: Name
- _Description_graph :: Name
- newtype Graph = Graph {}
- _Graph :: Name
- newtype Iri = Iri {}
- _Iri :: Name
- data IriOrLiteral
- _IriOrLiteral :: Name
- _IriOrLiteral_iri :: Name
- _IriOrLiteral_literal :: Name
- newtype LangStrings = LangStrings {}
- _LangStrings :: Name
- newtype LanguageTag = LanguageTag {}
- _LanguageTag :: Name
- data Literal = Literal {}
- _Literal :: Name
- _Literal_lexicalForm :: Name
- _Literal_datatypeIri :: Name
- _Literal_languageTag :: Name
- data Node
- _Node :: Name
- _Node_iri :: Name
- _Node_bnode :: Name
- _Node_literal :: Name
- data Property = Property {}
- _Property :: Name
- _Property_domain :: Name
- _Property_range :: Name
- _Property_subPropertyOf :: Name
- data Quad = Quad {
- quadSubject :: Resource
- quadPredicate :: Iri
- quadObject :: Node
- quadGraph :: Maybe Iri
- _Quad :: Name
- _Quad_subject :: Name
- _Quad_predicate :: Name
- _Quad_object :: Name
- _Quad_graph :: Name
- data Resource
- _Resource :: Name
- _Resource_iri :: Name
- _Resource_bnode :: Name
- data Triple = Triple {}
- _Triple :: Name
- _Triple_subject :: Name
- _Triple_predicate :: Name
- _Triple_object :: Name
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.Langs.Rdf.Syntax readsPrec :: Int -> ReadS Description # readList :: ReadS [Description] # readPrec :: ReadPrec Description # readListPrec :: ReadPrec [Description] # | |
Show Description Source # | |
Defined in Hydra.Langs.Rdf.Syntax showsPrec :: Int -> Description -> ShowS # show :: Description -> String # showList :: [Description] -> ShowS # | |
Eq Description Source # | |
Defined in Hydra.Langs.Rdf.Syntax (==) :: Description -> Description -> Bool # (/=) :: Description -> Description -> Bool # | |
Ord Description Source # | |
Defined in Hydra.Langs.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.Langs.Rdf.Syntax readsPrec :: Int -> ReadS IriOrLiteral # readList :: ReadS [IriOrLiteral] # | |
Show IriOrLiteral Source # | |
Defined in Hydra.Langs.Rdf.Syntax showsPrec :: Int -> IriOrLiteral -> ShowS # show :: IriOrLiteral -> String # showList :: [IriOrLiteral] -> ShowS # | |
Eq IriOrLiteral Source # | |
Defined in Hydra.Langs.Rdf.Syntax (==) :: IriOrLiteral -> IriOrLiteral -> Bool # (/=) :: IriOrLiteral -> IriOrLiteral -> Bool # | |
Ord IriOrLiteral Source # | |
Defined in Hydra.Langs.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
Instances
Read LangStrings Source # | |
Defined in Hydra.Langs.Rdf.Syntax readsPrec :: Int -> ReadS LangStrings # readList :: ReadS [LangStrings] # readPrec :: ReadPrec LangStrings # readListPrec :: ReadPrec [LangStrings] # | |
Show LangStrings Source # | |
Defined in Hydra.Langs.Rdf.Syntax showsPrec :: Int -> LangStrings -> ShowS # show :: LangStrings -> String # showList :: [LangStrings] -> ShowS # | |
Eq LangStrings Source # | |
Defined in Hydra.Langs.Rdf.Syntax (==) :: LangStrings -> LangStrings -> Bool # (/=) :: LangStrings -> LangStrings -> Bool # | |
Ord LangStrings Source # | |
Defined in Hydra.Langs.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
Instances
Read LanguageTag Source # | |
Defined in Hydra.Langs.Rdf.Syntax readsPrec :: Int -> ReadS LanguageTag # readList :: ReadS [LanguageTag] # readPrec :: ReadPrec LanguageTag # readListPrec :: ReadPrec [LanguageTag] # | |
Show LanguageTag Source # | |
Defined in Hydra.Langs.Rdf.Syntax showsPrec :: Int -> LanguageTag -> ShowS # show :: LanguageTag -> String # showList :: [LanguageTag] -> ShowS # | |
Eq LanguageTag Source # | |
Defined in Hydra.Langs.Rdf.Syntax (==) :: LanguageTag -> LanguageTag -> Bool # (/=) :: LanguageTag -> LanguageTag -> Bool # | |
Ord LanguageTag Source # | |
Defined in Hydra.Langs.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 | |
|
_Node_bnode :: Name Source #
_Node_literal :: Name Source #
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 | |
|
_Quad_subject :: Name Source #
_Quad_object :: Name Source #
_Quad_graph :: Name Source #
_Resource_iri :: Name Source #