Posting Atom Entries to Queso from Java(tm)
On Monday, July 17, Elias Torres, Wing Yung and I, released an openly available version of an Atom Server, called Queso. Even though we have been working on the project for just over a month, it has been a neat experience working closely with both Wing and Elias together for the first time. We maintained a tight build cycle with (hopefully) extensive test coverage that will enable us to hunt down all the bugs the Atom community finds on our server. The project could not have been achieved without the help of Matt Roy, providing constant support for the Boca RDF database. Wing and Elias include very nice descriptions of the service on their blogs so you can visit them for the overview. This short post illustrates, via a simple example, how to post a new Atom Entry to our Queso Atom Service (http://abdera.watson.ibm.com:8080/atom).
Even though the Queso Atom Server uses an RDF database with versioning and named graph support under the covers, the REST-ful interface to the server conforms to the standard Atom Publishing Protocol. The Apache Abdera Project provides a nice API for interacting with Atom servers in Java(tm). This example shows how to use the Abdera Atom Client and Abdera Atom Model to post entries to our Queso Atom Server. The code is fairly self explanatory. To run the code, download the zipped Eclipse project. It contains all the necessary dependant libraries. If you are not an Eclipse user, you can run the main program PostEntry located in lib/quesoexample.jar, making sure that all the jars in the lib folder are in your classpath.
import java.util.Date;
import org.apache.abdera.examples.appclient.AtomClient;
import org.apache.abdera.factory.Factory;
import org.apache.abdera.model.Entry;
public class PostEntry {
public static void main(String[] args) throws Exception {
Entry entry = Factory.INSTANCE.newEntry();
// the entry ID will be replaced by the server
// so it doesn't matter if it isn't unique
entry.setId("urn:lsid:example.org:queso:entry1", false);
entry.setTitle("My First Queso Post");
entry.setUpdated(new Date());
entry.addAuthor("Ben");
entry.setContent("Queso melds together the Semantic Web" +
" and Web 2.0 like cheese fuses the chicken" +
" and beans in a Boca Grande Burrito");
AtomClient client = new AtomClient();
Entry postedEntry = client.post(
"http://abdera.watson.ibm.com:8080/atom/example", entry).getRoot();
System.err.println(
"**Queso Example** Posted entry, the new id is: " + postedEntry.getId());
}
}
July 30th, 2006 at 9:56 pm
[…] Into the Woods » Blog Archive » Posting Atom Entries to Queso from Java(tm) […]
November 28th, 2007 at 11:42 pm
backseat bangers backseatbangers…
hottest backseat bangers backseatbangers…
December 4th, 2007 at 1:53 am
All Internal…
all internal…
December 7th, 2007 at 12:04 pm
http://abdera.watson.ibm.com:8080/atom did not work?
March 19th, 2008 at 11:04 am
paxil problems paxil social
May 16th, 2008 at 8:04 am
thereupon try wait preface some advanced inside of levitra at sea Viagrums because old learn humanities well levitra than hang down right forbearance
August 17th, 2008 at 4:44 am
Interesting - but being java-based installation would be a pain
is there anything similar in php or perl?
April 3rd, 2009 at 10:22 am
Microsoft Exchange Server 2003 Enterpfise
(nero image) 373.59 Mb
msexchserv2003ent.nrg
Enterprise Edition Features
The following feature enhancements are included in Exchange Server 2003 Enterprise Edition:
* Exchange 2003 Enterprise Edition supports up to four storage groups, with each storage group having up to five databases.
* Database size is limited only by hardware (with a maximum size of 16 terabytes).
* Exchange 2003 Enterprise Edition can be clustered on the Microsoft Cluster Server cluster service.
* The X.400 connector is included.
April 18th, 2009 at 4:14 pm
informative piece there, Thanks for this.its wonderfull to see someone with a like mind.
September 16th, 2009 at 11:41 am
I to like Your editing.