WICOM
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Protected Attributes
QAPack Class Reference
Inheritance diagram for QAPack:
BerardiPack CrowdPack

Public Member Functions

 generate_queries ($json_diagram, $builder)
 
 analize_answer ($reasoner_query, $reasoner_answer, $owl2)
 
 incorporate_inferredSubs ($inferredSubs)
 
 incorporate_inferredCards ($inferredCards)
 
 get_equiv ($primitive)
 
 get_answer ()
 

Protected Attributes

 $query_generator = null
 
 $ans_analizer = null
 

Detailed Description

Abstract class for a pack of Queries generators and Answer analizer.

Each subclass is a Q/A Pack and must have one Queries generator and its respective Answer analizer.

Subclass Implementation

The constructor must create the queries generator and the answer analizer instances.

Member Function Documentation

analize_answer (   $reasoner_query,
  $reasoner_answer,
  $owl2 
)

Analize the reasoner results. Use get_answer() for retrieving the answer.

Parameters
$reasoner_queryA String with the reasoner input (query).
$reasoner_answerA String with the reasoner output (answer).
$owl2A String with the original OWL 2 ontology (owl2)
generate_queries (   $json_diagram,
  $builder 
)
Parameters
$json_diagrama String in JSON format with the diagram.
$buildera Wicom instance.
get_answer ( )

Retrieve the answer.

Ensure to call the analize_answer() before.

Returns
Wicom An answer object.
get_equiv (   $primitive)
incorporate_inferredCards (   $inferredCards)
incorporate_inferredSubs (   $inferredSubs)

Field Documentation

$ans_analizer = null
protected

Answer analizer object.

A subclass of AnswerAnalizer.

$query_generator = null
protected

Query generator object.

A subclass of QueryGenerator.


The documentation for this class was generated from the following file: