info.sswap.impl.empire.model
Class RDGImpl

java.lang.Object
  extended by info.sswap.impl.empire.model.ModelImpl
      extended by info.sswap.impl.empire.model.SourceModelImpl
          extended by info.sswap.impl.empire.model.ProtocolImpl
              extended by info.sswap.impl.empire.model.RDGImpl
All Implemented Interfaces:
com.clarkparsia.empire.SupportsRdfId, RDG, SSWAPDocument, SSWAPModel, SSWAPProtocol, SourceModel

public abstract class RDGImpl
extends ProtocolImpl
implements RDG


Nested Class Summary
 
Nested classes/interfaces inherited from class info.sswap.impl.empire.model.ProtocolImpl
ProtocolImpl.DefaultMappingValidator<T extends SSWAPNode>, ProtocolImpl.MappingValidator<T>
 
Nested classes/interfaces inherited from interface com.clarkparsia.empire.SupportsRdfId
com.clarkparsia.empire.SupportsRdfId.BNodeKey, com.clarkparsia.empire.SupportsRdfId.RdfKey<T>, com.clarkparsia.empire.SupportsRdfId.URIKey
 
Field Summary
 
Fields inherited from class info.sswap.impl.empire.model.SourceModelImpl
SSWAP_ONTOLOGY_URI
 
Constructor Summary
RDGImpl()
           
 
Method Summary
 java.lang.String getGraphType()
          Gets the human readable name of the particular graph implementation (e.g., RDG, RQG, RIG, RRG) This method is mostly provided to generate meaningful messages in exceptions (rather than to include class name, which may not be familiar to most users)
 RIG getRIG()
          Gets the RIG that can be used to invoke the service described in this RDG (after setting the values for the properties).
 RIG getRIG(java.io.InputStream is)
          Creates a RIG object based on the serialized RIG (e.g., sent by a client of a service).
 
Methods inherited from class info.sswap.impl.empire.model.ProtocolImpl
anonymizeSSWAPNodes, closeWorld, createCopyObject, createGraph, createObject, createObject, createResource, createSubject, createSubject, dereference, doClosure, getGraph, getMappings, getObject, getObjectMappings, getObjectMappingValidator, getPattern, getProvider, getResource, getResourceMappingValidator, getResources, getSubject, getSubjectMappings, getSubjectMappingValidator, getTranslationMap, isMultiGraphs, isPattern, needsClosedWorldForValidation, needsDefaultParametersSet, serialize, setMatchingGraphs, supportsTranslation, uncloseWorld, validate, validate, validateAgainstRDG, validatesObjects, validatesResourceURIMatch
 
Methods inherited from class info.sswap.impl.empire.model.SourceModelImpl
addDependentModel, addImport, checkProfile, createAnonymousDatatype, createAnonymousRestrictionType, createAnonymousType, createIndividual, createIndividual, createIntersectionOf, createList, createLiteral, createTypedLiteral, createUnionOf, dereference, dereference, dereference, equals, getClosedWorldModel, getClosureModel, getDatatype, getDependentModel, getDependentModel, getDependentModels, getEntityManager, getImports, getInferredABox, getInferredTBox, getIntersectionType, getMaxClosureBytes, getMaxClosureThreads, getMaxClosureTime, getModel, getModelResolver, getNsPrefixMap, getPredicate, getReasoningService, getType, hashCode, hasJenaModel, isClosureEnabled, isOwlDlRequired, isValueValidationEnabled, newIndividual, newIndividual, persist, refresh, removeDependentModel, removeImport, removeNsPrefix, resetReasoningService, serialize, setClosureEnabled, setClosureModel, setEntityManager, setMaxClosureBytes, setMaxClosureThreads, setMaxClosureTime, setModel, setNsPrefix, setOwlDlRequired, setValueValidationEnabled
 
Methods inherited from class info.sswap.impl.empire.model.ModelImpl
assertModel, assertSourceModel, getAllDependentObjects, getDependentObject, getDocument, getExpressivity, getInputStream, getSourceModel, getTypeSignature, getURI, hasSourceModel, hasSourceModelWithEntityManager, isDereferenced, rdfIdEquals, rdfIdHashCode, refreshSiblings, setDereferenced, setSourceModel, setURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
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
 
Methods inherited from interface info.sswap.impl.empire.model.SourceModel
isDereferenced
 
Methods inherited from interface com.clarkparsia.empire.SupportsRdfId
getRdfId, setRdfId
 

Constructor Detail

RDGImpl

public RDGImpl()
Method Detail

getRIG

public RIG getRIG()
           throws DataAccessException
Description copied from interface: RDG
Gets the RIG that can be used to invoke the service described in this RDG (after setting the values for the properties).

Specified by:
getRIG in interface RDG
Returns:
the RIG created based on this RDG
Throws:
DataAccessException - if an error should occur while accessing the data in the RDG to create the RIG

getRIG

public RIG getRIG(java.io.InputStream is)
           throws DataAccessException,
                  ValidationException
Description copied from interface: RDG
Creates a RIG object based on the serialized RIG (e.g., sent by a client of a service). The RIG should be an invocation of the service described in this RDG, and this method validates that this is the case.

Specified by:
getRIG in interface RDG
Parameters:
is - the input stream to read the RIG
Returns:
the created RIG
Throws:
DataAccessException - if an error should occur while reading the data (either an I/O error or problem parsing the data)
ValidationException - if the submitted data is not a valid RIG for this service.

getGraphType

public java.lang.String getGraphType()
Description copied from class: ProtocolImpl
Gets the human readable name of the particular graph implementation (e.g., RDG, RQG, RIG, RRG) This method is mostly provided to generate meaningful messages in exceptions (rather than to include class name, which may not be familiar to most users)

Specified by:
getGraphType in class ProtocolImpl
Returns:
the name of this protocol graph implementation


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