WICOM
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Protected Attributes
DocumentBuilder Class Reference
Inheritance diagram for DocumentBuilder:
Documents HTMLBuilder OWLBuilder OWLlinkBuilder

Public Member Functions

 insert_class ($name, $col_attrs=[])
 
 insert_owllink ($text)
 
 insert_footer ()
 
- Public Member Functions inherited from Documents
 get_product ()
 

Protected Attributes

 $product = null
 

DL List Translation

A DL List is a list of Description Logic operands and parameters in preorder form. There are some declaration supported, more can be added as much as needed in the DL_element() function.

The first element of the list declares the operation or the type of the element is representing, a class or a role.

```php ['class' => $classname] ['role' => $rolename] ['subclass' => [$class_or_expression1, $class_or_expression2, $others]] ['exists' => [$role, $class]] ['inverse' => $class_or_expression] ['mincard' => [$number, $role]] ['maxcard' => [$number, $role]] ['intersection' => [$class_or_expression1,$class_or_expression2, $others]] ```

 translate_DL ($DL_list)
 
 DL_element ($elt)
 

Detailed Description

I set the common behaviour for every DocumentBuilder subclass.

Member Function Documentation

DL_element (   $elt)
protected

I translate a single element of the DL List.

Overriding

Use $this->product for referencing the product being built. Also, you can call the function translate_DL() for translating a subexpression.

Parameters
$eltA List element.
insert_class (   $name,
  $col_attrs = [] 
)
abstract
insert_footer ( )
abstract
insert_owllink (   $text)

Depending on the subclass, add an OWLlink text directly.

translate_DL (   $DL_list)

Field Documentation

$product = null
protected

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