mirror of
https://github.com/balkian/hookio-sparql-demo.git
synced 2024-11-24 04:02:31 +00:00
Initial commit
This commit is contained in:
commit
24975d56a4
1
Hookio-Mailer
Submodule
1
Hookio-Mailer
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f4ed43c564cf191632dbfaacbeba764e22965518
|
16
README.markdown
Normal file
16
README.markdown
Normal 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
2
addConfiguration.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cp -r configuration/* .
|
1
config.json
Normal file
1
config.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
1
hook.io-dbpedia
Submodule
1
hook.io-dbpedia
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 7a0176205f55464dea0d7f60ae785626d9b75012
|
1
hook.io-sparql
Submodule
1
hook.io-sparql
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit def005040fc0aa11bfc751b7b30363082b64c282
|
1
hookio/config.json
Normal file
1
hookio/config.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
5
hookio/hooks/runAllHooks.sh
Normal file
5
hookio/hooks/runAllHooks.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
for i in `npm bin`/hookio-*
|
||||||
|
do
|
||||||
|
$i &
|
||||||
|
done
|
28
hookio/monkey.js
Executable file
28
hookio/monkey.js
Executable 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
49
install.sh
Executable 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
28
monkey.js
Executable 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
9
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user