rdf4h-3.1.0: A library for RDF processing in Haskell

Safe HaskellNone
LanguageHaskell98

Data.RDF.Graph.TList

Description

TriplesGraph contains a list-backed graph implementation suitable for smallish graphs or for temporary graphs that will not be queried. It maintains the triples in the order that they are given in, and is especially useful for holding N-Triples, where it is often desirable to preserve the order of the triples when they were originally parsed. Duplicate triples are not filtered. If you might have duplicate triples, use MGraph instead, which is also more efficient. However, the query functions of this graph (select, query) remove duplicates from their result triples (but triplesOf does not) since it is usually cheap to do so.

Synopsis

Documentation

data TList Source #

A simple implementation of the RDF type class that represents the graph internally as a list of triples.

Note that this type of RDF is fine for interactive experimentation and querying of smallish (<10,000 triples) graphs, but there are better options for larger graphs or graphs that you will do many queries against (e.g., MGraph is faster for queries).

The time complexity of the functions (where n == num_triples) are:

Instances
Generic TList Source # 
Instance details

Defined in Data.RDF.Graph.TList

Associated Types

type Rep TList :: * -> * #

Methods

from :: TList -> Rep TList x #

to :: Rep TList x -> TList #

Binary TList Source # 
Instance details

Defined in Data.RDF.Graph.TList

Methods

put :: TList -> Put #

get :: Get TList #

putList :: [TList] -> Put #

NFData TList Source # 
Instance details

Defined in Data.RDF.Graph.TList

Methods

rnf :: TList -> () #

Rdf TList Source # 
Instance details

Defined in Data.RDF.Graph.TList

Generic (RDF TList) Source # 
Instance details

Defined in Data.RDF.Graph.TList

Associated Types

type Rep (RDF TList) :: * -> * #

Methods

from :: RDF TList -> Rep (RDF TList) x #

to :: Rep (RDF TList) x -> RDF TList #

NFData (RDF TList) Source # 
Instance details

Defined in Data.RDF.Graph.TList

Methods

rnf :: RDF TList -> () #

type Rep TList Source # 
Instance details

Defined in Data.RDF.Graph.TList

type Rep TList = D1 (MetaData "TList" "Data.RDF.Graph.TList" "rdf4h-3.1.0-595ICCEmMGNEkovJvesGxY" False) (V1 :: * -> *)
data RDF TList Source # 
Instance details

Defined in Data.RDF.Graph.TList

type Rep (RDF TList) Source # 
Instance details

Defined in Data.RDF.Graph.TList

type Rep (RDF TList) = D1 (MetaData "RDF" "Data.RDF.Graph.TList" "rdf4h-3.1.0-595ICCEmMGNEkovJvesGxY" False) (C1 (MetaCons "TListC" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Triples, Maybe BaseUrl, PrefixMappings))))