Skip to content
New issue

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

Invalid blank node creation when using BNode or bnode #106

Open
koslambrou opened this issue Jan 5, 2021 · 1 comment
Open

Invalid blank node creation when using BNode or bnode #106

koslambrou opened this issue Jan 5, 2021 · 1 comment

Comments

@koslambrou
Copy link
Contributor

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") (unode "http://example.com/relatedTo") (bnode "test2")
  let triples = [t1, t2]
  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 rdftest.ttl file content:

<http://example.com/Person123> <http://example.com/relatedTo> test, test2 .

Expected rdftest.ttl file content:

<http://example.com/Person123> <http://example.com/relatedTo> _:test, _:test2 .
@koslambrou
Copy link
Contributor Author

Similar issue: #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant