Recent Releases of https://github.com/acdh-oeaw/arche-lib

https://github.com/acdh-oeaw/arche-lib - RepoDb performance optimization

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery() now makes use of the get_relatives(bigint[], ...) database-embedded function.

- PHP
Published by zozlak about 1 year ago

https://github.com/acdh-oeaw/arche-lib - Honor proxy settings from env vars

- PHP
Published by zozlak about 1 year ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

- PHP
Published by zozlak about 1 year ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

- PHP
Published by zozlak over 1 year ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery(): fix META_NONE metadata read mode handling

- PHP
Published by zozlak over 1 year ago

https://github.com/acdh-oeaw/arche-lib - Small fixes

acdhOeaw\arche\lib\RepoTrait::extractResourcesFromGraph(): remove total search count triple

- PHP
Published by zozlak over 1 year ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch bugfix

- PHP
Published by zozlak over 1 year ago

https://github.com/acdh-oeaw/arche-lib - Repo search fixes and RepoDb FTS fixes

Backward-incompatible changes:

  • Repo::getResourceById*() take acdhOeaw\arche\lib\SearchConfig instead of the string $className parameter. This allows controlling amount of metadata returned and makes their API more orthogonal with getResources*() methods (the returned resource class can be still set with the SearchConfig object).

Fixes:

  • RepoDb::getFtsQuery() tuned for better highlighting of full text search queries matching identifier URIs

- PHP
Published by zozlak over 1 year ago

https://github.com/acdh-oeaw/arche-lib - Repo::getResourceByIdsAsync(): metadata handling fix

Repo::getResourceByIdsAsync(): remove technical search metadata before passing the meta to the resource

- PHP
Published by zozlak over 1 year ago

https://github.com/acdh-oeaw/arche-lib - PHP 8.4 deprecation fixes

- PHP
Published by zozlak almost 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch performance tuning

- PHP
Published by zozlak almost 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch major rewrite of the search() method:

  • Search code split into smaller and easier to manage chunks.
  • Named entities linking is now done separately for the FTS and the spatial search with results being joined only afterwords. This allows independent named entity links to FTS and spatial matches.
  • Spatial search extracts geometry to make it easy to narrow down the map facet values to the ones matching the search.
  • The search() method returns false on an empty search and true otherwise.

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Fix for PHP 8.3

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Allow PHP ^8.1

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Allow PHP ^8.1

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Search query performance fixes

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Search query performance fixes

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch facets API reworked

Various kinds of facets integrated into a single acdhOeaw\arche\lib\SmartSearch::setFacets().

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch facets API reworked

Various kinds of facets integrated into a single acdhOeaw\arche\lib\SmartSearch::setFacets().

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch::getSearchFacets(): report match property and link property as last facets

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch::getSearchFacets(): report match property and link property as last facets

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\SmartSearch::getInitialFacets(): weights processing fixed

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\SmartSearch::getInitialFacets(): weights processing fixed

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\RepoDb::parseMetadataReadMode(): properly recognize read mode of x_x_0_0

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\RepoDb::parseMetadataReadMode(): properly recognize read mode of x_x_0_0

- PHP
Published by zozlak about 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch::getInitialFacets() method added

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch::getInitialFacets() method added

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib -

acdhOeaw\arche\lib\SmartSearch::getInitialFacets() method added

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib -

acdhOeaw\arche\lib\SmartSearch::getInitialFacets() method added

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch changes:

  • Default weight value can be specified per facet (with a defaultWeight property)
  • The search() method accepts additional int $matchesLimit = 10000 parameter limiting the number of resources matching the search. The limit is applied after sorting the matches by initial weight so only less relevant matches are skipped. It allows avoiding collecting facet values for unmanageably high number of resources.
  • search() skips resources for which at least facet weight is 0. This allows to exclude resources having a given facet value from the search.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch changes:

  • Default weight value can be specified per facet (with a defaultWeight property)
  • The search() method accepts additional int $matchesLimit = 10000 parameter limiting the number of resources matching the search. The limit is applied after sorting the matches by initial weight so only less relevant matches are skipped. It allows avoiding collecting facet values for unmanageably high number of resources.
  • search() skips resources for which at least facet weight is 0. This allows to exclude resources having a given facet value from the search.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch tuning:

  • Multiple values of the same facet does not increase search match weight (relevance) any more (which was especially unwanted for unweighted facets).
  • Performance fixes

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch tuning:

  • Multiple values of the same facet does not increase search match weight (relevance) any more (which was especially unwanted for unweighted facets).
  • Performance fixes

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch tuning:

  • Multiple values of the same facet does not increase search match weight (relevance) any more (which was especially unwanted for unweighted facets).
  • Performance fixes

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch tuning

acdhOeaw\arche\lib\SmartSearch tuning:

  • Multiple values of the same facet does not increase search match weight (relevance) any more (which was especially unwanted for unweighted facets).
  • Performance fixes

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch enhancements

\acdhOeaw\arche\lib\SmartSearch::setFallbackOrderBy($property, $asc = true) method added allowing to specify ordering of resources with the same weight (relevance).

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch enhancements

\acdhOeaw\arche\lib\SmartSearch::setFallbackOrderBy($property, $asc = true) method added allowing to specify ordering of resources with the same weight (relevance).

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

SmartSearch: search only among active resources.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

SmartSearch: search only among active resources.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

SearchConfig::getTsHeadlineOptions(): set default value for the $offset parameter

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - RepoDb::getSmartSearch() added

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Allows psr/log 2 and 3

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - 6.0.0-RC1

Ported from the EasyRdf to the rdfInterface

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Search performance tuning

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery(): avoid calling the get_relatives() database-embedded function when the metadata read mode is 0_0_0_0.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Search performance tuning

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery(): avoid calling the get_relatives() database-embedded function when the metadata read mode is 0_0_0_0.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Fix SearchTerm query generation if value is not specified.

- PHP
Published by zozlak over 2 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Make value of the <{resourceId}> <{repoCfg}$.schema.searchFtsProperty{N}> <RDFpropertyOfTheCorrespondingHihglightedResult> triples returned by the full text search objects for RDF properties and literals for the BINARY value.

- PHP
Published by zozlak almost 3 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Assure values of the <{resourceId}> <{repoCfg}$.schema.searchFtsProperty{N}> <RDFpropertyOfTheCorrespondingHihglightedResult> triples returned by the full text search are objects (and not literals).

- PHP
Published by zozlak almost 3 years ago

https://github.com/acdh-oeaw/arche-lib - Full text search tuning

  • acdhOeaw\arche\lib\SearchConfig::$ftsProperty now properly handles id property (as set in the config schema mapping) and the acdhOeaw\arche\lib\SearchConfig::FTS_BINARY value.
  • acdhOeaw\arche\lib\SearchConfig::$fts* properties can now be arrays. This allows to specify multiple FTS highlighting queries and their settings.
  • To make it possible to determine which highlighted result comes from which property and highlighting query, a broader set of technical RDF triples is now returned by the acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery(): <{resourceId}> <{repoCfg}$.schema.searchFts{N}> "higlighted result" <{resourceId}> <{repoCfg}$.schema.searchFtsProperty{N}> <RDFpropertyOfTheCorrespondingHihglightedResult> <{resourceId}> <{repoCfg}$.schema.searchFtsQuery{N}> "FTShighlightQueryOfTheCorrespondingHihglightedResult"
  • acdhOeaw\arche\lib\SearchConfig::readFtsConfigFromTerms(array<acdhOeaw\arche\lib\SearchTerm> $terms) method added allowing to fill in acdhOeaw\arche\lib\SearchConfig::$ftsProperty and acdhOeaw\arche\lib\SearchConfig::$ftsQuery properties based on provided search terms.
  • acdhOeaw\arche\lib\SearchTerm::OPERATOR_FTS constant added

