FEDORA_LAT_MOD
FEDORA_LAT_MOD
Ontology cache class.
Fetching full ontology (resolving class and property inheritance) from a triplestore is time consuming. At the same time the ontology changes rarely. Thus caching is a perfect solution.
The ontology is cached in a JSON file (path is taken from the
repoConfig:ontologyCacheFile
config property). It is automatically refreshed
if the repository resource storing the ontology owl (as set in the
repoConfig:ontologyResId
) modification date is newer then the cache file
modification time.
__construct(\acdhOeaw\fedora\Fedora $fedora)
\acdhOeaw\fedora\Fedora | $fedora | repository connection object |
getClass(string $class) : \stdClass
Returns class description. It is an object containing following properties:
class
class name URIclasess
array of inherited class name URIsproperties
object descriping class properties indexed with property
URIs each property is described by an object with a following structure:
property
property URIrange
property range (class URI)min
minimum cardinalitymax
maximum cardinalitystring | $class | class name URI |
getFromTriplestore(\acdhOeaw\fedora\Fedora $fedora, string $file)
\acdhOeaw\fedora\Fedora | $fedora | |
string | $file |