Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mhausenblas
committed
Jan 14, 2012
1 parent
7fa1e78
commit c208f5a
Showing
5 changed files
with
715 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>"); | ||
}); | ||
}); | ||
}); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.