- PHP
Published by zozlak almost 3 years ago

https://github.com/acdh-oeaw/arche-lib - Full text search tuning

  • acdhOeaw\arche\lib\SearchConfig::$ftsProperty can now be an array of properties
  • acdhOeaw\arche\lib\SearchConfig::$ftsProperty properly handles values being the id property or the acdhOeaw\arche\lib\SearchConfig::FTS_BINARY.
  • FTS-related triples returned by the acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery() now include <{resourceId}> <{repoCfg}$.schema.searchFts{N}> "higlighted result" and <{resourceId}> <{repoCfg}$.schema.searchFtsProperty{N}> <RDFpropertyOfTheCorrespondingHihglightedResult> pairs (instead of <{resourceId}> <{repoCfg}$.schema.searchFts> "higlighted result") indicating the RDF property in which a given FTS match was found

- PHP
Published by zozlak almost 3 years ago

https://github.com/acdh-oeaw/arche-lib - Minor enhancements

- PHP
Published by zozlak almost 3 years ago

https://github.com/acdh-oeaw/arche-lib - Minor enhancements

acdhOeaw\arche\lib\SmartSearch::getSearchFacets():

  • Allows limiting the range of the computed distribution
  • Reports global and per-bin lower and upper bound in dedicated properties

- PHP
Published by zozlak about 3 years ago

https://github.com/acdh-oeaw/arche-lib - SmartSearch class added

The acdhOeaw\arche\lib\SmartSearch class provides a flexible API for a full text search.

- PHP
Published by zozlak about 3 years ago

https://github.com/acdh-oeaw/arche-lib - Tune the relativesProperties metadata retrieval

The SearchConfig::$relativesProperties filter isn't applied to relation properties reverse-pointing to resources matching the search or the requested resource. This allows the most common scenario like give me only a title and the linking property of all resources reverse-pointing to the ones matching the search without specifying the list of all all allowed linking properties in the SearchConfig::$relativesProperties.

- PHP
Published by zozlak over 3 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\Repo::sendRequestAsync() captures all kinds of Guzzle exceptions now.

- PHP
Published by zozlak over 3 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

RepoDb::getOrderByQuery() order orderBy[] parameters by key value so it's easy to establish relation between requests orderBy[] and response's {repoCfg}$.schema.searchOrderValue + {N} RDF properties.

- PHP
Published by zozlak over 3 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

RepoDb::getOrderByQuery(): harden against non-numeric searchConfig::$orderBy keys

- PHP
Published by zozlak over 3 years ago

https://github.com/acdh-oeaw/arche-lib - Add support for collations in search ordering

  • acdhOeaw\arche\lib\SearchTerm::$orderByCollation property has been added allowing to specify the collation to be used for ordering search results.
  • acdhOeaw\arche\lib\RepoDb::getOrderByQuery() adjusted to make use of the acdhOeaw\arche\lib\SearchTerm::$orderByCollation property.

- PHP
Published by zozlak over 3 years ago

https://github.com/acdh-oeaw/arche-lib - SearchTerm: allow property negation

acdhOeaw\arche\lib\SearchTerm - allow property to be negated by prepending it with a acdhOeaw\arche\lib\SearchTerm::PROPERTY_NEGATE. When negated, the rdfs:resource search term type is enforced and the search term value is evaluated against the triple subject resource instead of the object resource. A canonical use case would be a search for a parent of a given resource.

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery() fix the sql query when exactly one of $searchConfig->resourceProperties and $searchConfig->relativesProperties is set.

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Repo::rollback() and Repo::commit() tuning

Set the $txId property to null before making the request as the request can throw an exception and it shouldn't leave the Repo object in unusable state.

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Repo constructor tuning

acdhOeaw\arche\lib\Repo::__construct() now updates the repository base URL based on the configuration read from the /describe repository endpoint.

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - SearchTerm enhancements

