Skip to content

Releases: sweetrdf/termTemplates

2.0.2

13 Feb 12:28
Compare
Choose a tag to compare

rdf-interface bumped to stable version (^2)

2.0.1

09 Feb 12:59
Compare
Choose a tag to compare

Type hint fixes in the termTemplates\PredicateTemplate class

2.0.0

01 Sep 17:42
Compare
Choose a tag to compare

Backward-incompatible changes

  • termTemplates\QuadTemplate is now immutable. You can use with*() methods to get a modified copy.
  • termTemplates\DatasetExtractors class dropped.

New features

  • termTemplates\QuadTemplate and termTemplates\PredicateTemplate provide withSubject(), withPredicate(), withObject(), withGraph() and withNegate() methods allowing to modify the template.
  • termTemplates\PredicateTemplate::__construct() takes the $negate parameter just like termTemplates\QuadTemplate::__construct().
  • termTemplates\ValueTemplate, termTemplates\NamedNodeTemplate and termTemplates\LiteralTemplate constructor accepts array of values. In such a case condition has to be fulfilled on any value.

QuadTemplate enhancements

01 Sep 12:25
Compare
Choose a tag to compare

termTemplates\QuadTemplate::__construct() now accepts string values of the $subject, $predicate, $object and $graph parameters. In such a case, the a corresponding quad part filter is instantiated as a termTemplates\ValueTemplate()

QuadTemplate and NotTemplate enhancements

29 Aug 16:11
Compare
Choose a tag to compare
  • termTemplates\NotTemplate can be now applied both to rdfInterface\TermCompareInterface and rdfInterface\QuadCompareInterface objects and implements both rdfInterface\TermCompareInterface and rdfInterface\QuadCompareInterface
  • termTemplates\QuadTemplate allows to negate the template (with an additional bool $negate constructor parameter).

Make compatible with rdfInterface 2.0.0

26 Jul 14:58
Compare
Choose a tag to compare
1.0.1

composer.json: do not allow rdfInterface v1

1.0.0

01 Nov 17:38
Compare
Choose a tag to compare

Backward-incompatible changes

  • termTemplates\RegexTemplate, termTemplates\NamedNodeRegexTemplate and termTemplates\LiteralRegexTemplate classes replaced with the termTemplates\ValueTemplate::REGEX match mode of the termTemplates\ValueTemplate/termTemplates\Literaltemplate/termTemplates\NamedNodeTemplate.
  • termTemplates\ValueTemplate and termTemplates\NumericTemplate constants unified into termTemplates\ValueTemplate constants with constant value type changed to string.

Other changes

  • Adjusted to rdf-interface 1.0.0.
  • Much better code coverage.
  • Usage examples in the README.

AnyOfTemplate::_construct() accepts any iterable

12 Oct 15:08
Compare
Choose a tag to compare
0.6.1

AnyOfTemplate::_construct() accept any iterable

NotTemplate class added

12 Oct 13:20
Compare
Choose a tag to compare
0.6.0

Merge branch 'master' of github.com:sweetrdf/termTemplates

DatasetExtractors class added

26 May 18:15
Compare
Choose a tag to compare
0.5.0

DatasetExtractors class added