eu.larkc.core.data
Class NaturalLanguageDocumentUrl

java.lang.Object
  extended by eu.larkc.core.data.NaturalLanguageDocumentUrl
All Implemented Interfaces:
InformationSet, NaturalLanguageDocument, java.io.Serializable

public class NaturalLanguageDocumentUrl
extends java.lang.Object
implements NaturalLanguageDocument

Implementation of Natural Language Document which is stored as URL and retrieves the content when needed, once retrieved content is cached

Author:
Blaz Fortuna
See Also:
Serialized Form

Constructor Summary
NaturalLanguageDocumentUrl(java.lang.String _urlStr)
           
 
Method Summary
 java.lang.String getText()
           
 java.lang.String getUrl()
           
 SetOfStatements toRDF(SetOfStatements data)
          Serializes this object to SetOfStatements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalLanguageDocumentUrl

public NaturalLanguageDocumentUrl(java.lang.String _urlStr)
Method Detail

getText

public java.lang.String getText()
Specified by:
getText in interface NaturalLanguageDocument

getUrl

public java.lang.String getUrl()

toRDF

public SetOfStatements toRDF(SetOfStatements data)
Description copied from interface: InformationSet
Serializes this object to SetOfStatements.

Specified by:
toRDF in interface InformationSet
Parameters:
data - is stream to serialize this object to.
Returns:
reference to the set of statements that contains the serialized data.