/usr/share/doc/libghc-swish-doc/html/Swish-RDF-Parser-Turtle.html is in libghc-swish-doc 0.9.1.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Swish.RDF.Parser.Turtle</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Swish-RDF-Parser-Turtle.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Swish-RDF-Parser-Turtle.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">swish-0.9.1.10: A semantic web toolkit.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) 2003 Graham Klyne 2009 Vasili I Galchin 2011 2012 2013 2014 Douglas Burke</td></tr><tr><th>License</th><td>GPL V2</td></tr><tr><th>Maintainer</th><td>Douglas Burke</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>OverloadedStrings</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Swish.RDF.Parser.Turtle</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This Module implements a Turtle parser, returning a
new <code><a href="Swish-RDF-Graph.html#t:RDFGraph">RDFGraph</a></code> consisting of triples and namespace information parsed from
the supplied input string, or an error indication.</p><p>REFERENCES:</p><ul><li>"Turtle, Terse RDF Triple Language",
W3C Candidate Recommendation 19 February 2013 (<<a href="http://www.w3.org/TR/2013/CR-turtle-20130219/L)">http://www.w3.org/TR/2013/CR-turtle-20130219/L)</a>,
<a href="http://www.w3.org/TR/turtle/">http://www.w3.org/TR/turtle/</a></li></ul><p>NOTES:</p><ul><li>Prior to version <code>0.9.0.4</code>, the parser followed the
W3C Working Draft 09 August 2011 (<a href="http://www.w3.org/TR/2011/WD-turtle-20110809/">http://www.w3.org/TR/2011/WD-turtle-20110809/</a>)</li><li>Strings with no language tag are converted to a <code>LitTag</code> not a
<code>TypedLitTag</code> with a type of <code>xsd:string</code> (e.g. see
<a href="http://www.w3.org/TR/2011/WD-turtle-20110809/#terms">http://www.w3.org/TR/2011/WD-turtle-20110809/#terms</a>).</li><li>If the URI is actually an IRI (Internationalized Resource Identifiers)
then the parser will fail since <code><a href="file:///usr/share/doc/libghc-network-uri-doc/html/Network-URI.html#v:parseURI">parseURI</a></code> fails.</li><li>The current (August 2013) Turtle test suite from
<a href="http://www.w3.org/2013/TurtleTests/">http://www.w3.org/2013/TurtleTests/</a> passes except for the four
tests with non-ASCII local names, namely:
<code>localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries</code>,
<code>localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries</code>,
<code>localName_with_nfc_PN_CHARS_BASE_character_boundaries</code>,
and
<code>localName_with_non_leading_extras</code>.</li></ul></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">type</span> <a href="#t:ParseResult">ParseResult</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Swish-RDF-Graph.html#t:RDFGraph">RDFGraph</a></li><li class="src short"><a href="#v:parseTurtle">parseTurtle</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/libghc-network-uri-doc/html/Network-URI.html#t:URI">URI</a> -> <a href="Swish-RDF-Parser-Turtle.html#t:ParseResult">ParseResult</a></li><li class="src short"><a href="#v:parseTurtlefromText">parseTurtlefromText</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> -> <a href="Swish-RDF-Parser-Turtle.html#t:ParseResult">ParseResult</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ParseResult" class="def">ParseResult</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Swish-RDF-Graph.html#t:RDFGraph">RDFGraph</a> <a href="src/Swish-RDF-Parser-Utils.html#ParseResult" class="link">Source</a> <a href="#t:ParseResult" class="selflink">#</a></p><div class="doc"><p>The result of a parse, which is either an error message or a graph.</p></div></div><div class="top"><p class="src"><a id="v:parseTurtle" class="def">parseTurtle</a> <a href="src/Swish-RDF-Parser-Turtle.html#parseTurtle" class="link">Source</a> <a href="#v:parseTurtle" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></td><td class="doc"><p>input in N3 format.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/libghc-network-uri-doc/html/Network-URI.html#t:URI">URI</a></td><td class="doc"><p>optional base URI</p></td></tr><tr><td class="src">-> <a href="Swish-RDF-Parser-Turtle.html#t:ParseResult">ParseResult</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Parse a string with an optional base URI.</p><p>Unlike <code>parseN3</code> we treat the base URI as a URI and not
a QName.</p></div></div><div class="top"><p class="src"><a id="v:parseTurtlefromText" class="def">parseTurtlefromText</a> <a href="src/Swish-RDF-Parser-Turtle.html#parseTurtlefromText" class="link">Source</a> <a href="#v:parseTurtlefromText" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></td><td class="doc"><p>input in N3 format.</p></td></tr><tr><td class="src">-> <a href="Swish-RDF-Parser-Turtle.html#t:ParseResult">ParseResult</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Parse as Turtle (with no real base URI).</p><p>See <code><a href="Swish-RDF-Parser-Turtle.html#v:parseTurtle">parseTurtle</a></code> if you need to provide a base URI.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|