issue documentation not kept up to date

Issue #25 resolved
Former user created an issue

I suspect the ducumentation is kept up to date with changes.

https://hackage.haskell.org/package/swish-0.9.1.1/docs/Swish-RDF-Query.html

The following example doesn't work:

:m + Swish.RDF Swish.RDF.Parser.N3 Swish.RDF.Query :set -XOverloadedStrings let qparse = either error id . parseN3fromText let igr = qparse "@prefix a: http://example.com/. a:a a a:A ; a:foo a:bar. a:b a a:B ; a:foo a:bar." let qgr = qparse "?node a ?type." rdfQueryFind qgr igr [[(?type,a:B),(?node,a:b)],[(?type,a:A),(?node,a:a)]] let bn = (toRDFLabel . Data.Maybe.fromJust . Network.URI.parseURI) "http://example.com/B" rdfFindArcs (rdfObjEq bn) igr [(a:b,rdf:type,a:B)] Data.Maybe.mapMaybe (flip Swish.RDF.VarBinding.vbMap (Var "type")) $ rdfQueryFind qgr igr [a:B,a:A]

-- -- ERROR -- Prelude Swish.RDF Swish.RDF.Parser.N3 Swish.RDF.Query> let bn = (toRDFLabel . Data.Maybe.fromJust . Network.URI.parseURI) "http://example.com/B"

<interactive>:8:46: Not in scope: ‘Network.URI.parseURI’ Prelude Swish.RDF Swish.RDF.Parser.N3 Swish.RDF.Query> rdfFindArcs (rdfObjEq bn) igr

<interactive>:9:24: Not in scope: ‘bn’ Prelude Swish.RDF Swish.RDF.Parser.N3 Swish.RDF.Query> Data.Maybe.mapMaybe (flip Swish.RDF.VarBinding.vbMap (Var "type")) $ rdfQueryFind qgr igr

<interactive>:10:27: Not in scope: ‘Swish.RDF.VarBinding.vbMap’ Prelude Swish.RDF Swish.RDF.Parser.N3 Swish.RDF.Query>

Comments (2)

  1. Log in to comment