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

Public Member Functions

 __construct ($strategy, $jsonbuilder)
 
 to_json ($owl2, $ontologyIRI, $prefix)
 

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_json (   $owl2,
  $ontologyIRI,
  $prefix 
)
Parameters
$owl2An OWL 2 Ontology.
$ontologyIRIA JSON element containing a prefix and IRI for the ontologyIRI tag.
$prefixA hashed JSON containing elements {"prefix": prefix, "iri": IRI} for the ontology prefixes.
Returns
an UML Json.

Field Documentation

$jsonbuilder = null
protected
$strategy = null
protected

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