N3 Format
Read Notation3 (N3) RDF as subject/predicate/object triples (via rdflib).
Overview
| Property | Value |
|---|---|
| Format id | n3 |
| Class | N3Iterable |
| Extensions | .n3 |
| Read | Yes |
| Write | No |
| Extra | rdf (rdflib) |
| Maturity | stable |
Record shape
{"subject": "...", "predicate": "...", "object": "..."}
Usage
from iterable import open_iterable
with open_iterable("graph.n3") as source:
for triple in source:
print(triple["subject"], triple["predicate"], triple["object"])
Install with pip install iterabledata[rdf].
See also
- Turtle — Turtle RDF
- TriG — named-graph quads
- TriX — TriX XML triples
- Supported formats