Package it.unimi.dico.islab.idbs2.kc

Contains all necessary classes to represent and manage a KnowledgeChunk structure connected to the kc database.

See:
          Description

Class Summary
Document Representation of the source of a KnowledgeChunk extraction.
DocumentExtraction Representation of an extraction process as a link between a KnowledgeChunk and a Document.
KnowledgeChunk Main class of the kc framework, representation of a knowledge chunk.
Predicate This class represents a property value (or an inferred property value) attached to a KnowledgeChunk.
Term Representation of a keyword of a KnowledgeChunk with associated relevance and frequency.
Type Representation of a class of a KnowledgeChunk: could be an asserted class or an excluded class.
 

Package it.unimi.dico.islab.idbs2.kc Description

Contains all necessary classes to represent and manage a KnowledgeChunk structure connected to the kc database.

Usage as a Java object library

The main class of this package is the KnowledgeChunk class, exposing methods for Knowledge Chunk management. This class represents a unit of knowledge (everything that can be represented with an URI is a KnowledgeChunk) extracted from structured data repositories (RDF, Linked Data...) and contains information about the source of the extraction (classes Document and DocumentExtraction), the properties of the current kc, its types and its terminological equipment.

A better explanation is needed for the Predicate class: this is a representation of a path of properties in a knowledge graph where belongKc is the starting node, p1 is the first edge (property) in the path, pn is the last property and valueKc is the last object in the path (if the last object is a literal then valueKc will be empty and the value will be in the value field).

Usage as an Hibernate wrapper library

All represented classes are associated with an xml mapping file (contained in the same package) defining database mappings for Hibernate purposes. The subpackage session contains all necessary classes to manage the database session (take a look at the package description for more information).

The document config/kcDatabaseConfiguration.xml contains the database connection paremeters (such as URL, database name and database type).