Copyright | (c) Felix Gabriel Mance Francisc-Nicolae Bungiu |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Synopsis
- type RDFPrefixMap = Map String IRI
- data TurtleDocument = TurtleDocument {
- documentName :: IRI
- prefixMap :: RDFPrefixMap
- statements :: [Statement]
- emptyTurtleDocument :: TurtleDocument
- data Statement
- data Prefix = PrefixR String IRI
- data Base = Base IRI
- data Triples = Triples Subject [PredicateObjectList]
- data Subject
- data Predicate = Predicate IRI
- data Object
- data PredicateObjectList = PredicateObjectList Predicate [Object]
- data RDFLiteral
- data Term
- = SubjectTerm IRI
- | PredicateTerm IRI
- | ObjectTerm (Either IRI RDFLiteral)
- data Axiom = Axiom Term Term Term
- data RDFEntityType
- data RDFEntity = RDFEntity RDFEntityType Term
- rdfEntityTypes :: [RDFEntityType]
- extractTripleStatements :: [Statement] -> [Triples]
- triplesOfDocument :: TurtleDocument -> [Triples]
- rdfFirst :: IRI
- rdfRest :: IRI
- rdfNil :: IRI
- isAbsoluteIRI :: IRI -> Bool
RDF Turtle Document
type RDFPrefixMap = Map String IRI Source #
data TurtleDocument Source #
Instances
Instances
Eq Statement Source # | |
Data Statement Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Statement -> c Statement gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Statement toConstr :: Statement -> Constr dataTypeOf :: Statement -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Statement) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Statement) gmapT :: (forall b. Data b => b -> b) -> Statement -> Statement gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Statement -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Statement -> r gmapQ :: (forall d. Data d => d -> u) -> Statement -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Statement -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Statement -> m Statement gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Statement -> m Statement gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Statement -> m Statement | |
Ord Statement Source # | |
Show Statement Source # | |
Generic Statement | |
FromJSON Statement | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Statement parseJSONList :: Value -> Parser [Statement] | |
ToJSON Statement | |
Defined in RDF.ATC_RDF toEncoding :: Statement -> Encoding toJSONList :: [Statement] -> Value toEncodingList :: [Statement] -> Encoding | |
ShATermConvertible Statement | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Statement -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Statement] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Statement) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Statement]) | |
Pretty Statement Source # | |
type Rep Statement | |
Defined in RDF.ATC_RDF type Rep Statement = D1 ('MetaData "Statement" "RDF.AS" "main" 'False) (C1 ('MetaCons "Statement" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Triples)) :+: (C1 ('MetaCons "PrefixStatement" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Prefix)) :+: C1 ('MetaCons "BaseStatement" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Base)))) |
Instances
Eq Prefix Source # | |
Data Prefix Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Prefix -> c Prefix gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Prefix dataTypeOf :: Prefix -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Prefix) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Prefix) gmapT :: (forall b. Data b => b -> b) -> Prefix -> Prefix gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Prefix -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Prefix -> r gmapQ :: (forall d. Data d => d -> u) -> Prefix -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Prefix -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Prefix -> m Prefix gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Prefix -> m Prefix gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Prefix -> m Prefix | |
Ord Prefix Source # | |
Show Prefix Source # | |
Generic Prefix | |
FromJSON Prefix | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Prefix parseJSONList :: Value -> Parser [Prefix] | |
ToJSON Prefix | |
Defined in RDF.ATC_RDF toEncoding :: Prefix -> Encoding toJSONList :: [Prefix] -> Value toEncodingList :: [Prefix] -> Encoding | |
ShATermConvertible Prefix | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Prefix -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Prefix] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Prefix) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Prefix]) | |
type Rep Prefix | |
Defined in RDF.ATC_RDF type Rep Prefix = D1 ('MetaData "Prefix" "RDF.AS" "main" 'False) (C1 ('MetaCons "PrefixR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRI))) |
Instances
Eq Base Source # | |
Data Base Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Base -> c Base gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Base dataTypeOf :: Base -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Base) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Base) gmapT :: (forall b. Data b => b -> b) -> Base -> Base gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Base -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Base -> r gmapQ :: (forall d. Data d => d -> u) -> Base -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Base -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Base -> m Base gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Base -> m Base gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Base -> m Base | |
Ord Base Source # | |
Show Base Source # | |
Generic Base | |
FromJSON Base | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Base parseJSONList :: Value -> Parser [Base] | |
ToJSON Base | |
Defined in RDF.ATC_RDF | |
ShATermConvertible Base | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Base -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Base] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Base) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Base]) | |
type Rep Base | |
Defined in RDF.ATC_RDF |
Instances
Eq Triples Source # | |
Data Triples Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Triples -> c Triples gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Triples dataTypeOf :: Triples -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Triples) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Triples) gmapT :: (forall b. Data b => b -> b) -> Triples -> Triples gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Triples -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Triples -> r gmapQ :: (forall d. Data d => d -> u) -> Triples -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Triples -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Triples -> m Triples gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Triples -> m Triples gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Triples -> m Triples | |
Ord Triples Source # | |
Show Triples Source # | |
Generic Triples | |
FromJSON Triples | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Triples parseJSONList :: Value -> Parser [Triples] | |
ToJSON Triples | |
Defined in RDF.ATC_RDF toEncoding :: Triples -> Encoding toJSONList :: [Triples] -> Value toEncodingList :: [Triples] -> Encoding | |
ShATermConvertible Triples | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Triples -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Triples] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Triples) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Triples]) | |
Pretty Triples Source # | |
type Rep Triples | |
Defined in RDF.ATC_RDF type Rep Triples = D1 ('MetaData "Triples" "RDF.AS" "main" 'False) (C1 ('MetaCons "Triples" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Subject) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PredicateObjectList]))) |
Instances
Eq Subject Source # | |
Data Subject Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Subject -> c Subject gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Subject dataTypeOf :: Subject -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Subject) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Subject) gmapT :: (forall b. Data b => b -> b) -> Subject -> Subject gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Subject -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Subject -> r gmapQ :: (forall d. Data d => d -> u) -> Subject -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Subject -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Subject -> m Subject gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Subject -> m Subject gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Subject -> m Subject | |
Ord Subject Source # | |
Show Subject Source # | |
Generic Subject | |
FromJSON Subject | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Subject parseJSONList :: Value -> Parser [Subject] | |
ToJSON Subject | |
Defined in RDF.ATC_RDF toEncoding :: Subject -> Encoding toJSONList :: [Subject] -> Value toEncodingList :: [Subject] -> Encoding | |
ShATermConvertible Subject | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Subject -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Subject] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Subject) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Subject]) | |
Pretty Subject Source # | |
type Rep Subject | |
Defined in RDF.ATC_RDF type Rep Subject = D1 ('MetaData "Subject" "RDF.AS" "main" 'False) (C1 ('MetaCons "Subject" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRI)) :+: (C1 ('MetaCons "SubjectList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PredicateObjectList])) :+: C1 ('MetaCons "SubjectCollection" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Object])))) |
Instances
Eq Predicate Source # | |
Data Predicate Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Predicate -> c Predicate gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Predicate toConstr :: Predicate -> Constr dataTypeOf :: Predicate -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Predicate) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Predicate) gmapT :: (forall b. Data b => b -> b) -> Predicate -> Predicate gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Predicate -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Predicate -> r gmapQ :: (forall d. Data d => d -> u) -> Predicate -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Predicate -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Predicate -> m Predicate gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Predicate -> m Predicate gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Predicate -> m Predicate | |
Ord Predicate Source # | |
Show Predicate Source # | |
Generic Predicate | |
FromJSON Predicate | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Predicate parseJSONList :: Value -> Parser [Predicate] | |
ToJSON Predicate | |
Defined in RDF.ATC_RDF toEncoding :: Predicate -> Encoding toJSONList :: [Predicate] -> Value toEncodingList :: [Predicate] -> Encoding | |
ShATermConvertible Predicate | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Predicate -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Predicate] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Predicate) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Predicate]) | |
Pretty Predicate Source # | |
type Rep Predicate | |
Defined in RDF.ATC_RDF |
Instances
Eq Object Source # | |
Data Object Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Object -> c Object gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Object dataTypeOf :: Object -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Object) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Object) gmapT :: (forall b. Data b => b -> b) -> Object -> Object gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Object -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Object -> r gmapQ :: (forall d. Data d => d -> u) -> Object -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Object -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Object -> m Object gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Object -> m Object gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Object -> m Object | |
Ord Object Source # | |
Show Object Source # | |
Generic Object | |
FromJSON Object | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Object parseJSONList :: Value -> Parser [Object] | |
ToJSON Object | |
Defined in RDF.ATC_RDF toEncoding :: Object -> Encoding toJSONList :: [Object] -> Value toEncodingList :: [Object] -> Encoding | |
ShATermConvertible Object | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Object -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Object] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Object) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Object]) | |
Pretty Object Source # | |
type Rep Object | |
Defined in RDF.ATC_RDF type Rep Object = D1 ('MetaData "Object" "RDF.AS" "main" 'False) (C1 ('MetaCons "Object" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Subject)) :+: C1 ('MetaCons "ObjectLiteral" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RDFLiteral))) |
data PredicateObjectList Source #
Instances
Eq PredicateObjectList Source # | |
Defined in RDF.AS (==) :: PredicateObjectList -> PredicateObjectList -> Bool (/=) :: PredicateObjectList -> PredicateObjectList -> Bool | |
Data PredicateObjectList Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PredicateObjectList -> c PredicateObjectList gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PredicateObjectList toConstr :: PredicateObjectList -> Constr dataTypeOf :: PredicateObjectList -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PredicateObjectList) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PredicateObjectList) gmapT :: (forall b. Data b => b -> b) -> PredicateObjectList -> PredicateObjectList gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PredicateObjectList -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PredicateObjectList -> r gmapQ :: (forall d. Data d => d -> u) -> PredicateObjectList -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> PredicateObjectList -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> PredicateObjectList -> m PredicateObjectList gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PredicateObjectList -> m PredicateObjectList gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PredicateObjectList -> m PredicateObjectList | |
Ord PredicateObjectList Source # | |
Defined in RDF.AS compare :: PredicateObjectList -> PredicateObjectList -> Ordering (<) :: PredicateObjectList -> PredicateObjectList -> Bool (<=) :: PredicateObjectList -> PredicateObjectList -> Bool (>) :: PredicateObjectList -> PredicateObjectList -> Bool (>=) :: PredicateObjectList -> PredicateObjectList -> Bool max :: PredicateObjectList -> PredicateObjectList -> PredicateObjectList min :: PredicateObjectList -> PredicateObjectList -> PredicateObjectList | |
Show PredicateObjectList Source # | |
Defined in RDF.AS showsPrec :: Int -> PredicateObjectList -> ShowS show :: PredicateObjectList -> String showList :: [PredicateObjectList] -> ShowS | |
Generic PredicateObjectList | |
Defined in RDF.ATC_RDF type Rep PredicateObjectList :: Type -> Type from :: PredicateObjectList -> Rep PredicateObjectList x to :: Rep PredicateObjectList x -> PredicateObjectList | |
FromJSON PredicateObjectList | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser PredicateObjectList parseJSONList :: Value -> Parser [PredicateObjectList] | |
ToJSON PredicateObjectList | |
Defined in RDF.ATC_RDF toJSON :: PredicateObjectList -> Value toEncoding :: PredicateObjectList -> Encoding toJSONList :: [PredicateObjectList] -> Value toEncodingList :: [PredicateObjectList] -> Encoding | |
ShATermConvertible PredicateObjectList | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> PredicateObjectList -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [PredicateObjectList] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, PredicateObjectList) fromShATermList' :: Int -> ATermTable -> (ATermTable, [PredicateObjectList]) | |
Pretty PredicateObjectList Source # | |
type Rep PredicateObjectList | |
Defined in RDF.ATC_RDF type Rep PredicateObjectList = D1 ('MetaData "PredicateObjectList" "RDF.AS" "main" 'False) (C1 ('MetaCons "PredicateObjectList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Predicate) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Object]))) |
data RDFLiteral Source #
Instances
Eq RDFLiteral Source # | |
Defined in RDF.AS (==) :: RDFLiteral -> RDFLiteral -> Bool (/=) :: RDFLiteral -> RDFLiteral -> Bool | |
Data RDFLiteral Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RDFLiteral -> c RDFLiteral gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RDFLiteral toConstr :: RDFLiteral -> Constr dataTypeOf :: RDFLiteral -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RDFLiteral) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RDFLiteral) gmapT :: (forall b. Data b => b -> b) -> RDFLiteral -> RDFLiteral gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RDFLiteral -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RDFLiteral -> r gmapQ :: (forall d. Data d => d -> u) -> RDFLiteral -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RDFLiteral -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RDFLiteral -> m RDFLiteral gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RDFLiteral -> m RDFLiteral gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RDFLiteral -> m RDFLiteral | |
Ord RDFLiteral Source # | |
Defined in RDF.AS compare :: RDFLiteral -> RDFLiteral -> Ordering (<) :: RDFLiteral -> RDFLiteral -> Bool (<=) :: RDFLiteral -> RDFLiteral -> Bool (>) :: RDFLiteral -> RDFLiteral -> Bool (>=) :: RDFLiteral -> RDFLiteral -> Bool max :: RDFLiteral -> RDFLiteral -> RDFLiteral min :: RDFLiteral -> RDFLiteral -> RDFLiteral | |
Show RDFLiteral Source # | |
Defined in RDF.AS showsPrec :: Int -> RDFLiteral -> ShowS show :: RDFLiteral -> String showList :: [RDFLiteral] -> ShowS | |
Generic RDFLiteral | |
Defined in RDF.ATC_RDF type Rep RDFLiteral :: Type -> Type from :: RDFLiteral -> Rep RDFLiteral x to :: Rep RDFLiteral x -> RDFLiteral | |
FromJSON RDFLiteral | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser RDFLiteral parseJSONList :: Value -> Parser [RDFLiteral] | |
ToJSON RDFLiteral | |
Defined in RDF.ATC_RDF toJSON :: RDFLiteral -> Value toEncoding :: RDFLiteral -> Encoding toJSONList :: [RDFLiteral] -> Value toEncodingList :: [RDFLiteral] -> Encoding | |
ShATermConvertible RDFLiteral | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> RDFLiteral -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [RDFLiteral] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, RDFLiteral) fromShATermList' :: Int -> ATermTable -> (ATermTable, [RDFLiteral]) | |
Pretty RDFLiteral Source # | |
type Rep RDFLiteral | |
Defined in RDF.ATC_RDF type Rep RDFLiteral = D1 ('MetaData "RDFLiteral" "RDF.AS" "main" 'False) (C1 ('MetaCons "RDFLiteral" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LexicalForm) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypedOrUntyped))) :+: C1 ('MetaCons "RDFNumberLit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FloatLit))) |
Datatypes for Hets manipulation
SubjectTerm IRI | |
PredicateTerm IRI | |
ObjectTerm (Either IRI RDFLiteral) |
Instances
Eq Term Source # | |
Data Term Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Term -> c Term gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Term dataTypeOf :: Term -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Term) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Term) gmapT :: (forall b. Data b => b -> b) -> Term -> Term gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Term -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Term -> r gmapQ :: (forall d. Data d => d -> u) -> Term -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Term -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Term -> m Term gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Term -> m Term gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Term -> m Term | |
Ord Term Source # | |
Show Term Source # | |
Generic Term | |
FromJSON Term | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser Term parseJSONList :: Value -> Parser [Term] | |
ToJSON Term | |
Defined in RDF.ATC_RDF | |
ShATermConvertible Term | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> Term -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Term] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Term) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Term]) | |
Pretty Term Source # | |
type Rep Term | |
Defined in RDF.ATC_RDF type Rep Term = D1 ('MetaData "Term" "RDF.AS" "main" 'False) (C1 ('MetaCons "SubjectTerm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRI)) :+: (C1 ('MetaCons "PredicateTerm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRI)) :+: C1 ('MetaCons "ObjectTerm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Either IRI RDFLiteral))))) |
Instances
data RDFEntityType Source #
Instances
Bounded RDFEntityType Source # | |
Defined in RDF.AS | |
Enum RDFEntityType Source # | |
Defined in RDF.AS succ :: RDFEntityType -> RDFEntityType pred :: RDFEntityType -> RDFEntityType toEnum :: Int -> RDFEntityType fromEnum :: RDFEntityType -> Int enumFrom :: RDFEntityType -> [RDFEntityType] enumFromThen :: RDFEntityType -> RDFEntityType -> [RDFEntityType] enumFromTo :: RDFEntityType -> RDFEntityType -> [RDFEntityType] enumFromThenTo :: RDFEntityType -> RDFEntityType -> RDFEntityType -> [RDFEntityType] | |
Eq RDFEntityType Source # | |
Defined in RDF.AS (==) :: RDFEntityType -> RDFEntityType -> Bool (/=) :: RDFEntityType -> RDFEntityType -> Bool | |
Data RDFEntityType Source # | |
Defined in RDF.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RDFEntityType -> c RDFEntityType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RDFEntityType toConstr :: RDFEntityType -> Constr dataTypeOf :: RDFEntityType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RDFEntityType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RDFEntityType) gmapT :: (forall b. Data b => b -> b) -> RDFEntityType -> RDFEntityType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RDFEntityType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RDFEntityType -> r gmapQ :: (forall d. Data d => d -> u) -> RDFEntityType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RDFEntityType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RDFEntityType -> m RDFEntityType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RDFEntityType -> m RDFEntityType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RDFEntityType -> m RDFEntityType | |
Ord RDFEntityType Source # | |
Defined in RDF.AS compare :: RDFEntityType -> RDFEntityType -> Ordering (<) :: RDFEntityType -> RDFEntityType -> Bool (<=) :: RDFEntityType -> RDFEntityType -> Bool (>) :: RDFEntityType -> RDFEntityType -> Bool (>=) :: RDFEntityType -> RDFEntityType -> Bool max :: RDFEntityType -> RDFEntityType -> RDFEntityType min :: RDFEntityType -> RDFEntityType -> RDFEntityType | |
Show RDFEntityType Source # | |
Defined in RDF.AS showsPrec :: Int -> RDFEntityType -> ShowS show :: RDFEntityType -> String showList :: [RDFEntityType] -> ShowS | |
Generic RDFEntityType | |
Defined in RDF.ATC_RDF type Rep RDFEntityType :: Type -> Type from :: RDFEntityType -> Rep RDFEntityType x to :: Rep RDFEntityType x -> RDFEntityType | |
FromJSON RDFEntityType | |
Defined in RDF.ATC_RDF parseJSON :: Value -> Parser RDFEntityType parseJSONList :: Value -> Parser [RDFEntityType] | |
ToJSON RDFEntityType | |
Defined in RDF.ATC_RDF toJSON :: RDFEntityType -> Value toEncoding :: RDFEntityType -> Encoding toJSONList :: [RDFEntityType] -> Value toEncodingList :: [RDFEntityType] -> Encoding | |
ShATermConvertible RDFEntityType | |
Defined in RDF.ATC_RDF toShATermAux :: ATermTable -> RDFEntityType -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [RDFEntityType] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, RDFEntityType) fromShATermList' :: Int -> ATermTable -> (ATermTable, [RDFEntityType]) | |
Pretty RDFEntityType Source # | Symbols printing |
type Rep RDFEntityType | |
Defined in RDF.ATC_RDF type Rep RDFEntityType = D1 ('MetaData "RDFEntityType" "RDF.AS" "main" 'False) (C1 ('MetaCons "SubjectEntity" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PredicateEntity" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ObjectEntity" 'PrefixI 'False) (U1 :: Type -> Type))) |
entities used for morphisms
Instances
extractTripleStatements :: [Statement] -> [Triples] Source #
useful functions
triplesOfDocument :: TurtleDocument -> [Triples] Source #
isAbsoluteIRI :: IRI -> Bool Source #