Copyright | Travis Whitaker 2016 |
---|---|
License | MIT |
Maintainer | pi.boy.travis@gmail.com |
Stability | Provisional |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides conversion between RDF triples and fgl
graphs. Naturally
these functions will force the entire graph into memory.
Synopsis
- data GNode
- type GEdge = Predicate
- rdfGraph :: DynGraph g => RDFGraph -> (g GNode GEdge, NodeMap GNode)
- triplesGraph :: DynGraph g => [Triple] -> (g GNode GEdge, NodeMap GNode)
- graphRDF :: Graph g => Maybe IRI -> g GNode GEdge -> Either String RDFGraph
- graphTriples :: Graph g => g GNode GEdge -> Either String [Triple]
Documentation
An RDF Subject
or Object
as a Graph
node. This common
representation is necessary because the Object
of one Triple
might be
the Subject
of another.
Instances
Generic GNode Source # | |
Read GNode Source # | |
Show GNode Source # | |
NFData GNode Source # | |
Defined in Data.RDF.Graph | |
Eq GNode Source # | |
Ord GNode Source # | |
type Rep GNode Source # | |
Defined in Data.RDF.Graph type Rep GNode = D1 ('MetaData "GNode" "Data.RDF.Graph" "rdf-0.1.0.7-KwPFeMtuF2mFgprU5G6Koq" 'False) (C1 ('MetaCons "IRIGNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IRI)) :+: (C1 ('MetaCons "BlankGNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlankNode)) :+: C1 ('MetaCons "LiteralGNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Literal)))) |