Backward-incompatible changes:

  • acdhOeaw\arche\libRepoDb::getMetadataQuery(): QueryPart has been replaced with acdhOeaw\arche\libRepoDb::getMetadataStatement(): PDOStatement (this change allowed internal code reorganization so the SQL query used to fetch metadata is generated by one method - acdhOeaw\arche\libRepoDb::getPdoStatementBySqlQuery()).

New features:

  • acdhOeaw\arche\SearchTerm search values for object properties are matched against any target resource identifier (and not only its repository canonical URL)
  • acdhOeaw\arche\SearchTerm new value type SearchTerm::TYPE_ID introduced for instant search for resources with known internal repository id.
  • acdhOeaw\arche\SearchConfig generic metadata read mode {childrenDepth}_{parentsDepth}_{from}_{into} introduced. See the arche-core REST API documentation for details.
  • acdhOeaw\arche\SearchConfig provides array<string> $resourceProperties and array<string> $relativesProperties properties allowing to limit the set of RDF properties included in the search results. Filtering isn't applied to technical search properties.
  • acdhOeaw\arche\SearchConfig provides the bool $skipArtificialProperties property allowing to skip generation of technical search-related RDF properties.
  • acdhOeaw\arche\RepoResource::delete*() methods return an array of deleted resource URIs.
  • acdhOeaw\arche\libRepoDb::getPdoStatementBySqlQuery() generates technical triples containing values used for ordering.
  • acdhOeaw\arche\libRepoDb::getPdoStatementBySqlQuery() uses the most specific triple datatype for ordering making numbers and dates being ordered properly instead of according to their string serializations.

Bugfixes:

  • acdhOeaw\arche\SearchTerm handles array $value properly.
  • acdhOeaw\arche\SearchTerm properly recognizes the datatype $value is an array.

Performance optimizations:

  • acdhOeaw\arche\libRepoDb::getPdoStatementBySqlQuery(): uses get_relatives() and manual join with metadata/relations/identifiers tables instead of get_relatives_metadata() resulting in much better query execution speed (the gain is proportional to the number of resources matching the search)

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Fixed acdhOeaw\arche\lib\tests\SearchTerm form serialization when property or value properties are arrays.

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Various improvements

Backward-incompatible changes:

  • acdh\arche\lib\RepoDb::getMetadataQuery() has been renamed to acdh\arche\lib\RepoDb::getMetadataStatement() and its return type has changed to PDOStatement

Other changes:

  • Support for custom metadata read modes in form of {childrenDepth}_{parentsDepth}_{from}_{into} added.
  • Support for limiting the set of fetched RDF properties added.
    • acdh\arche\lib\RepoResourceInterface::loadMetadata() and acdh\arche\lib\RepoResource::*Metadata*() methods take two additional optional parameters $resourceProperties and $relativesProperties allowing to specify the filtersl
    • acdh\arche\lib\SearchConfig has two additional properties $resourceProperties and $relativesProperties.
  • acdh\arche\lib\RepoResource::delete() now returns a list of removed resource's URIs. This can be particularly useful in case of recursive removals.
  • acdh\arche\lib\RepoDb::getPdoStatementBySqlQuery():
    • properly orders by numeric and date values;
    • generates new artificial triples providing the value used for ordering;
    • can now optionally skip generation of artificial triples (search match, order, search order value, etc.)
  • acdh\arche\lib\SearchTerm:
    • TYPE_ID search triple type added for very fast search for a resource(s) with known internal repository IDs.
    • various fixes for multiple search values.

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Search URI/URL handling in SearchTerm::getSqlQueryFts() so that they are parsed properly by the Postgresql's websearch_to_tsquery().

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

RepoResourceDb::getMetadataQuery() implement missing read modes

- PHP
Published by zozlak almost 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

RepoTrait::sortMatchingResources() fixed to sort according to the $.schema.searchOrder configuration property.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - ExceptionUtil class added

