We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 Map import qualified Data.Text as Text import System.IO main = do writeRdfToFileTest writeRdfToFileTest = do let t1 = Triple (unode "/void/Dataset") (unode "http://www.w3.org/1999/02/22-rdf-syntax-ns#type") (unode "http://rdfs.org/ns/void#DatasetDescription") let triples = [t1] let graph = mkRdf triples Nothing (PrefixMappings Map.empty) :: RDF TList let graphFpath = Text.unpack "rdftest.ttl" withFile graphFpath WriteMode (\h -> hWriteRdf (TurtleSerializer Nothing (prefixMappings graph)) h graph)
Actual file content:
/void/Dataset <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/ns/void#DatasetDescription> .
This is invalid Turtle syntax.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem: Invalid Turtle RDF when writing to file.
Sample code:
Actual file content:
This is invalid Turtle syntax.
The text was updated successfully, but these errors were encountered: