rdf4h-1.0.1: A library for RDF processing in Haskell

Safe HaskellNone

Text.RDF.RDF4H.XmlParser

Description

An parser for the RDF/XML format http://www.w3.org/TR/REC-rdf-syntax/.

Synopsis

Documentation

parseXmlRDFSource

Arguments

:: forall rdf . RDF rdf 
=> Maybe BaseUrl

The base URL for the RDF if required

-> Maybe Text

DocUrl: The request URL for the RDF if available

-> Text

The contents to parse

-> Either ParseFailure rdf

The RDF representation of the triples or ParseFailure

Parse a xml T.Text to an RDF representation

getRDF :: forall rdf a. (RDF rdf, ArrowXml a, ArrowState GParseState a) => a XmlTree rdfSource

Arrow that translates HXT XmlTree to an RDF representation