Ejemplo n.º 1
0
        } elseif ($parts[2] == 'broader') {
            $controller->broader($request);
        } elseif ($parts[2] == 'broaderTransitive') {
            $controller->broaderTransitive($request);
        } elseif ($parts[2] == 'narrower') {
            $controller->narrower($request);
        } elseif ($parts[2] == 'narrowerTransitive') {
            $controller->narrowerTransitive($request);
        } elseif ($parts[2] == 'hierarchy') {
            $controller->hierarchy($request);
        } elseif ($parts[2] == 'children') {
            $controller->children($request);
        } elseif ($parts[2] == 'related') {
            $controller->related($request);
        } elseif ($parts[2] == 'vocabularyStatistics') {
            $controller->vocabularyStatistics($request);
        } elseif ($parts[2] == 'labelStatistics') {
            $controller->labelStatistics($request);
        } elseif ($parts[2] == 'groups') {
            $controller->groups($request);
        } elseif ($parts[2] == 'groupMembers') {
            $controller->groupMembers($request);
        } else {
            header("HTTP/1.0 404 Not Found");
            echo "404 Not Found";
        }
    }
} catch (Exception $e) {
    header("HTTP/1.0 500 Internal Server Error");
    echo 'ERROR: ' . $e->getMessage();
}