|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSWAPGraph
A SSWAP Graph of a SSWAP Resource. A Graph is a data structure that allows
multiple alternative mappings to be associated with a single SSWAPResource
.
Because each SSWAP Graph can itself anchor one:one, one:many, many:one, or many:many
subject->object mappings, most cases use only a single SSWAP Graph.
To create a new SSWAPGraph
use SSWAPProtocol.createGraph()
.
SSWAPProtocol
,
SSWAPResource
Method Summary | |
---|---|
SSWAPResource |
getResource()
Gets the resource to which this graph belongs |
SSWAPSubject |
getSubject()
Gets the subject of the graph. |
java.util.Collection<SSWAPSubject> |
getSubjects()
Gets all the subjects of the graph. |
void |
setSubject(SSWAPSubject subject)
Sets the subject of the graph. |
void |
setSubjects(java.util.Collection<SSWAPSubject> subjects)
Sets the subjects of the graph. |
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, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Method Detail |
---|
SSWAPSubject getSubject()
java.util.Collection<SSWAPSubject> getSubjects()
void setSubject(SSWAPSubject subject)
subject
- the subjectvoid setSubjects(java.util.Collection<SSWAPSubject> subjects)
subjects
- a collection of subjects for this graphSSWAPResource getResource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |