Documentation

ArcheCoreHelper
in package

Description of ArcheCoreHelper Static Class

Tags
author

nczirjak

Table of Contents

Properties

$prefixesToChange  : mixed
$resources  : mixed

Methods

createFullPropertyFromShortcut()  : string
createShortcut()  : string
Create shortcut from the property for the gui
extractDataFromCoreApiWithId()  : type
Extract the GUI data from the RDF data for a given resource (id)
extractExpertView()  : object
Get all metadata for a given resource
extractInverseDataFromCoreApiWithId()  : mixed
fetchApiEndpoint()  : string
Fetch the defined ARCHE GUI endpoint
isCacheExists()  : bool
Check if the drupal DB has the cached data
changePropertyToShortcut()  : mixed
change the long proeprty urls inside the resource array
setDefaultTitle()  : mixed
If the property doesn't have the actual lang related value, then we have to create one based on en/de/und/or first array element

Properties

$prefixesToChange

private static mixed $prefixesToChange = array("http://fedora.info/definitions/v4/repository#" => "fedora", "http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#" => "ebucore", "http://www.loc.gov/premis/rdf/v1#" => "premis", "http://www.jcp.org/jcr/nt/1.0#" => "nt", "http://www.w3.org/2000/01/rdf-schema#" => "rdfs", "http://www.w3.org/ns/ldp#" => "ldp", "http://www.iana.org/assignments/relation/" => "iana", "https://vocabs.acdh.oeaw.ac.at/schema#" => "acdh", "https://id.acdh.oeaw.ac.at/" => "acdhID", "http://purl.org/dc/elements/1.1/" => "dc", "http://purl.org/dc/terms/" => "dcterms", "http://www.w3.org/2002/07/owl#" => "owl", "http://xmlns.com/foaf/0.1/" => "foaf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#" => "rdf", "http://www.w3.org/2004/02/skos/core#" => "skos", "http://hdl.handle.net/21.11115/" => "handle", "http://xmlns.com/foaf/spec/" => "foaf")

Methods

createFullPropertyFromShortcut()

public static createFullPropertyFromShortcut(string $prop) : string
Parameters
$prop : string
Return values
string

createShortcut()

Create shortcut from the property for the gui

public static createShortcut(string $prop) : string
Parameters
$prop : string
Return values
string

extractDataFromCoreApiWithId()

Extract the GUI data from the RDF data for a given resource (id)

public extractDataFromCoreApiWithId(object $obj, string $id) : type
Parameters
$obj : object
$id : string
Return values
type

extractExpertView()

Get all metadata for a given resource

public extractExpertView(object $pdoStmt, int $resId, array<string|int, mixed> $contextRelatives[, string $lang = "en" ]) : object
Parameters
$pdoStmt : object
$resId : int
$contextRelatives : array<string|int, mixed>
$lang : string = "en"
Return values
object

extractInverseDataFromCoreApiWithId()

public extractInverseDataFromCoreApiWithId(object $obj, string $id) : mixed
Parameters
$obj : object
$id : string

fetchApiEndpoint()

Fetch the defined ARCHE GUI endpoint

public fetchApiEndpoint(string $url[, array<string|int, mixed> $params = [] ]) : string
Parameters
$url : string
$params : array<string|int, mixed> = []
Return values
string

isCacheExists()

Check if the drupal DB has the cached data

public isCacheExists(string $cacheId) : bool
Parameters
$cacheId : string
Return values
bool

changePropertyToShortcut()

change the long proeprty urls inside the resource array

private changePropertyToShortcut(string $resId) : mixed
Parameters
$resId : string

setDefaultTitle()

If the property doesn't have the actual lang related value, then we have to create one based on en/de/und/or first array element

private setDefaultTitle(string $lang, string $resId) : mixed
Parameters
$lang : string
$resId : string

        
On this page

Search results