\acdhOeaw\oai\setSimple

Provides very simple and straightforward implementation of sets.

&llt;setSpec> are simply taken from a given RDF property of the resource's metadata.

It allows hierarchical sets but there is no support for set names and set metadata (it would require to make some assumptions on how sets are described in the repository - see the acdhOeaw\oai\set\Complex class).

Summary

Methods
Properties
Constants
getSetFilter()
getSetClause()
listSets()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getSetFilter()

getSetFilter(string  $resVar, string  $set) : string

Creates a part of the SPARQL search query filtring only resources belonging to a given set.

Parameters

string $resVar

SPARQL variable denoting the resource URI

string $set

setSpec value to be matched

Returns

string

getSetClause()

getSetClause(string  $resVar, string  $setVar) : string

Creates a part of the SPARQL search query fetching information on sets a resource belongs to.

Parameters

string $resVar

SPARQL variable denoting the resource URI

string $setVar

SPARQL variable which should denoted the setSpec value in the returned SPARQL query part

Returns

string

listSets()

listSets(\acdhOeaw\fedora\Fedora  $fedora) : array

Handles the `ListSets` OAI-PMH request.

Parameters

\acdhOeaw\fedora\Fedora $fedora

repository connection object

Returns

array