This class is an implementation of the interfaces ILoader and IExporter

see \util\Adapters\ILoader
see \util\Adapters\IExporter

 Methods

This method is the constructor of the class it uses the library for the implementation

__construct() 

This function needs to be implemented in order to export the data

export(\adms:AdmsObject[] $data, string $output) : boolean

access public

Parameters

$data

\adms:AdmsObject[]

data the data (AdmsObject table) which should be exported

$output

string

output another output than the simple boolean value

Exceptions

\DomainException
\InvalidArgumentException

Returns

boolean

This method loads a table of AdmsObject from an RDF XML file

load(mixed $object) : \obj

Parameters

$object

mixed

the path to the file which should be loaded

Returns

\obja table of AdmsObject

This function is retrieving the class related to an URI

_getClassFromURI(string $URI) : string

Parameters

$URI

string

The URI which needs to be translated

Exceptions

\InvalidArgumentException if the URI doesn't exist
\DomainException if the URI is ignored

Returns

string

Get the classname of an object from its ressource definition (e.g. adms:SemanticAssetRepository => \ADMS\SemanticAssetRepository )

_getClassNameFromResource(string $ressource) : string

Parameters

$ressource

string

Returns

string

This function is retrieving the property related to an URI

_getPropertyFromURI(string $URI) : string

Parameters

$URI

string

The URI which needs to be translated

Exceptions

\InvalidArgumentException if the URI doesn't exist
\DomainException if the URI is ignored

Returns

string

Get the ressource name of an object from its class name (e.g. \ADMS\SemanticAssetRepository => adms:SemanticAssetRepository )

_getResourceFromClassName(string $classname) : string

Parameters

$classname

string

Returns

string

This function is retrieving the URI related to a class

_getURIFromClass(string $class) : string

Parameters

$class

string

The class which needs to be translated

Exceptions

\InvalidArgumentException if the property is not referenced

Returns

string

This function is retrieving the URI related to a property

_getURIFromProperty(string $property) : string

Parameters

$property

string

The property which needs to be translated

Exceptions

\InvalidArgumentException if the property is not referenced

Returns

string

This method is used to check if the string passed is a resource

_isShortResource(string $resource) 

Parameters

$resource

string

 Properties

 

This array is a translation between the URI which is the key and the Object which is the Name of the class

$_classes : array

 

This table is an ignore list for properties which are not neccessary to be implemented

$_ignore : array

 

The logger

$_logger : \Logger

 

This array is a translation between the URI which is the key and the Object which is the Name of the property

$_properties : array