Permalink
Browse files

fixed export action error in markup demo; added turtle as available e…

…xport option;

git-svn-id: http://rdfquery.googlecode.com/svn/trunk@186 70de001c-9c6e-11dd-979b-47109e308e52
  • Loading branch information...
rene.kapusta@gmail.com
rene.kapusta@gmail.com committed Nov 18, 2010
1 parent ac4bb3f commit b2cd89270aae1d6401d6a6ed9709e06192310924
Showing with 21 additions and 2 deletions.
  1. +12 −2 demos/markup/markup.html
  2. +9 −0 demos/markup/markup.js
View
@@ -24,7 +24,17 @@
<script type="text/javascript" src="../../jquery.rdf.js"></script>
<script type="text/javascript" src="../../jquery.rdfa.js"></script>
<script type="text/javascript" src="../../jquery.rules.js"></script>
<!--<script type="text/javascript" src="../../jquery.ontology.js"></script>-->
<!--
<script type="text/javascript" src="../../jquery.ontology.js"></script>
-->
<!-- parsers for export actions -->
<script type="text/javascript" src="../../jquery.rdf.json.js"></script>
<script type="text/javascript" src="../../jquery.rdf.xml.js"></script>
<script type="text/javascript" src="../../jquery.rdf.turtle.js"></script>
<!-- markup, functions and rules -->
<script type="text/javascript" src="markup.js"></script>
</head>
<body>
@@ -82,4 +92,4 @@ <h2>Places</h2>
<li id="rdfxml">RDF/XML</li>
</ul>
</body>
</html>
</html>
View
@@ -821,6 +821,15 @@ $(document).ready(function () {
answer.dialog('open');
});
$('#turtle').bind("click", function () {
var turtle = $('#content').rdf().databank.dump({ format: 'text/turtle' }),
answer = $('#answer');
answer.dialog('option', 'title', 'TURTLE');
answer.dialog('option', 'width', '75%');
answer.text(turtle);
answer.dialog('open');
});
$('#statement').select();
});

0 comments on commit b2cd892

Please sign in to comment.