Interaktion ajax-editor und server
Der discobits editor braucht standartmässig PUT und GET um die einzelnen Elemente eines Dokuments auf den Server zu speicher respektive zu holen. Die URI ist dabei die des Elements. Dieses verhalten kann überschrieben werden, GVS zum Beispiel überschreibt dieses Verhalten, s. http://jena.svn.sourceforge.net/viewvc/jena/gvs/trunk/src/META-INF/web/application/scripts/gvs-disco.js?view=markup&sortdir=down\\
URIs
Should it be possible to edit Discobits with a URI that is not handled by the webapp presenting the editor?
Using any graph
Discobits editor allows you to use other graphs instead of content.graph (the default setting) to store resources. However, it does not offer a mechanism to create a graph. You have to create it yourself, e.g.,
- Create a file, name it for example file.rdf with a valid content, e.g.,
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="http://example.org/"> <dc:title>Example</dc:title> </rdf:Description> </rdf:RDF>
- Upload the file using curl put request and give the graph a name, e.g., http://tpf.localhost/foo.graph
$ curl -uadmin:admin -T file.rdf -H "Content-type: application/rdf+xml" http://localhost:8282/graph?name=http://tpf.localhost/foo.graph
After that you can use this graph in Discobits editor to store resources.