view tutorial/index.html @ 1:2d859f5e3676

ClioPatria instances now have path prefixes that match those of the instance within the main server, so that internal links work
author Chris Cannam
date Tue, 31 Oct 2017 11:47:10 +0000
parents 1e44d666ced1
children
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>DBTune - Music-Related RDF</title>

<style type="text/css" media="all">
        @import url(style.css);
</style>
<link rel="meta" type="application/rdf+xml" title="FOAF" href="http://moustaki.org/foaf.rdf" />
</head>

<body>

<h1 style="font-size: 250%;">RDF posting service</h1>

<h2>Description</h2>
<p>This service is just a small hack, allowing to post RDF and serve
it from this server. This is just intended for tutorial purposes.
</p>
<p>
To use it, you can can fill in the form below, or use <b>curl</b>
at <b>http://dbtune.org/tutorial/dataset</b>, posting two fields: <b>name</b>
and <b>turtle</b>.
</p>

<h2>Post it!</h2>
<form method="POST" action="http://dbtune.org/tutorial/dataset">
<p>
<select name="type">
<option value="ttl">RDF/Turtle</option>
<option value="rdf">RDF/XML</option>
</select>
</p>
<p>
<textarea name="rdf" rows="30" cols="80">
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt;.
@prefix owl: &lt;http://www.w3.org/2002/07/owl#&gt;.
@prefix tutorial: <http://dbtune.org/tutorial/resource/> .
@prefix : &lt;#&gt;.

tutorial:sinclp01
    a foaf:Person;
    foaf:name "Patrick Sinclair";
    foaf:knows tutorial:humfrn01, tutorial:raimoy01;
    foaf:interest <http://dbpedia.org/resource/Francesinha>, <http://dbpedia.org/resource/Semantic_Web> .
</textarea>
</p>
<p>
<input type="submit" name="press" value=" OK "/>
</p>
</form>

<h2>Query it!</h2>
<form method="POST" action="http://dbtune.org/tutorial/sparql/">
<p>
<textarea name="query" rows="30" cols="80">
SELECT DISTINCT ?t
WHERE
{ [] a ?t }
</textarea>
</p>
<p>
<input type="submit" name="press" value=" OK "/>
</p>
</form>

</body>

</html>