Skip to content

Releases: annotation/stam-rust

v0.16.5

18 Nov 15:50
Compare
Choose a tag to compare
  • Minor API change in some to_json_string() methods (no config parameter needed)
  • Added to_json_value() method alongside to_json_string() (returns serde_json::Value)
  • Fix in JSON serialisation of DataValue:null
  • Implemented to_json_string(), to_json_value() and text() for QueryResultItem
  • Minor dependency upgrades
  • Added extra_target_template parameter in WebAnnoConfig 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

18 Oct 09:24
Compare
Choose a tag to compare

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 to DataOperator::Equals("blah".into())

v0.16.3

04 Oct 13:00
Compare
Choose a tag to compare

Bugfix release:

  • query: added a missing constraint
  • query: do not propagate NotFoundError and (new) VariableNotFoundError in UNION

v0.16.2

22 Sep 21:16
Compare
Choose a tag to compare

Dependency downgrade of minicbor so things keep running on slightly older rust versions

v0.16.1

22 Sep 20:49
Compare
Choose a tag to compare

Bugfix release:

  • fix for annotations_no_substores() and similar functions

v0.16.0

22 Sep 15:18
Compare
Choose a tag to compare
  • Breaking API changes:
    • TextResourceBuilder was simplified, the build() method is no longer public
    • AnnotationStore.add() got renamed to AnnotationStore.with_item() but is a lower-level function that should be used less.
    • Use the new AnnotationStore.add_resource() and AnnotationStore.add_dataset() instead (or the variants with_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 with AnnotationStore.add_dataset()
    • query: Added support for substores as contraints (SUBSTORE keyword).
  • Fixes for annotation/stam#31
    • Fixed relative path handling (@include mechanism)
    • Deserialisation fixes for @include mechanism.
    • Substores can have multiple parents

v0.15.0

29 Aug 16:00
Compare
Choose a tag to compare
  • Query
    • Removed QueryNames, no longer needed
    • Allow multiple subqueries (annotation/stam#28)
      • subquery() is now subqueries() (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

15 Jul 20:14
Compare
Choose a tag to compare

fix in STAM JSON serialisation of resources and annotation data sets after deletions

v0.14.1

27 May 10:10
Compare
Choose a tag to compare
  • Fixes a bug in STAMQL query parser

v0.14.0

26 May 15:55
Compare
Choose a tag to compare

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