|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.impl.empire.model.ModelImpl
info.sswap.impl.empire.model.ElementImpl
info.sswap.impl.empire.model.IndividualImpl
info.sswap.impl.empire.model.NodeImpl
info.sswap.impl.empire.model.EmpireGeneratedNodeImpl
info.sswap.impl.empire.model.ResourceImpl
public abstract class ResourceImpl
Implementation of SSWAPResource. This abstract class contains several abstract methods whose implementations will be provided at run-time by Empire.
Nested Class Summary |
---|
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 | |
---|---|
private ResourceImpl |
originalResource
Set only for translated resources. |
Constructor Summary | |
---|---|
ResourceImpl()
|
Method Summary | |
---|---|
void |
dereference()
Dereferences this SSWAPResource. |
private void |
detachExistingGraphs()
|
abstract java.net.URI |
getAboutURI()
Gets the URI pointing to a human-readable description of this resource. |
SSWAPGraph |
getGraph()
Gets the SSWAP graph of the resource. |
java.util.Collection<SSWAPGraph> |
getGraphs()
Gets all the SSWAP graphs of the resource. |
abstract java.net.URI |
getIcon()
Gets the URI of the icon for this resource (if defined). |
abstract java.net.URI |
getInputURI()
Gets the URI pointing to a human-readable user interface for this resource. |
abstract java.net.URI |
getMetadata()
Gets the URI containing the machine-readable metadata for this resource. |
abstract java.lang.String |
getName()
Gets the name of the resource. |
abstract java.lang.String |
getOneLineDescription()
Gets one line description of the resource. |
abstract java.util.List<GraphImpl> |
getOperatesOnEmpireList()
Gets a list of SSWAPGraph implementations that are all connected to this SSWAPResource by sswap:operatesOn predicate. |
java.util.List<GraphImpl> |
getOperatesOnList()
|
ResourceImpl |
getOriginalResource()
|
abstract java.net.URI |
getOutputURI()
|
abstract ProviderImpl |
getProvidedBy()
|
SSWAPProvider |
getProvider()
Gets the object describing the provider of this resource. |
RDG |
getRDG()
Gets the RDG where this resource is defined. |
private boolean |
isWithinRQG()
Checks whether this SSWAPResource is within an RQG (this affects the validation process). |
abstract void |
setAboutURI(java.net.URI aboutURI)
Sets the URI pointing to a human-readable description of this resource. |
(package private) void |
setDefaultParameterValues(IndividualImpl rdgIndividual)
Sets the default parameter values for this individual based on the information from the individual in an RDG. |
void |
setGraph(SSWAPGraph graph)
Sets the SSWAPGraph for this resource. |
void |
setGraphs(java.util.Collection<SSWAPGraph> graphs)
Sets the SSWAPGraphs for this resource. |
abstract void |
setIcon(java.net.URI icon)
Sets the URI of the icon for this resource |
abstract void |
setInputURI(java.net.URI inputURI)
Sets the URI pointing to a human-readable user interface for this resource. |
abstract void |
setMetadata(java.net.URI metadata)
Sets the URI pointing to the machine-readable metadata for this resource. |
abstract void |
setName(java.lang.String name)
Sets the name of the resource. |
abstract void |
setOneLineDescription(java.lang.String oneLineDescription)
Sets one line description of the resource. |
abstract void |
setOperatesOnEmpireList(java.util.List<GraphImpl> graphImpls)
Sets a list of SSWAPGraph implementations that will all be connected to this SSWAPResource by sswap:operatesOn predicate. |
(package private) void |
setOriginalResource(ResourceImpl originalResource)
|
abstract void |
setOutputURI(java.net.URI outputURI)
|
abstract void |
setProvidedBy(ProviderImpl provider)
|
void |
setProvider(SSWAPProvider provider)
Sets the provider for this resource. |
void |
validate()
Verifies whether the underlying RDF data conforms to SSWAP syntax and requirements. |
void |
validateProvider()
|
Methods inherited from class info.sswap.impl.empire.model.EmpireGeneratedNodeImpl |
---|
ensureProperView, ensureProperView, isEmpireGenerated, listFromImpl, listToImpl, persist, refresh, setSourceModel, toListImpl |
Methods inherited from class info.sswap.impl.empire.model.NodeImpl |
---|
asSSWAPGraph, asSSWAPObject, asSSWAPProvider, asSSWAPResource, asSSWAPSubject, getID, isDereferenced, isSSWAPGraph, isSSWAPObject, isSSWAPProvider, isSSWAPResource, isSSWAPSubject |
Methods inherited from class info.sswap.impl.empire.model.IndividualImpl |
---|
addComment, addIgnoredProperty, addIgnoredType, addLabel, addProperty, addProperty, addProperty, addProperty, addProperty, addType, asIndividual, assertType, clearProperty, clearProperty, closeWorld, equals, getDeclaredType, getDeclaredTypes, getIgnoredProperties, getIgnoredTypes, getInferredIndividual, getProperties, getProperties, getProperty, getType, getTypes, hashCode, hasValue, hasValue, isCompatibleWith, isIndividual, isOfType, removeProperty, removeProperty, removeType, setProperty, setProperty, setProperty, setProperty, setProperty, setSourceModel |
Methods inherited from class info.sswap.impl.empire.model.ElementImpl |
---|
asBoolean, asDouble, asInteger, asList, asLiteral, asString, getComment, getJenaResource, getLabel, isAnonymous, isList, isLiteral |
Methods inherited from class info.sswap.impl.empire.model.ModelImpl |
---|
addImport, assertModel, assertSourceModel, checkProfile, dereference, doClosure, getAllDependentObjects, getDependentObject, getDocument, getExpressivity, getImports, getInputStream, getNsPrefixMap, getReasoningService, getSourceModel, getTypeSignature, getURI, hasSourceModel, hasSourceModelWithEntityManager, rdfIdEquals, rdfIdHashCode, refreshSiblings, removeImport, removeNsPrefix, serialize, serialize, setDereferenced, setNsPrefix, 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.SSWAPNode |
---|
asSSWAPGraph, asSSWAPObject, asSSWAPProvider, asSSWAPResource, asSSWAPSubject, getID, isSSWAPGraph, isSSWAPObject, isSSWAPProvider, isSSWAPResource, isSSWAPSubject |
Methods inherited from interface info.sswap.api.model.SSWAPIndividual |
---|
addProperty, addProperty, addProperty, addProperty, addType, clearProperty, getDeclaredType, getDeclaredTypes, getInferredIndividual, getProperties, getProperties, getProperty, getType, getTypes, hasValue, hasValue, isAnonymous, isCompatibleWith, isOfType, removeProperty, removeProperty, removeType, setProperty, setProperty, setProperty, setProperty |
Methods inherited from interface info.sswap.api.model.SSWAPElement |
---|
addComment, addLabel, asBoolean, asDouble, asIndividual, asInteger, asList, asLiteral, asString, getComment, getLabel, isIndividual, isList, isLiteral |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
addImport, checkProfile, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix |
Methods inherited from interface com.clarkparsia.empire.SupportsRdfId |
---|
getRdfId, setRdfId |
Field Detail |
---|
private ResourceImpl originalResource
Constructor Detail |
---|
public ResourceImpl()
Method Detail |
---|
public ResourceImpl getOriginalResource()
void setOriginalResource(ResourceImpl originalResource)
public void dereference() throws DataAccessException
dereference
in interface SSWAPModel
dereference
in class NodeImpl
DataAccessException
- when trying to access the underlying data source while dereferencingpublic abstract java.lang.String getName()
SSWAPResource
getName
in interface SSWAPResource
public abstract void setName(java.lang.String name)
SSWAPResource
setName
in interface SSWAPResource
name
- the name of the resource (must not be null).public abstract java.lang.String getOneLineDescription()
SSWAPResource
getOneLineDescription
in interface SSWAPResource
public abstract void setOneLineDescription(java.lang.String oneLineDescription)
SSWAPResource
setOneLineDescription
in interface SSWAPResource
oneLineDescription
- the new one line description of the resource, or null if the current description is to be removed.public abstract java.net.URI getAboutURI()
SSWAPResource
getAboutURI
in interface SSWAPResource
public abstract void setAboutURI(java.net.URI aboutURI)
SSWAPResource
setAboutURI
in interface SSWAPResource
aboutURI
- URI pointing to a human-readable description of this resource, or null if there is no such description
for the resource.public abstract java.net.URI getMetadata()
SSWAPResource
getMetadata
in interface SSWAPResource
public abstract void setMetadata(java.net.URI metadata)
SSWAPResource
setMetadata
in interface SSWAPResource
metadata
- URI pointing to a machine-readable metadata for this resource, or null if there is no metadata for
this resource.public abstract java.net.URI getInputURI()
SSWAPResource
getInputURI
in interface SSWAPResource
public abstract void setInputURI(java.net.URI inputURI)
SSWAPResource
setInputURI
in interface SSWAPResource
inputURI
- URI pointing to a human-readable interface for this resource, or null if there is no such interface
for this resource.public abstract java.net.URI getOutputURI()
getOutputURI
in interface SSWAPResource
public abstract void setOutputURI(java.net.URI outputURI)
setOutputURI
in interface SSWAPResource
public abstract java.net.URI getIcon()
SSWAPResource
getIcon
in interface SSWAPResource
public abstract void setIcon(java.net.URI icon)
SSWAPResource
setIcon
in interface SSWAPResource
icon
- the URI of the icon or nullpublic abstract ProviderImpl getProvidedBy()
public abstract void setProvidedBy(ProviderImpl provider)
public SSWAPProvider getProvider()
SSWAPResource
getProvider
in interface SSWAPResource
public void setProvider(SSWAPProvider provider)
SSWAPResource
setProvider
in interface SSWAPResource
provider
- a SSWAPProvider object.public SSWAPGraph getGraph()
SSWAPResource
getGraph
in interface SSWAPResource
public void setGraph(SSWAPGraph graph)
SSWAPResource
setGraph
in interface SSWAPResource
graph
- the graph to be set for this resourcepublic abstract java.util.List<GraphImpl> getOperatesOnEmpireList()
public java.util.List<GraphImpl> getOperatesOnList()
public abstract void setOperatesOnEmpireList(java.util.List<GraphImpl> graphImpls)
graphImpls
- a list of SSWAPGraph implementations.public java.util.Collection<SSWAPGraph> getGraphs()
SSWAPResource
getGraphs
in interface SSWAPResource
public void setGraphs(java.util.Collection<SSWAPGraph> graphs)
SSWAPResource
setGraphs
in interface SSWAPResource
graphs
- a collection of SSWAPGraphsprivate void detachExistingGraphs()
private boolean isWithinRQG()
public void validate() throws ValidationException
SSWAPModel
validate
in interface SSWAPModel
validate
in class ModelImpl
ValidationException
- if the data violates SSWAP syntax or requirementspublic void validateProvider() throws ValidationException
validateProvider
in interface SSWAPResource
ValidationException
public RDG getRDG() throws DataAccessException
SSWAPResource
getRDG
in interface SSWAPResource
DataAccessException
- if it is necessary to retrieve the whole RDG and an error should occur while accessing itvoid setDefaultParameterValues(IndividualImpl rdgIndividual)
IndividualImpl
setDefaultParameterValues
in class IndividualImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |