public class Document extends Object
KnowledgeChunk
extraction.
The following image shows the relations between the fields of this object and the fields of the wrapped database
table (fields with the same color represents a mapping between relational schema and the corresponding object).
DocumentExtraction
Modifier | Constructor and Description |
---|---|
protected |
Document()
Constructor needed for Hibernate compatibility.
|
|
Document(String url)
Main constructor of the
Document class. |
Modifier and Type | Method and Description |
---|---|
Set<DocumentExtraction> |
getBelongingExtractions()
Getter for the
KnowledgeChunk instances belonging to this
document. |
Set<KnowledgeChunk> |
getBelongingKnowledgeChunks()
This is just an overloading method for
getBelongingKnowledgeChunks(String ...) |
Set<KnowledgeChunk> |
getBelongingKnowledgeChunks(String... types)
This method is used to bypass the DocumentExtracion wrapper in order to obtain directly a Set of
KnowledgeChunk s. |
String |
getUri()
Getter for the URI field.
|
String |
getUrl()
Getter for the URL field.
|
boolean |
isLocal()
Getter for
isLocal field. |
void |
setLocal(boolean local)
Setter for
isLocal field. |
void |
setUri(String uri)
Setter for the URI field.
|
protected Document()
Constructor needed for Hibernate compatibility. Direct use is discouraged, use the
KnowledgeChunk.addDocument
instead.
KnowledgeChunk.addDocument(Document)
public Document(String url)
Main constructor of the Document
class.
url
- Identifier of this document. Usually represented by the URL of the
archive used for the kcs extraction or a string representing the used query.public Set<KnowledgeChunk> getBelongingKnowledgeChunks(String... types)
KnowledgeChunk
s.types
- the list of all the required kc types.types
param.public Set<KnowledgeChunk> getBelongingKnowledgeChunks()
getBelongingKnowledgeChunks(String ...)
.getBelongingKnowledgeChunks(String...)
public String getUrl()
Getter for the URL field.
public String getUri()
Getter for the URI field.
public void setUri(String uri)
Setter for the URI field.
uri
- the Uniform Resource Identifier for this document.public Set<DocumentExtraction> getBelongingExtractions()
KnowledgeChunk
instances belonging to this
document.Set
of all knowledge chunks connected to this document.public boolean isLocal()
Getter for isLocal
field.
public void setLocal(boolean local)
Setter for isLocal
field.