src/acdhOeaw/util/metadataValidator/MetadataValidator.php
static public function validateResource(Resource $res, Fedora $fedora): array {
        $results = array();
        foreach ($res->propertyUris() as $prop) {
            if ($prop === self::RDFS_TYPE) {
                $tmp = self::checkClass($res, $fedora);
            } else {
                $tmp = self::checkProperty($prop, $res, $fedora);
            }
            $results = array_merge($results, $tmp);
        }
        return $results;
    }
static public function validateResource(Resource $res, Fedora $fedora): array {
        $results = array();
        foreach ($res->propertyUris() as $prop) {
            if ($prop === self::RDFS_TYPE) {
                $tmp = self::checkClass($res, $fedora);
            } else {
                $tmp = self::checkProperty($prop, $res, $fedora);
            }
            $results = array_merge($results, $tmp);
        }
        return $results;
    }
static public function validateResource ( Resource $ res , Fedora $ fedora ) : array { $ results = array ( ) ; foreach ( $ res -> propertyUris ( ) as $ prop ) { if ( $ prop === self :: RDFS_TYPE ) { $ tmp = self :: checkClass ( $ res , $ fedora ) ; } else { $ tmp = self :: checkProperty ( $ prop , $ res , $ fedora ) ; } $ results = array_merge ( $ results , $ tmp ) ; } return $ results ; }
Checks a given EasyRdf\Resource against ontology in a given repository.
@param Resource $res
@param Fedora $fedora repository connection object
@return array list of errors
Checks a given EasyRdf \ Resource against ontology in a given repository .