rdf4h
rdf4h copied to clipboard
rdf4h is a library for working with RDF in Haskell
Is there any thought to implement the RDF canonicalization algorithm, as specified at https://w3c.github.io/rdf-canon/spec/ For my application I want to parse a json-ld file and find its canonical form, so...
Question here. In the `rdf4h` tutorial, adding triples to the graph is done the following way: ``` main :: IO () main = do -- empty list based RDF graph...
I see that there are two constructors for blank nodes: `BNode` and `BNodeGen`. When I use `BNode` (or `bnode`) and then serialize to Turtle, the blank nodes come through with...
Invalid blank node creation when using `BNode` constructor or `bnode` function. Sample code: ``` let t1 = Triple (unode "http://example.com/Person123") (unode "http://example.com/relatedTo") (BNode "test") let t2 = Triple (unode "http://example.com/Person123")...
Problem: Invalid Turtle RDF when writing to file. Sample code: ``` {-# LANGUAGE OverloadedStrings #-} module Main where import Data.RDF import Text.RDF.RDF4H.TurtleParser import Text.RDF.RDF4H.TurtleSerializer import System.Exit import qualified Data.Map as...
Problem: Cannot parse RDF file which contains absolute or relative URIs (ex. `/void/Dataset`) without specifying a base URI. It works when I use `mkRdf`, but not when I use `parseFile`....
@robstewart57 This work is intended to use QuickCheck to ensure that subject grouping is happening correctly in the Turtle serialization as was discussed in #99. I've run into an issue...
Say I create a RDF graph. I'm trying to save the graph in a file and I want to set the baseUrl and prefix mappings. However, the following won't set...
``` query_match_spo: FAIL *** Failed! Falsified (after 24 tests): Triple (UNode "ex:o1") (UNode "http://www.example.org/quz2") (LNode (PlainLL "haskell" "fr")) Triple (UNode "ex:o2") (UNode "ex:s2") (UNode "ex:p2") Triple (UNode "ex:p2") (UNode "ex:s2")...
``` query_match_spo: FAIL *** Failed! Falsifiable (after 29 tests): Triple (UNode "ex:o1") (UNode "ex:o1") (LNode (PlainLL "earth" "fr")) Triple (UNode "ex:o1") (UNode "http://www.example.org/foo1") (LNode (TypedL "earth" "http://www.w3.org/2001/XMLSchema#string")) Triple (UNode "ex:p1")...