|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dico.islab.idbs2.kc.Document
public class Document
Representation of the source of a 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| Constructor Summary | |
|---|---|
protected |
Document()
Constructor needed for Hibernate compatibility. |
|
Document(String url)
Main constructor of the Document class. |
| Method Summary | |
|---|---|
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
KnowledgeChunks. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public Set<KnowledgeChunk> getBelongingKnowledgeChunks(String... types)
KnowledgeChunks.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||