BaseDesc
in package
Description of BaseDesc
Tags
Table of Contents
Properties
- $comment : array<string|int, string>
- Associative array of rdfs:comment values (langauge as a key)
- $id : int|null
- Internal id of a corresponding repository resource
- $label : array<string|int, string>
- Associative array of label values (langauge as a key)
- $uri : string|null
- The ontology entity URI within the ontology namespace
Methods
- __construct() : mixed
- getComment() : string
- getLabel() : string
- getPropInLang() : string
Properties
$comment
Associative array of rdfs:comment values (langauge as a key)
public
array<string|int, string>
$comment
= []
$id
Internal id of a corresponding repository resource
public
int|null
$id
= null
$label
Associative array of label values (langauge as a key)
public
array<string|int, string>
$label
= []
$uri
The ontology entity URI within the ontology namespace
public
string|null
$uri
= null
Methods
__construct()
public
__construct([object|null $d = null ][, array<string|int, string> $ids = [] ][, string|null $nmsp = null ][, string|null $skipNmsp = null ]) : mixed
Parameters
- $d : object|null = null
- $ids : array<string|int, string> = []
- $nmsp : string|null = null
- $skipNmsp : string|null = null
getComment()
public
getComment(string $lang[, string $fallbackLang = 'en' ]) : string
Parameters
- $lang : string
- $fallbackLang : string = 'en'
Return values
stringgetLabel()
public
getLabel(string $lang[, string $fallbackLang = 'en' ]) : string
Parameters
- $lang : string
- $fallbackLang : string = 'en'
Return values
stringgetPropInLang()
private
getPropInLang(string $property, string $lang, string $fallbackLang) : string
Parameters
- $property : string
- $lang : string
- $fallbackLang : string