Skip to main content

TriX Format

Read TriX RDF/XML triples as subject/predicate/object records (via rdflib).

Overview

PropertyValue
Format idtrix
ClassTriXIterable
Extensions.trix
ReadYes
WriteNo
Extrardf (rdflib)
Maturitystable

Record shape

{"subject": "...", "predicate": "...", "object": "..."}

Usage

from iterable import open_iterable

with open_iterable("graph.trix") as source:
for triple in source:
print(triple["subject"], triple["predicate"], triple["object"])

Install with pip install iterabledata[rdf].

See also