Releases: annotation/stam-rust
Releases · annotation/stam-rust
v0.16.5
- Minor API change in some
to_json_string()
methods (no config parameter needed) - Added
to_json_value()
method alongsideto_json_string()
(returns serde_json::Value) - Fix in JSON serialisation of DataValue:null
- Implemented
to_json_string()
,to_json_value()
andtext()
for QueryResultItem - Minor dependency upgrades
- Added
extra_target_template
parameter inWebAnnoConfig
for web annotation serialisation. This adds an extra target during serialisation of web annotations that resolves the TextPositionSelectors to a single IRI/URI (according to the template).
v0.16.4
Bugfix release and minor API change:
- implemented STAMQL serialisation of collection constraints that were not serialisable before
- DataOperator::Equals now takes Cow<'a, str> instead of &'a str, so it can be owned or borrowed: If in your code you use
DataOperator::Equals("blah")
you will now have to change it toDataOperator::Equals("blah".into())
v0.16.3
v0.16.2
v0.16.1
v0.16.0
- Breaking API changes:
TextResourceBuilder
was simplified, thebuild()
method is no longer publicAnnotationStore.add()
got renamed toAnnotationStore.with_item()
but is a lower-level function that should be used less.- Use the new
AnnotationStore.add_resource()
andAnnotationStore.add_dataset()
instead (or the variantswith_resource()
and
with_dataset()
). @include
behaviour is now more strictly defined (STAM v1.1.1). Relative files are always interpreted relative to the working directory (either an explicitly set working directory in the configuration, or the actual system's cwd) (annotation/stam#31)
- API changes
- Expanded substore API, added
AnnotationStore.annotations_no_substores()
,Annotation.substore()
,TextResource.substores()
,AnnotationDataSets.substores()
- Added
AnnotationDataSetBuilder
, to be used withAnnotationStore.add_dataset()
- query: Added support for substores as contraints (
SUBSTORE
keyword).
- Expanded substore API, added
- Fixes for annotation/stam#31
- Fixed relative path handling (
@include mechanism
) - Deserialisation fixes for
@include
mechanism. - Substores can have multiple parents
- Fixed relative path handling (
v0.15.0
- Query
- Removed QueryNames, no longer needed
- Allow multiple subqueries (annotation/stam#28)
subquery()
is nowsubqueries()
(iterator).
- Implemented support for custom attributes on queries and constraints (used e.g. by stam view in stam-tools)
- Allow DATASET as primary constraint for KEY result type
- Implemented OPTIONAL qualifier for SELECT subqueries
- Added
Query.bind_from_result()
method to bind variables from a previous result
- DataValue/DataOperator: fixes in parsing disjunctions
- DataValue/DataOperator: allow matching some distinct types if the reference is a string
- Implemented substores; allows including other (stand-off) annotation stores as dependencies, keeping STAM JSON serialisations apart (annotation/stam#29)
v0.14.2
v0.14.1
v0.14.0
New features:
- Implemented text validation extension #5
- Support LIMIT keyword in query language (annotation/stam#25)
Fixes:
- Preceeds and Succeeds by default allow whitespace in between now (#17)
API improvements:
- added methods value() and value_as_str() on iterators over AnnotationData