acdhOeaw\arche\lib\exception\ExceptionUtil class added providing the unwrap(Throwable $e, bool $includeBacktrace = false): string method. This should make it easier to read ARCHE REST API error messages, especially avoid truncating of the HTTP response body.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Better debugging

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Provide explicit search order triples

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery() now also generates triples providing explicit order of resources matching the search. This allows reliable reproduction of the search ordering on the client side (also by acdhOeaw\arche\lib\RepoDb::getResourcesBy*() and acdhOeaw\arche\lib\Repo::getResourcesBy*() methods).

The new config property $.schema.searchOrder is used to configure the property providing the order.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Sorting tuning

If the acdhOeaw\arche\lib\SearchConfig::$orderByLang is set but there is no value in a requested language, any property value is taken.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\Repo::getResourcesBy*() and acdhOeaw\arche\lib\RepoDb::getResourcesBy*() finally honor the acdhOeaw\arche\lib\SearchConfig::$orderBy. Previously the $orderBy property has been used only to properly filter resources according to acdhOeaw\arche\lib\SearchConfig::$offset and acdhOeaw\arche\lib\SearchConfig::$limit. Now the order applies also to the values of the iterator returned by getResourcesBy*() methods.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Required PHP version constraint fixed in composer.json

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\Repo::sendRequestAsync() now turns HTTP 409 response body into the Conflict exception message.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - 4.0.0

New Features

  • Asynchronous API

Backward-incompatible changes

  • TODO

Bugfixes

  • TODO

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

Fixed handling of the $configLocation parameter of the acdhOeaw\arche\lib\Repo::factoryInteractive().

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery() - don't convert metadata read mode to lowercase.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Bugfixes

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Repo::factoryInteractive() modernized

\acdhOeaw\arche\lib\Repo::factoryInteractive() can now:

  • Work without a config file. In such a case it asks the user to provide an ARCHE API base URL.
  • Uses ARCHE /describe endpoint to fetch a repository config.
  • Allows to provide credentials as parameters.

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - 3.0.0

Adjusted to arche-core v3:

  • acdhOeaw\arche\lib\RepoResource::deleteRecursively() droped. Instead acdhOeaw\arche\lib\RepoResource::delete() takes optional third parameter $recursiveProperty allowing to trigger recursive deletion. The recursive and references deletion is now done on the REST API side (thanks to features introduced by arche-core v3) and only tombstone deletion loop is performed client side.
  • acdhOeaw\arche\lib\RepoResource::merge() method added calling a corresponding REST API endpoint
  • acdhOeaw\arche\lib\RepoResource class tests moved to the acdhOeaw\arche\lib\tests\RepoResourceTest class
  • tests/config.yaml adjusted to the arche-core v3

- PHP
Published by zozlak over 4 years ago

https://github.com/acdh-oeaw/arche-lib - Relax guzzle dependency to ^6 or ^7

- PHP
Published by zozlak about 5 years ago

https://github.com/acdh-oeaw/arche-lib - 2.0.0

Backward-incompatible changes:

  • Requires PHP 8.
  • Base namespace changed for acdhOeaw\acdhRepoLib to achdOeaw\arche\lib.
  • acdhOeaw\arche\lib\RepoInterface::getResourcesBySqlQuery(), acdhOeaw\arche\lib\RepoInterface::getResourcesBySearchTerms() and acdhOeaw\arche\lib\RepoDb::getResourcesBySqlQuery() return generators instead of arrays. You can cast it to array with iterator_to_array().

Internal changes:

  • Guzzle version bumped to 7.
  • Switched to using zozlak/query-part instead of own QueryPart class.
  • Lots of changes making the code fulfill phpstan level 8 checks.

- PHP
Published by zozlak about 5 years ago

https://github.com/acdh-oeaw/arche-lib - Remove technical metadata properties from resource metadata

On the RepoResource/RepoResourceDb object level the technical search properties are not needed any more and should be removed from the metadata.

- PHP
Published by zozlak about 5 years ago