Permalink
Browse files

added support of save and load via Web storage

  • Loading branch information...
1 parent 3580569 commit 7e05c8d67bab66017ed89cf9c94a19fcc90242c0 @mhausenblas committed Jul 28, 2012
Showing with 585 additions and 5 deletions.
  1. +7 −1 index.html
  2. +487 −0 json2.js
  3. +17 −0 style.css
  4. +74 −4 turtled.js
View
@@ -30,17 +30,22 @@
<span id="ex2">Authorship (Dublin Core) </span>
</div>
+ <div id="currententry"></div>
<textarea id="tinput" rows="17" cols="70" title="Enter some valid RDF Turtle here and hit the 'Visualise!' button below ...">
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <http://schema.org/> .
@prefix : <http://example.org/#> .
+
+:x a schema:Thing .
+
</textarea>
<div id="in-ctrl">
<button id="vis">Visualise!</button>
- <button id="save">Save</button>
+ <button id="save">Save ...</button>
+ <span id="entries"></span>
<div id="status">Status: waiting for user input</div>
</div>
</div>
@@ -50,6 +55,7 @@
<script src="jquery-1.7.2.min.js"></script>
<script src="vivagraph.min.js"></script>
<script src="rdf_store_min.js"></script>
+ <script src="json2.js"></script>
<script src="turtled.js"></script>
</body>
</html>
Oops, something went wrong.

0 comments on commit 7e05c8d

Please sign in to comment.