net.fortytwo.sesametools.ldserver.query
Class SparqlQueryRepresentation

java.lang.Object
  extended by org.restlet.representation.Variant
      extended by org.restlet.representation.RepresentationInfo
          extended by org.restlet.representation.Representation
              extended by org.restlet.representation.StreamRepresentation
                  extended by org.restlet.representation.OutputRepresentation
                      extended by net.fortytwo.sesametools.ldserver.query.SparqlQueryRepresentation

public class SparqlQueryRepresentation
extends org.restlet.representation.OutputRepresentation

A SPARQL query result as an HTTP entity.

Author:
Joshua Shinavier (http://fortytwo.net)

Field Summary
 
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
 
Constructor Summary
SparqlQueryRepresentation(String query, org.openrdf.sail.Sail sail, int limit, org.restlet.data.MediaType mediaType)
           
 
Method Summary
 void write(OutputStream out)
           
 
Methods inherited from class org.restlet.representation.OutputRepresentation
getChannel, getStream
 
Methods inherited from class org.restlet.representation.StreamRepresentation
getReader, write, write
 
Methods inherited from class org.restlet.representation.Representation
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
 
Methods inherited from class org.restlet.representation.RepresentationInfo
getModificationDate, getTag, setModificationDate, setTag
 
Methods inherited from class org.restlet.representation.Variant
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SparqlQueryRepresentation

public SparqlQueryRepresentation(String query,
                                 org.openrdf.sail.Sail sail,
                                 int limit,
                                 org.restlet.data.MediaType mediaType)
                          throws Exception
Throws:
Exception
Method Detail

write

public void write(OutputStream out)
           throws IOException
Specified by:
write in class org.restlet.representation.Representation
Throws:
IOException


Copyright © 2013. All Rights Reserved.