sweetrdf/rdf-helpers
sweetrdf/rdf-helpers provides helper classes to implement sweetrdf/rdfInterface: DefaultGraph, a GenericQuadIterator for arrays/quads/iterators, N-Triples serialization utilities, and an RdfNamespace implementation.
rdfHelpers\GenericQuadIterator::current() and rdfHelpers\GenericTermIterator::current() now return null if the iterator is invalid.
rdfHelpers\TermIteratorInterface extended with following methods:
contains(TermCompareInterface $term): bool allowing to perform in_array()-equivalent checkgetValues(): array<string> fetching string values of all terms in the iterator as array.
$iter->getValues()[0] ?? $defaultintersect(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 contentRdfNamespace::add() checks if the $iriPrefix isn't already registered\rdfHelpers\GenericQuadIterator class implementing rdfInterface\TermIterator added.
\rdfHelpers\NtriplesUtil::serializeLiteral() now adds quotes around literal's value\rdfHelpers\GenericQuadIterator can also handle \IteratorAggregate objectsRelaxed dependency on rdfInterface to make it easier to use the library in dev environments depending on non-released rdfInterface versions.
An embarassing error in n-triples escaping fixed
NtriplesUtil methods serialiseIri(), serialiseLiteral() and serialise() become serializeIri(), serializeLiteral() and serialize().
How can I help you explore Laravel packages today?