org.eaglei.repository.servlet
Class Graph

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eaglei.repository.servlet.RepositoryServlet
              extended by org.eaglei.repository.servlet.Graph
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Graph
extends RepositoryServlet

Load and dump named graphs <-> serialized RDF.

Version:
$Id: $
Author:
Larry Stone
See Also:
Serialized Form

Nested Class Summary
static class Graph.Action
           
 
Constructor Summary
Graph()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           GET the contents of a graph Query Args: - name = URI of graph, required (can be "all") - format = MIME type (overrides content-type) - inferred -- flag, if present, include inferred triples - force -- secret option, if set, allows use of non-quad format with ALL Result: HTTP status 200 for success, 400 or 4xx or 5xx otherwise.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           POST or PUT the contents of a graph Query Args: - name = URI of graph, required (can be "all") - action = (add|replace|delete) - required, how to process triples - format = MIME type (overrides content-type) - uri = remote URL from which to obtain serialization - content = immediate serlialized RDF content to load - label = new value for rdfs:label property - type = NamedGraphType to record in metadata (ontology, metadata, etc..) Result: HTTP status 200 for success, 400 or 4xx or 5xx otherwise.
protected  void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           PUT the contents of a graph Query Args: - name = URI of graph, required (can be "all") - action = (add|replace|delete) - required, how to process triples - format = MIME type (overrides content-type) - uri = remote URL from which to obtain serialization - (PUT content is seralized RDF) Result: HTTP status 200 for success, 400 or 4xx or 5xx otherwise.
 
Methods inherited from class org.eaglei.repository.servlet.RepositoryServlet
getExactParameter, getParameter, getParameterAsBoolean, getParameterAsKeyword, getParameterAsReader, getParameterAsURI, getParameterContentType, getParameters, isParameterPresent, redirectToJSP, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
POST or PUT the contents of a graph Query Args: - name = URI of graph, required (can be "all") - action = (add|replace|delete) - required, how to process triples - format = MIME type (overrides content-type) - uri = remote URL from which to obtain serialization - content = immediate serlialized RDF content to load - label = new value for rdfs:label property - type = NamedGraphType to record in metadata (ontology, metadata, etc..) Result: HTTP status 200 for success, 400 or 4xx or 5xx otherwise.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPut

protected void doPut(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
PUT the contents of a graph Query Args: - name = URI of graph, required (can be "all") - action = (add|replace|delete) - required, how to process triples - format = MIME type (overrides content-type) - uri = remote URL from which to obtain serialization - (PUT content is seralized RDF) Result: HTTP status 200 for success, 400 or 4xx or 5xx otherwise.

Overrides:
doPut in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
GET the contents of a graph Query Args: - name = URI of graph, required (can be "all") - format = MIME type (overrides content-type) - inferred -- flag, if present, include inferred triples - force -- secret option, if set, allows use of non-quad format with ALL Result: HTTP status 200 for success, 400 or 4xx or 5xx otherwise.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.