[svn] Another major forward integration of the student branch of the WebComposition/DGS: With revision 1228, CRUD events are supported on service level. I.e. each create, read, update or delete operation on the service (or it's lists) is stored within the meta data of the service. The vocabulary supported for the CRUD events is therefore defined as follows:

Exemplary meta data fore creating, updating, reading from and deleting an information store on a service running at 'http://localhost/dgs' would look like

<?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/"
        xmlns:dm="http://www.webcomposition.net/2008/02/dgs/meta/"
        xmlns:crud="http://www.webcomposition.net/2008/02/dgs/crud">
    <
rdf:Description rdf:about="http://localhost/dgs">
        <
crud:create rdf:resource="http://localhost/dgs/store" />
        <
crud:update rdf:resource="http://localhost/dgs/store" />
        <
crud:read rdf:resource="http://localhost/dgs/store" />
        <
crud:delete rdf:resource="http://localhost/dgs/store" />
    </
rdf:Description>
    ...
</rdf:RDF>

The CRUD event meta data can be obtained as by the /meta URL of the corresponding service.

Posted at Monday, April 28, 2008 9:38:34 PM (W. Europe Daylight Time, UTC+02:00) 
Comments [2] #      | 
Tuesday, April 29, 2008 7:31:16 AM (W. Europe Daylight Time, UTC+02:00)
Err, wasn't the idea to follow the REST paradigm? We had a similar, POST-only interface at MusicBrainz once, but as we were told, it's certainly not REST.
Tuesday, April 29, 2008 2:13:21 PM (W. Europe Daylight Time, UTC+02:00)
We are following a strict REST-like architecture stlye in our approach. We do not have a POST-only interface for the HTTP-interface. Rather POST,GET, PUT and DELETE HTTP verbs are used following the idea of HTTP as described in RFC 2616. You cannot use the CRUD vocabular to tell the service what to do. The meta data is created by the servic giving you meta information about what happend to the service. When requesting the meta data, it will look like the example above. Said this, there is now way to tell the service what to do unles you use the correct HTTP verbs.
All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
Copyright © 1995-2009 by Andreas Heil. aheil is a registered trademark of Andreas Heil. All rights reserved.
The opinions expressed herein are my own personal opinions and do not represent my employers' views in any way. Content and thoughts expressed on these pages and the weblog are subject to be changed. Out of date posts should not be considererd as my current thoughts and opinions.