Skip to content

Releases: sweetrdf/rdfHelpers

Adjusted to rdfInterface 2.0.0

13 Feb 12:04
Compare
Choose a tag to compare
composer.json: bump rdf-interface to ^2

DatasetGettersTrait added

31 Aug 12:14
Compare
Choose a tag to compare
1.2.0

DatasetGettersTrait: get*Value() return type adjusted

Iterator classes fixes

30 Aug 07:31
Compare
Choose a tag to compare

rdfHelpers\GenericQuadIterator::current() and rdfHelpers\GenericTermIterator::current() now return null if the iterator is invalid.

Adjusted to rdfInterface 2.0.0-RC3

29 Aug 16:04
Compare
Choose a tag to compare

rdfHelpers\TermIteratorInterface extended with following methods:

  • contains(TermCompareInterface $term): bool allowing to perform in_array()-equivalent check
  • getValues(): array<string> fetching string values of all terms in the iterator as array.
    • it allows syntax like $iter->getValues()[0] ?? $default
  • intersect(array<TermInterface>|Iterator<TermInterface>|IteratorAggregate<TermInterface>|TermInterface $terms): self and skip(array<TermInterface>|Iterator<TermInterface>|IteratorAggregate<TermInterface>|TermInterface $terms):self allowing to quickly filter the iterator content

Small fixes

26 Jul 13:46
Compare
Choose a tag to compare
  • Make compatible with both rdfInterface v1 and v2
  • RdfNamespace::add() checks if the $iriPrefix isn't already registered

Harden GenericQuadIterator::valid(): against OutOfBoundsException

02 Apr 09:01
Compare
Choose a tag to compare
1.0.1

GenericQuadIterator: missing use statement added

Adjusted against rdf-interface 1.0.0

01 Nov 09:18
Compare
Choose a tag to compare
composer.json: bump rdf-interface to ^1.0.0

NtriplesUtil::serialize() supports Quads

07 May 20:09
Compare
Choose a tag to compare
0.8.0

NtriplesUtil::serialize() deals also with quads

GenericTermIterator

13 Apr 17:12
Compare
Choose a tag to compare

\rdfHelpers\GenericQuadIterator class implementing rdfInterface\TermIterator added.

Bugfix and minor enhancement

29 Mar 16:13
Compare
Choose a tag to compare
  • \rdfHelpers\NtriplesUtil::serializeLiteral() now adds quotes around literal's value
  • \rdfHelpers\GenericQuadIterator can also handle \IteratorAggregate objects