Skip to main content

N3 Format

Read Notation3 (N3) RDF as subject/predicate/object triples (via rdflib).

Overview

PropertyValue
Format idn3
ClassN3Iterable
Extensions.n3
ReadYes
WriteNo
Extrardf (rdflib)
Maturitystable

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