|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSWAPProtocol
Common interface for all protocol graphs (RDG
, RIG
,
RRG
, etc.).
For more on the protocol, see SSWAP Protocol.
PDG
,
RDG
,
RIG
,
RRG
,
RQG
Method Summary | |
---|---|
SSWAPGraph |
createGraph()
Creates a graph that will be associated with this SSWAPModel. |
SSWAPObject |
createObject()
Creates an anonymous object (blank node) that will be associated with this SSWAPModel. |
SSWAPObject |
createObject(java.net.URI uri)
Creates an object of the resource URI that will be associated with this SSWAPModel. |
SSWAPSubject |
createSubject()
Creates an anonymous object (blank node) subject that will be associated with this SSWAPModel. |
SSWAPSubject |
createSubject(java.net.URI uri)
Creates a subject of the resource URI that will be associated with this SSWAPModel. |
java.util.Map<SSWAPGraph,java.util.Collection<SSWAPSubject>> |
getMappings()
Gets a map from SSWAPGraphs to SSWAPSubjects |
SSWAPProvider |
getProvider()
Gets the SSWAP provider for this canonical graph (or more exactly the SSWAPProvider of the SSWAPResource in the file). |
SSWAPResource |
getResource()
Gets the SSWAPResource in the file |
boolean |
isMultiGraphs()
Checks whether this graph contains multiple SSWAPGraphs |
boolean |
isPattern(MappingPattern pattern)
Checks whether this graph contains the specific mapping of subjects to objects. |
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 |
---|
SSWAPProvider getProvider()
SSWAPResource getResource()
java.util.Map<SSWAPGraph,java.util.Collection<SSWAPSubject>> getMappings()
boolean isPattern(MappingPattern pattern)
pattern
- the pattern to be checked
boolean isMultiGraphs()
SSWAPGraph createGraph()
Note: creating a graph does not assign it to the
SSWAPResource
; see
SSWAPResource.setGraph(SSWAPGraph)
variant methods to assign a
graph to the resource.
SSWAPSubject createSubject()
Note: creating a subject does not assign it to a SSWAPGraph
;
see SSWAPGraph.setSubject(SSWAPSubject)
and variant methods to assign a subject to a
graph.
SSWAPSubject createSubject(java.net.URI uri)
uri
is null
it creates an
anonymous subject (blank node).
Note: creating a subject does not assign it to a SSWAPGraph
;
see SSWAPGraph.setSubject(SSWAPSubject)
and variant methods to assign a subject to a
graph.
uri
- URI of the resource
SSWAPObject createObject()
Note: creating an object does not assign it to a
SSWAPSubject
; see
SSWAPSubject.addObject(SSWAPObject)
variant methods to assign an
object to a subject.
SSWAPObject createObject(java.net.URI uri)
uri
is null
it creates an
anonymous object (blank node).
Note: creating an object does not assign it to a
SSWAPSubject
; see
SSWAPSubject.addObject(SSWAPObject)
variant methods to assign an
object to a subject.
uri
- the URI of the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |