Releases: sweetrdf/termTemplates
Releases · sweetrdf/termTemplates
2.0.2
2.0.1
2.0.0
Backward-incompatible changes
termTemplates\QuadTemplate
is now immutable. You can usewith*()
methods to get a modified copy.termTemplates\DatasetExtractors
class dropped.
New features
termTemplates\QuadTemplate
andtermTemplates\PredicateTemplate
providewithSubject()
,withPredicate()
,withObject()
,withGraph()
andwithNegate()
methods allowing to modify the template.termTemplates\PredicateTemplate::__construct()
takes the$negate
parameter just liketermTemplates\QuadTemplate::__construct()
.termTemplates\ValueTemplate
,termTemplates\NamedNodeTemplate
andtermTemplates\LiteralTemplate
constructor accepts array of values. In such a case condition has to be fulfilled on any value.
QuadTemplate enhancements
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
termTemplates\NotTemplate
can be now applied both tordfInterface\TermCompareInterface
andrdfInterface\QuadCompareInterface
objects and implements bothrdfInterface\TermCompareInterface
andrdfInterface\QuadCompareInterface
termTemplates\QuadTemplate
allows to negate the template (with an additionalbool $negate
constructor parameter).
Make compatible with rdfInterface 2.0.0
1.0.1 composer.json: do not allow rdfInterface v1
1.0.0
Backward-incompatible changes
termTemplates\RegexTemplate
,termTemplates\NamedNodeRegexTemplate
andtermTemplates\LiteralRegexTemplate
classes replaced with thetermTemplates\ValueTemplate::REGEX
match mode of thetermTemplates\ValueTemplate
/termTemplates\Literaltemplate
/termTemplates\NamedNodeTemplate
.termTemplates\ValueTemplate
andtermTemplates\NumericTemplate
constants unified intotermTemplates\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
0.6.1 AnyOfTemplate::_construct() accept any iterable
NotTemplate class added
0.6.0 Merge branch 'master' of github.com:sweetrdf/termTemplates
DatasetExtractors class added
0.5.0 DatasetExtractors class added