API stability (0.9+)
From 0.9.0, the public API is frozen for downstream packages (including SparqlModel) until 1.0.0.
0.10.0 engine exception
0.10.0 replaces rdflib with pyoxigraph. These are intentional breaking changes (see MIGRATION_0.10.md):
Breaking |
Detail |
|---|---|
Graph type |
Use |
Plugin hooks |
|
Remote SPARQL graph |
|
|
Use |
Unchanged: symbols in triplemodel.__all__ for mapping (TripleModel, rdf_field, to_graph, from_graph, sync_to_graph, load_models, …) — method names kept; arguments expecting rdflib graphs now expect Store.
0.11.0 rdflib cleanup exception
0.11.0 removes all remaining rdflib integration (see MIGRATION_0.11.md):
Breaking |
Detail |
|---|---|
SHACL |
|
Parse/serialize kwargs |
|
|
|
Low-level parse |
|
0.12.0 additive release
0.12.0 adds mapping helpers only (no migration guide). New symbols in triplemodel.__all__:
API |
Role |
|---|---|
|
One field for several |
|
Per-object XSD datatypes on |
|
OWL/RDFS subclass and inverse hints |
|
Paired-field metadata (SparqlModel parity) |
|
Read-only inverse navigation on a |
Stable surface
Import from the package root:
from triplemodel import TripleModel, Store, model_to_graph, load_models, ...
Symbols in triplemodel.__all__ are semver-stable from 0.9 through 1.x for mapping behavior (patch fixes only).
Semipublic modules
Module |
Use |
|---|---|
|
Literals, predicate resolvers |
|
Advanced graph/dataset/SPARQL helpers |
|
|
|
Bundled namespace objects |
|
|
|
|
|
|
|
|
Integrator tier (SparqlModel / Option A)
API |
Role |
|---|---|
|
Model base and field metadata |
|
Session read/write on |
|
|
|
Subclass registration |
Recommended dependency after 0.10.0:
triplemodel>=0.10,<2
See ECOSYSTEM_SPARQLMODEL.md for SM-7.