Skip to content

Commit

Permalink
init contributor
Browse files Browse the repository at this point in the history
  • Loading branch information
mhausenblas committed Jan 14, 2012
1 parent 7fa1e78 commit c208f5a
Show file tree
Hide file tree
Showing 5 changed files with 715 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ _Cloud Is Us_ distributes the effort necessary to process large graph datasets t

The following steps are performed in a typical _Cloud Is Us_ processing phase:

1. The `client` initiates the processing by ingesting a graph dataset into the `allociner` through providing a HTTP URI that points to the location of a dataset in [NTriple](http://www.w3.org/2001/sw/RDFCore/ntriples/) format (called the source).
1. The `client` initiates the processing by ingesting a graph dataset into the `allociner` through providing a HTTP URI that points to the location of a dataset - called the source - in [N-Triples](http://www.w3.org/2001/sw/RDFCore/ntriples/) format.
2. The `allociner` stream-reads the data from the client's source and allocates data chunks round-robin on a per-subject basis to `contributors`.
3. Once all `contributors` have loaded the data locally the `client` can issue a [query](http://www.w3.org/TR/rdf-sparql-query/), which is distributed to all `contributors`.
4. Each `contributor` locally executes the query and sends back the result to the `allociner` where it is combined and made available to the `client`.
Expand Down
22 changes: 22 additions & 0 deletions contributor/index.html
@@ -0,0 +1,22 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>cloudisus.contributor</title>
</head>

<body>
<header style="text-align: center; font-size: 120%">cloudisus.contributor</header>

<div>
<span id="list">list ...</span>
<div id="debug"></div>
</div>

<footer style="text-align: center; margin-top: 10px">- cloudisus.com (c) 2012 -</footer>
<script src="lib/jquery-1.7.1.min.js"></script>
<script src="lib/rdf_store_min.js"></script>
<script src="lib/cloudisus.contributor.js"></script>
</body>

</html>
15 changes: 15 additions & 0 deletions contributor/lib/cloudisus.contributor.js
@@ -0,0 +1,15 @@

$(document).ready(function(){
$('#list').click(function(event){
new rdfstore.Store({name:'sandbox', overwrite:true}, function(store){
store.execute('INSERT DATA { <http://example/person1> <http://xmlns.com/foaf/0.1/name> "Celia" }', function(result, msg){
store.registerDefaultProfileNamespaces();
$('#debug').append("<p>loaded data:</p><code>");
store.execute('SELECT * { ?s ?p ?o }', function(success,results) {
$('#debug').append(results[0].s.value + " " + results[0].p.value + " " + results[0].o.value);
});
$('#debug').append("</code>");
});
});
});
});
4 changes: 4 additions & 0 deletions contributor/lib/jquery-1.7.1.min.js

Large diffs are not rendered by default.

0 comments on commit c208f5a

Please sign in to comment.