| Safe Haskell | Safe-Infered |
|---|
Text.RDF.RDF4H.XmlParser
Description
An parser for the RDF/XML format http://www.w3.org/TR/REC-rdf-syntax/.
- parseXmlRDF :: forall rdf. RDF rdf => Maybe BaseUrl -> Maybe ByteString -> ByteString -> Either ParseFailure rdf
- getRDF :: forall rdf a. (RDF rdf, ArrowXml a, ArrowState GParseState a) => a XmlTree rdf
Documentation
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