RDF 1.2 N-Triples parser with SPARQL 1.2 CSV/TSV output
Project description
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:
python3 nt_parser.py input.nt
Write TSV to stdout:
python3 nt_parser.py -f tsv input.nt
Write CSV to a file:
python3 nt_parser.py -o out.csv input.nt
Installation (PyPI)
After publishing, install via:
pip install rdf12-ntriples-parser
Run the CLI:
nt-parser input.nt
Output
The output is a SPARQL 1.2 Results table with columns ?s, ?p, ?o.
Exit Codes
0on success1on parse errors2on I/O errors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rdf12_ntriples_parser-0.1.0.tar.gz.
File metadata
- Download URL: rdf12_ntriples_parser-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7b320b17b4a6d80c65af9fc15877a7c3b28a93ce4d5530694420ce6c46865fb
|
|
| MD5 |
0c00d78f05ab0be12f45df94e81b9a1e
|
|
| BLAKE2b-256 |
31aacdac1a7e82936c47da2a39964f4496d01ba5b5061ded62bcf487073905ac
|
File details
Details for the file rdf12_ntriples_parser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rdf12_ntriples_parser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
277448a1baead208439f3358b59cc98a046e706fe054195f6e752ca92e5f68e0
|
|
| MD5 |
a17da41f47d67e7c2a029ac49b2031c0
|
|
| BLAKE2b-256 |
cd9fc24425bcc60be80602b766e0af2463090678e9213dfa6a2ca330a5c5a453
|