Skip to main content

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

  • 0 on success
  • 1 on parse errors
  • 2 on I/O errors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdf12_ntriples_parser-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdf12_ntriples_parser-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for rdf12_ntriples_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b7b320b17b4a6d80c65af9fc15877a7c3b28a93ce4d5530694420ce6c46865fb
MD5 0c00d78f05ab0be12f45df94e81b9a1e
BLAKE2b-256 31aacdac1a7e82936c47da2a39964f4496d01ba5b5061ded62bcf487073905ac

See more details on using hashes here.

File details

Details for the file rdf12_ntriples_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rdf12_ntriples_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 277448a1baead208439f3358b59cc98a046e706fe054195f6e752ca92e5f68e0
MD5 a17da41f47d67e7c2a029ac49b2031c0
BLAKE2b-256 cd9fc24425bcc60be80602b766e0af2463090678e9213dfa6a2ca330a5c5a453

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page