1
0
mirror of https://github.com/balkian/hookio-sparql-demo.git synced 2024-11-23 03:32:31 +00:00

Initial commit

This commit is contained in:
J.Fernando Sánchez 2012-03-16 23:13:44 +01:00
commit 24975d56a4
12 changed files with 142 additions and 0 deletions

1
Hookio-Mailer Submodule

@ -0,0 +1 @@
Subproject commit f4ed43c564cf191632dbfaacbeba764e22965518

16
README.markdown Normal file
View File

@ -0,0 +1,16 @@
![GSI Logo](http://gsi.dit.upm.es/templates/jgsi/images/logo.png)
[Web 4.0](http://gsi.dit.upm.es)
==================================
Introduction
---------------------
Web 4.0 offers a new model of user interaction in the most comprehensive and personalized manner, not limited to displaying information, but intended to behave like a magic mirror that offers concrete solutions to what the user needs. It is an integration layer necessary for the exploitation of Semantic Web and its enormous potential. Eric Schmidt, CEO of Google Inc., commented in an interview, "The perfect search engine is the one that returns only one response, which is exactly what you're looking for." This is the foundation of Web 4.0.
About this repository
------------------------------
This is the root github repository of the Web 4.0 project. Within this repository, you will find several submodules with separate modules we have been working on.
->configuration/ is a private repository containing the specific configuration. Feel free to replace it with your own configuration repository or files. If you wish to do so, just place your configuration files under the same folders you would put it, but inside the configuration/ folder. Then run .addConfiguration. This allows you to easily keep track of configuration changes without committing them to the public github repo.
For more information, contact us through: http://gsi.dit.upm.es

2
addConfiguration.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
cp -r configuration/* .

1
config.json Normal file
View File

@ -0,0 +1 @@
{}

1
hook.io-dbpedia Submodule

@ -0,0 +1 @@
Subproject commit 7a0176205f55464dea0d7f60ae785626d9b75012

1
hook.io-sparql Submodule

@ -0,0 +1 @@
Subproject commit def005040fc0aa11bfc751b7b30363082b64c282

1
hookio/config.json Normal file
View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1,5 @@
#!/bin/bash
for i in `npm bin`/hookio-*
do
$i &
done

28
hookio/monkey.js Executable file
View File

@ -0,0 +1,28 @@
#!/usr/bin/nodejs
var Hook = require('hook.io').Hook,
express = require('express'),
app = express.createServer(),
io = require('socket.io').listen(app);
app.listen(8008);
io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
var monkey = new Hook({
name: "monkey-hook",
debug: true
});
monkey.on('hook::ready', function () {
console.log('I am online :D');
});
monkey.start(1337);

49
install.sh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/bash
# For Ubuntu: apt-get install libavahi-compat-libdnssd-dev
function fetch(){
echo "Fetching project from Github"
git clone https://github.com/balkian/Web4.0.git Web4.0
cd Web4.0
}
function install_npm(){
echo "Installing NPM"
curl http://npmjs.org/install.sh | sudo sh
}
function install_node(){
echo "Instaling nodejs"
sudo apt-get install nodejs-dev
#sudo sudo npm install hook.io
#sudo npm install hookio/hooks/*
}
function install_package(){
echo "Installing npm package"
sudo npm install $1
}
while getopts ":agupi" opt;do
case $opt in
a)
fetch;
install_node;
install_npm;
install_package .;
;;
g)
fetch;
;;
u)
install_npm;
;;
p)
install_package;
;;
i)
install_npm;
install_node;
;;
\?)
echo "Probably you want to run $0 -a"
;;
esac
done

28
monkey.js Executable file
View File

@ -0,0 +1,28 @@
#!/usr/bin/nodejs
var Hook = require('hook.io').Hook,
express = require('express'),
app = express.createServer(),
io = require('socket.io').listen(app);
app.listen(8008);
io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
var monkey = new Hook({
name: "monkey-hook",
debug: true
});
monkey.on('hook::ready', function () {
console.log('I am online :D');
});
monkey.start(1337);

9
package.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "Web4.0",
"version" : "0.0.1",
"dependencies":{
"socket.io":"*",
"hook.io":"*",
"Hook.io-mailer":"git+https://github.com/balkian/Hookio-Mailer.git"
}
}