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 - New metadata read mode implemented
- PHP
Published by zozlak over 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 - Updated property typehints for the Config class
- PHP
Published by zozlak over 1 year ago
https://github.com/acdh-oeaw/arche-lib - SearchTerm: add the case insensititve regex operator
- 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 - Updated property typehints for the Schema class
- PHP
Published by zozlak over 1 year ago
https://github.com/acdh-oeaw/arche-lib - Updated property typehints for the Config class
- PHP
Published by zozlak over 1 year ago
https://github.com/acdh-oeaw/arche-lib - RepoDb::getPdoStatementBySqlQuery(): fix fallback metadata read mode
- 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*()takeacdhOeaw\arche\lib\SearchConfiginstead of thestring $classNameparameter. This allows controlling amount of metadata returned and makes their API more orthogonal withgetResources*()methods (the returned resource class can be still set with theSearchConfigobject).
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 - Allow passing SearchConfig to getResource*ById*() methods
- 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 - Repo::getResourceByIdsAsync(): set resource metadata from search response
- 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 - RepoDb searches skip resources which are not active
- PHP
Published by zozlak almost 2 years ago
https://github.com/acdh-oeaw/arche-lib - Repo::begin() returns the transaction id
- PHP
Published by zozlak about 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 returnsfalseon an empty search andtrueotherwise.
- 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 - 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
defaultWeightproperty) - The
search()method accepts additionalint $matchesLimit = 10000parameter 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
defaultWeightproperty) - The
search()method accepts additionalint $matchesLimit = 10000parameter 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 - Ported from EasyRdf to RdfInterface
- 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 - 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::$ftsPropertynow properly handles id property (as set in the config schema mapping) and theacdhOeaw\arche\lib\SearchConfig::FTS_BINARYvalue.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 inacdhOeaw\arche\lib\SearchConfig::$ftsPropertyandacdhOeaw\arche\lib\SearchConfig::$ftsQueryproperties based on provided search terms.acdhOeaw\arche\lib\SearchTerm::OPERATOR_FTSconstant added
- PHP
Published by zozlak almost 3 years ago
https://github.com/acdh-oeaw/arche-lib - Full text search tuning
acdhOeaw\arche\lib\SearchConfig::$ftsPropertycan now be an array of propertiesacdhOeaw\arche\lib\SearchConfig::$ftsPropertyproperly handles values being the id property or theacdhOeaw\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::$orderByCollationproperty 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 theacdhOeaw\arche\lib\SearchTerm::$orderByCollationproperty.
- 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(): QueryParthas been replaced withacdhOeaw\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\SearchTermsearch values for object properties are matched against any target resource identifier (and not only its repository canonical URL)acdhOeaw\arche\SearchTermnew value typeSearchTerm::TYPE_IDintroduced for instant search for resources with known internal repository id.acdhOeaw\arche\SearchConfiggeneric metadata read mode{childrenDepth}_{parentsDepth}_{from}_{into}introduced. See the arche-core REST API documentation for details.acdhOeaw\arche\SearchConfigprovidesarray<string> $resourcePropertiesandarray<string> $relativesPropertiesproperties allowing to limit the set of RDF properties included in the search results. Filtering isn't applied to technical search properties.acdhOeaw\arche\SearchConfigprovides thebool $skipArtificialPropertiesproperty 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\SearchTermhandles array$valueproperly.acdhOeaw\arche\SearchTermproperly recognizes the datatype$valueis an array.
Performance optimizations:
acdhOeaw\arche\libRepoDb::getPdoStatementBySqlQuery():usesget_relatives()and manual join withmetadata/relations/identifierstables instead ofget_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 toacdh\arche\lib\RepoDb::getMetadataStatement()and its return type has changed toPDOStatement
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()andacdh\arche\lib\RepoResource::*Metadata*()methods take two additional optional parameters$resourcePropertiesand$relativesPropertiesallowing to specify the filterslacdh\arche\lib\SearchConfighas two additional properties$resourcePropertiesand$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_IDsearch 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 - 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 - Include identifiers in the full text search
- 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 - 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.InsteadacdhOeaw\arche\lib\RepoResource::delete()takes optional third parameter$recursivePropertyallowing 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 endpointacdhOeaw\arche\lib\RepoResourceclass tests moved to theacdhOeaw\arche\lib\tests\RepoResourceTestclasstests/config.yamladjusted to the arche-core v3
- PHP
Published by zozlak over 4 years ago
https://github.com/acdh-oeaw/arche-lib - Made compatible both with guzzle/psr7 v1 and v2
- PHP
Published by zozlak almost 5 years ago
https://github.com/acdh-oeaw/arche-lib - Support property filter in spatial searches
- PHP
Published by zozlak about 5 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\acdhRepoLibtoachdOeaw\arche\lib. acdhOeaw\arche\lib\RepoInterface::getResourcesBySqlQuery(),acdhOeaw\arche\lib\RepoInterface::getResourcesBySearchTerms()andacdhOeaw\arche\lib\RepoDb::getResourcesBySqlQuery()return generators instead of arrays. You can cast it to array withiterator_to_array().
Internal changes:
- Guzzle version bumped to 7.
- Switched to using
zozlak/query-partinstead of ownQueryPartclass. - 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