eu.larkc.jactr.core.chunk.rdf
Class BasicSymbolicChunkRdf

java.lang.Object
  extended by org.jactr.core.slot.UniqueSlotContainer
      extended by org.jactr.core.slot.NotifyingSlotContainer
          extended by org.jactr.core.chunk.basic.BasicSymbolicChunk
              extended by 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

Field Summary
 
Fields inherited from interface eu.larkc.jactr.core.chunk.rdf.ISymbolicChunkRdf
RDF_SLOT_NAME
 
Constructor Summary
BasicSymbolicChunkRdf(IChunk parentChunk, IChunkType ct)
           
 
Method Summary
 void addSlot(ISlot s)
           
 org.openrdf.model.Resource getChunkResource()
          Retrieve the RDF Resource that represents this Chunk.
 LabelledGroupOfStatements getRdfData()
          Retrieve the RDF Data stored in this Chunk.
 void setName(String name)
           
 void setRdfData(LabelledGroupOfStatements statements)
          Set the RDF Data to be the given LabelledGroupOfStatements
 
Methods inherited from class org.jactr.core.chunk.basic.BasicSymbolicChunk
canModify, dispose, encode, getAdapter, getChunkType, getName, getParentChunk, getSlot, isA, isAStrict, removeSlot, toString, valueChanged
 
Methods inherited from class org.jactr.core.slot.NotifyingSlotContainer
addListener, removeListener, setDelegateContainer
 
Methods inherited from class org.jactr.core.slot.UniqueSlotContainer
clear, getMutableSlots, getSlots, getSlots, hasSlot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.chunk.ISymbolicChunk
dispose, encode, getChunkType, getName, getParentChunk, isA, isAStrict
 
Methods inherited from interface org.jactr.core.slot.IUniqueSlotContainer
getSlot
 
Methods inherited from interface org.jactr.core.slot.ISlotContainer
getSlots, getSlots, removeSlot
 
Methods inherited from interface org.jactr.core.utils.IAdaptable
getAdapter
 

Constructor Detail

BasicSymbolicChunkRdf

public BasicSymbolicChunkRdf(IChunk parentChunk,
                             IChunkType ct)
Method Detail

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.