eu.larkc.jactr.core.chunk.rdf
Class BasicSymbolicChunkRdf
java.lang.Object
org.jactr.core.slot.UniqueSlotContainer
org.jactr.core.slot.NotifyingSlotContainer
org.jactr.core.chunk.basic.BasicSymbolicChunk
eu.larkc.jactr.core.chunk.rdf.BasicSymbolicChunkRdf
- All Implemented Interfaces:
- ISymbolicChunkRdf, ISymbolicChunk, INotifyingSlotContainer, ISlotContainer, IUniqueSlotContainer, IAdaptable
- Direct Known Subclasses:
- BasicSymbolicChunkLarKC
public class BasicSymbolicChunkRdf
- extends BasicSymbolicChunk
- implements ISymbolicChunkRdf
Default Symbolic RDF-chunk implementation
- Author:
- Martijn Brakenhoff
Methods inherited from class org.jactr.core.chunk.basic.BasicSymbolicChunk |
canModify, dispose, encode, getAdapter, getChunkType, getName, getParentChunk, getSlot, isA, isAStrict, removeSlot, toString, valueChanged |
BasicSymbolicChunkRdf
public BasicSymbolicChunkRdf(IChunk parentChunk,
IChunkType ct)
setName
public void setName(String name)
- Specified by:
setName
in interface ISymbolicChunk
- Overrides:
setName
in class BasicSymbolicChunk
getRdfData
public LabelledGroupOfStatements getRdfData()
- Description copied from interface:
ISymbolicChunkRdf
- Retrieve the RDF Data stored in this Chunk.
- Specified by:
getRdfData
in interface ISymbolicChunkRdf
- Returns:
- the data stored in this chunk.
setRdfData
public void setRdfData(LabelledGroupOfStatements statements)
- Description copied from interface:
ISymbolicChunkRdf
- Set the RDF Data to be the given LabelledGroupOfStatements
- Specified by:
setRdfData
in interface ISymbolicChunkRdf
- Parameters:
statements
- The labelled group of statements that
contain information for this chunk.
addSlot
public void addSlot(ISlot s)
- Specified by:
addSlot
in interface ISlotContainer
- Overrides:
addSlot
in class BasicSymbolicChunk
getChunkResource
public org.openrdf.model.Resource getChunkResource()
- Description copied from interface:
ISymbolicChunkRdf
- Retrieve the RDF Resource that represents this Chunk.
- Specified by:
getChunkResource
in interface ISymbolicChunkRdf
- Returns:
- the chunk-resource.