info.sswap.api.model
Interface RRG

All Superinterfaces:
SSWAPDocument, SSWAPModel, SSWAPProtocol
All Known Implementing Classes:
RRGImpl

public interface RRG
extends SSWAPProtocol

A Resource Response Graph (RRG) is the return result of a SSWAP semantic web service. An RRG is returned to the invoking client by a SSWAP Resource in response to its invocation via a Resource Invocation Graph (RIG). RRGs are usually made by augmenting the incoming RIG with the mapped values (SSWAPObjects) satisfying the mapping "contract" as stated by the service's RDG. To create an RRG, see methods on RIG.

For more on the protocol, see SSWAP Protocol.

Author:
Blazej Bulka , Damian Gessler
See Also:
PDG, RDG, RIG, RQG, SSWAPResource, SSWAPSubject, SSWAPObject

Method Summary
 RIG createRIG(RDG rdg)
          Returns a new Resource Invocation Graph (RIG) based on the contents of this Resource Response Graph (RRG) suitable for the service represented by the Resource Description Graph (RRG).
 RQG createRQG()
           
 
Methods inherited from interface info.sswap.api.model.SSWAPProtocol
createGraph, createObject, createObject, createSubject, createSubject, getMappings, getProvider, getResource, isMultiGraphs, isPattern
 
Methods inherited from interface info.sswap.api.model.SSWAPDocument
createAnonymousDatatype, createAnonymousType, createIndividual, createIndividual, createIntersectionOf, createList, createLiteral, createTypedLiteral, createUnionOf, getDatatype, getPredicate, getType, newIndividual, newIndividual
 
Methods inherited from interface info.sswap.api.model.SSWAPModel
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate
 

Method Detail

createRIG

RIG createRIG(RDG rdg)
              throws DataAccessException,
                     java.lang.IllegalArgumentException
Returns a new Resource Invocation Graph (RIG) based on the contents of this Resource Response Graph (RRG) suitable for the service represented by the Resource Description Graph (RRG). This allows the output of one service to become the input to another service. Conversion involves transferring the SSWAPObjects of the RRG into SSWAPSubjects of the RIG and updating the SSWAPResource.

Parameters:
rdg - service for which to create the RIG
Returns:
RIG suitable for invocation
Throws:
DataAccessException - on inability to create a pre-transformed RIG for the RDG
java.lang.IllegalArgumentException - on inability to create a transformed RIG from this RRG

createRQG

RQG createRQG()
              throws DataAccessException,
                     java.lang.IllegalArgumentException
Throws:
DataAccessException
java.lang.IllegalArgumentException


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.