rdf4h-5.1.0: A library for RDF processing in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.RDF.IRI

Description

An implementation of the RFC3987 [RFC3987]: http://www.ietf.org/rfc/rfc3987.txt

Synopsis

Documentation

newtype IRI Source #

A serialized IRI representation.

Constructors

IRI 

Fields

Instances

Instances details
Show IRI Source # 
Instance details

Defined in Data.RDF.IRI

Methods

showsPrec :: Int -> IRI -> ShowS #

show :: IRI -> String #

showList :: [IRI] -> ShowS #

Eq IRI Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(==) :: IRI -> IRI -> Bool #

(/=) :: IRI -> IRI -> Bool #

data IRIRef Source #

A detailed IRI representation with its components.

Instances

Instances details
Show IRIRef Source # 
Instance details

Defined in Data.RDF.IRI

Eq IRIRef Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(==) :: IRIRef -> IRIRef -> Bool #

(/=) :: IRIRef -> IRIRef -> Bool #

Ord IRIRef Source # 
Instance details

Defined in Data.RDF.IRI

newtype Scheme Source #

Constructors

Scheme Text 

Instances

Instances details
Show Scheme Source # 
Instance details

Defined in Data.RDF.IRI

Eq Scheme Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(==) :: Scheme -> Scheme -> Bool #

(/=) :: Scheme -> Scheme -> Bool #

Ord Scheme Source # 
Instance details

Defined in Data.RDF.IRI

data Authority Source #

Constructors

Authority !(Maybe UserInfo) !Host !(Maybe Port) 

Instances

Instances details
Show Authority Source # 
Instance details

Defined in Data.RDF.IRI

Eq Authority Source # 
Instance details

Defined in Data.RDF.IRI

Ord Authority Source # 
Instance details

Defined in Data.RDF.IRI

newtype UserInfo Source #

Constructors

UserInfo Text 

Instances

Instances details
Show UserInfo Source # 
Instance details

Defined in Data.RDF.IRI

Eq UserInfo Source # 
Instance details

Defined in Data.RDF.IRI

Ord UserInfo Source # 
Instance details

Defined in Data.RDF.IRI

newtype Host Source #

Constructors

Host Text 

Instances

Instances details
Show Host Source # 
Instance details

Defined in Data.RDF.IRI

Methods

showsPrec :: Int -> Host -> ShowS #

show :: Host -> String #

showList :: [Host] -> ShowS #

Eq Host Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(==) :: Host -> Host -> Bool #

(/=) :: Host -> Host -> Bool #

Ord Host Source # 
Instance details

Defined in Data.RDF.IRI

Methods

compare :: Host -> Host -> Ordering #

(<) :: Host -> Host -> Bool #

(<=) :: Host -> Host -> Bool #

(>) :: Host -> Host -> Bool #

(>=) :: Host -> Host -> Bool #

max :: Host -> Host -> Host #

min :: Host -> Host -> Host #

newtype Port Source #

Constructors

Port Int 

Instances

Instances details
Show Port Source # 
Instance details

Defined in Data.RDF.IRI

Methods

showsPrec :: Int -> Port -> ShowS #

show :: Port -> String #

showList :: [Port] -> ShowS #

Eq Port Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(==) :: Port -> Port -> Bool #

(/=) :: Port -> Port -> Bool #

Ord Port Source # 
Instance details

Defined in Data.RDF.IRI

Methods

compare :: Port -> Port -> Ordering #

(<) :: Port -> Port -> Bool #

(<=) :: Port -> Port -> Bool #

(>) :: Port -> Port -> Bool #

(>=) :: Port -> Port -> Bool #

max :: Port -> Port -> Port #

min :: Port -> Port -> Port #

newtype Path Source #

Constructors

Path Text 

Instances

Instances details
Monoid Path Source # 
Instance details

Defined in Data.RDF.IRI

Methods

mempty :: Path #

mappend :: Path -> Path -> Path #

mconcat :: [Path] -> Path #

Semigroup Path Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(<>) :: Path -> Path -> Path #

sconcat :: NonEmpty Path -> Path #

stimes :: Integral b => b -> Path -> Path #

Show Path Source # 
Instance details

Defined in Data.RDF.IRI

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path Source # 
Instance details

Defined in Data.RDF.IRI

Methods

(==) :: Path -> Path -> Bool #

(/=) :: Path -> Path -> Bool #

Ord Path Source # 
Instance details

Defined in Data.RDF.IRI

Methods

compare :: Path -> Path -> Ordering #

(<) :: Path -> Path -> Bool #

(<=) :: Path -> Path -> Bool #

(>) :: Path -> Path -> Bool #

(>=) :: Path -> Path -> Bool #

max :: Path -> Path -> Path #

min :: Path -> Path -> Path #

newtype IRIQuery Source #

Constructors

IRIQuery Text 

Instances

Instances details
Monoid IRIQuery Source # 
Instance details

Defined in Data.RDF.IRI

Semigroup IRIQuery Source # 
Instance details

Defined in Data.RDF.IRI

Show IRIQuery Source # 
Instance details

Defined in Data.RDF.IRI

Eq IRIQuery Source # 
Instance details

Defined in Data.RDF.IRI

Ord IRIQuery Source # 
Instance details

Defined in Data.RDF.IRI

newtype Fragment Source #

Constructors

Fragment Text 

Instances

Instances details
Monoid Fragment Source # 
Instance details

Defined in Data.RDF.IRI

Semigroup Fragment Source # 
Instance details

Defined in Data.RDF.IRI

Show Fragment Source # 
Instance details

Defined in Data.RDF.IRI

Eq Fragment Source # 
Instance details

Defined in Data.RDF.IRI

Ord Fragment Source # 
Instance details

Defined in Data.RDF.IRI

data IRIError Source #

Constructors

InvalidIRI 

Instances

Instances details
Show IRIError Source # 
Instance details

Defined in Data.RDF.IRI

Eq IRIError Source # 
Instance details

Defined in Data.RDF.IRI

data SchemaError Source #

Constructors

NonAlphaLeading

Scheme must start with an alphabet character

InvalidChars

Subsequent characters in the schema were invalid

MissingColon

Schemas must be followed by a colon

Instances

Instances details
Show SchemaError Source # 
Instance details

Defined in Data.RDF.IRI

Eq SchemaError Source # 
Instance details

Defined in Data.RDF.IRI

resolveIRI Source #

Arguments

:: Text

Base URI

-> Text

URI to resolve

-> Either String Text 

IRI parsing and resolution according to algorithm 5.2 from RFC3986 See: http://www.ietf.org/rfc/rfc3986.txt [FIXME] Currently, this is a correct but naive implementation.