hylar/server/controller.js
function(req, res, next) {
        var initialTime = 0,
            receivedReqTime = new Date().getTime();

        req.requestDelay =  receivedReqTime - initialTime;
        var url = req.body.url;

        request.get(url, function (error, response, body) {
            if (!error && response.statusCode == 200) {
                req.rawOntology = body.toString().replace(/(&)([a-z0-9]+)(;)/gi, '$2:');
                next();
            }
        });
    }
function(req, res, next) {
        var initialTime = 0,
            receivedReqTime = new Date().getTime();

        req.requestDelay =  receivedReqTime - initialTime;
        var url = req.body.url;

        request.get(url, function (error, response, body) {
            if (!error && response.statusCode == 200) {
                req.rawOntology = body.toString().replace(/(&)([a-z0-9]+)(;)/gi, '$2:');
                next();
            }
        });
    }
function ( req , res , next ) { var initialTime = 0 , receivedReqTime = new Date ( ) . getTime ( ) ; req . requestDelay = receivedReqTime - initialTime ; var url = req . body . url ; request . get ( url , function ( error , response , body ) { if ( ! error && response . statusCode == 200 ) { req . rawOntology = body . toString ( ) . replace ( / (&)([a-z0-9]+)(;) / gi , '$2:' ) ; next ( ) ; } } ) ; }
External OWL File content to text
@param req
@param res
@param next
External OWL File content to text