Releases: sweetrdf/rdfHelpers
Releases · sweetrdf/rdfHelpers
Adjusted to rdfInterface 2.0.0
DatasetGettersTrait added
1.2.0 DatasetGettersTrait: get*Value() return type adjusted
Iterator classes fixes
rdfHelpers\GenericQuadIterator::current()
and rdfHelpers\GenericTermIterator::current()
now return null
if the iterator is invalid.
Adjusted to rdfInterface 2.0.0-RC3
rdfHelpers\TermIteratorInterface
extended with following methods:
contains(TermCompareInterface $term): bool
allowing to performin_array()
-equivalent checkgetValues(): array<string>
fetching string values of all terms in the iterator as array.- it allows syntax like
$iter->getValues()[0] ?? $default
- it allows syntax like
intersect(array<TermInterface>|Iterator<TermInterface>|IteratorAggregate<TermInterface>|TermInterface $terms): self
andskip(array<TermInterface>|Iterator<TermInterface>|IteratorAggregate<TermInterface>|TermInterface $terms):self
allowing to quickly filter the iterator content
Small fixes
- Make compatible with both rdfInterface v1 and v2
RdfNamespace::add()
checks if the$iriPrefix
isn't already registered
Harden GenericQuadIterator::valid(): against OutOfBoundsException
1.0.1 GenericQuadIterator: missing use statement added
Adjusted against rdf-interface 1.0.0
composer.json: bump rdf-interface to ^1.0.0
NtriplesUtil::serialize() supports Quads
0.8.0 NtriplesUtil::serialize() deals also with quads
GenericTermIterator
\rdfHelpers\GenericQuadIterator
class implementing rdfInterface\TermIterator
added.
Bugfix and minor enhancement
\rdfHelpers\NtriplesUtil::serializeLiteral()
now adds quotes around literal's value\rdfHelpers\GenericQuadIterator
can also handle\IteratorAggregate
objects