Public Member Functions | |
generate_answer ($query, $answer) | |
get_responses () | |
filter_xml () | |
analize () | |
Public Member Functions inherited from AnsAnalizer | |
__construct () | |
generate_answer ($query, $owl_answer, $owl2) | |
get_answer () | |
get_owl2_from_answer () | |
analize () | |
get_responses () | |
Data Fields | |
const | ANSWERS_MAP |
const | IsClassSatisfiable |
Protected Member Functions | |
find_classname () | |
next_tag ($in_query=true) | |
next_important_tag ($in_query=true) | |
Protected Attributes | |
$query_reader = null | |
$answer_reader = null | |
Protected Attributes inherited from AnsAnalizer | |
$answer = null | |
$owllink_responses = null | |
$owllink_queries = null | |
analize | ( | ) |
filter_xml | ( | ) |
Remove comments and other tags, and create an array with the most important tags and its answer.
|
protected |
Search for the next owl:Class
tag and return its class IRI.
generate_answer | ( | $query, | |
$answer | |||
) |
get_responses | ( | ) |
This function starts parsing OWLlink responses file using an Concrete Iterator and outs a new array of responses to be inserted in the new ontology. It delegates to SimpleXMLIterator and OWLlinkBuilder
|
protected |
in_query | A Boolean indicating if it must advance the $this->query_reader XMLReader instance (true) or the $this->answer_reader one (false). |
|
protected |
Simply, go to the next initial tag.
in_query | A boolean, if true advance the query_reader, if false, advance the answer_reader. |
|
protected |
XMLReader instance for parsing the reasoner answer.
|
protected |
XMLReader instance for parsing the query given to the reasoner.
const ANSWERS_MAP |
Map between Queries and propper correct answers.
Used for filtering XML tags to the ones we care.
const IsClassSatisfiable |