Skip to content

Implement N-Triples Parsing and Serialization #3

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

Closed
bivens-dev opened this issue Mar 13, 2025 · 0 comments · Fixed by #34
Closed

Implement N-Triples Parsing and Serialization #3

bivens-dev opened this issue Mar 13, 2025 · 0 comments · Fixed by #34
Labels
enhancement New feature or request

Comments

@bivens-dev
Copy link
Owner

Description

This issue tracks the implementation of N-Triples parsing and serialization capabilities within the rdf_dart package. N-Triples is a simple, line-based format for encoding RDF graphs, and its implementation will enable the rdf_dart package to interoperate with other RDF tools and systems that support this format.

Goal

The goal of this issue is to implement:

  • An N-Triples parser that can read a stream of N-Triples and produce a corresponding set of Triple objects.
  • An N-Triples serializer that can write a collection of Triple objects to a stream in N-Triples format.

Implementation Notes

  • Refer to the N-Triples specification (https://www.w3.org/TR/n-triples/) for the exact syntax rules.
  • Leverage the dart:convert package for encoding and decoding interfaces.
  • Use the existing IRI class for representing IRIs.
  • Consider using a dedicated exception class for N-Triples parsing errors (e.g., NTriplesParseException).
  • Use the W3C N-Triples Test Cases to validate the implementation.
@bivens-dev bivens-dev added the enhancement New feature or request label Mar 13, 2025
@bivens-dev bivens-dev linked a pull request Apr 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant