\acdhOeaw\oai\setSetInterface

Interface for OAI-PMH sets implementations.

It is a class because PHP doesn't consider static methods part of an interface therefore interface can't be used.

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