rdf4h-0.9.1: A library for RDF processing in Haskell

Safe HaskellSafe-Infered

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 ByteString

DocUrl: The request URL for the RDF if available

-> ByteString

The contents to parse

-> Either ParseFailure rdf

The RDF representation of the triples or ParseFailure

Parse a xml ByteString 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