Skip to content

Model: New AnnotatedStatement #7

Open
@gflima

Description

An annotated statement is a statement that carries subject and snak plus a set of annotation records.

If we introduce AnnotatedStatement's we could update Store.filter() to return an iterator of such statements (instead of an iterator of pairs). Note that Store.get_annotations() could be kept as is.

One further advantage of AnnotatedStatement is that it eases the serialization of statement objects to RDF (not currently implemented). Without annotated statements, stmt.to_rdf() would need to received extra arguments for the associated annotations.

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions