Metadata-Version: 2.4
Name: rdf12-ntriples-parser
Version: 0.1.0
Summary: RDF 1.2 N-Triples parser with SPARQL 1.2 CSV/TSV output
Author-email: Dominik Tomaszuk <ddooss@wp.pl>
License: MIT License
        
        Copyright (c) 2026 Dominik Tomaszuk
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/domel/rdf12-ntriples-parser
Project-URL: Repository, https://github.com/domel/rdf12-ntriples-parser
Project-URL: Issues, https://github.com/domel/rdf12-ntriples-parser/issues
Keywords: rdf,n-triples,sparql,parser
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# RDF 1.2 N-Triples Parser (CSV/TSV)

This project provides a CLI parser for RDF 1.2 N-Triples that outputs SPARQL 1.2 Query Results in CSV or TSV format.

## Requirements
- Python 3.10+

## Usage
Parse a `.nt` file and write CSV to stdout:

```bash
python3 nt_parser.py input.nt
```

Write TSV to stdout:

```bash
python3 nt_parser.py -f tsv input.nt
```

Write CSV to a file:

```bash
python3 nt_parser.py -o out.csv input.nt
```

## Installation (PyPI)
After publishing, install via:

```bash
pip install rdf12-ntriples-parser
```

Run the CLI:

```bash
nt-parser input.nt
```

## Output
The output is a SPARQL 1.2 Results table with columns `?s`, `?p`, `?o`.

## Exit Codes
- `0` on success
- `1` on parse errors
- `2` on I/O errors
