WICOM
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Protected Attributes
Decoder Class Reference

Public Member Functions

 __construct ($strategy, $jsonbuilder)
 
 to_umljson ($owl2)
 
 to_owl2 ($json)
 

Protected Attributes

 $strategy = null
 
 $jsonbuilder = null
 

Detailed Description

Decode an Ontology OWL to be drawn in crowd using diagram UML/EER/ORM according to an encoding strategy.

  1. Give a Strategy for specifying the algorithm for decoding the OWL 2.
  2. Give a Builder for specifying the UML/EER/ORM json input format.

JSON Format

We expect the following fields:

Example

1 {"classes": [
2  {"attrs":[], "methods":[], "name": "Person"},
3  {"attrs":[], "methods":[], "name": "Cellphones"}],
4  "links": [
5  {"classes": ["Person", "Cellphones"],
6  "multiplicity": ["1..1", "1..*"],
7  "name": "hasCellphone",
8  "type": "association"}
9  ]
10 }

Constructor & Destructor Documentation

__construct (   $strategy,
  $jsonbuilder 
)

Member Function Documentation

to_owl2 (   $json)
Parameters
jsonA String.
Returns
a XML OWL2 String.
to_umljson (   $owl2)
Parameters
owl2An OWL 2 Ontology.
Returns
an UML Json.

Field Documentation

$jsonbuilder = null
protected
$strategy = null
protected

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