/*
 * ConverterImpl.java
 *
 */

package de.uni_stuttgart.vis.vowl.owl2vowl;

import de.uni_stuttgart.vis.vowl.owl2vowl.export.types.Exporter;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.VowlData;
import de.uni_stuttgart.vis.vowl.owl2vowl.parser.owlapi.OwlClassVisitor;

import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import org.semanticweb.owlapi.model.OWLOntologyManager;
import org.semanticweb.owlapi.util.OWLOntologyWalker;

/**
 *
 */
public class ConverterImpl implements Converter {

	public ConverterImpl() {
	}

	public static void main(String[] args) throws OWLOntologyCreationException {
		OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
		OWLOntology ontology = manager.loadOntology(IRI.create("http://ontovibe.visualdataweb.org/2.0"));

		VowlData vowlData = new VowlData();

		OWLOntologyWalker walker = new OWLOntologyWalker(ontology.getImportsClosure());
		walker.walkStructure(new OwlClassVisitor(vowlData));

		System.out.println();
	}

	@Override
	public void convert() {

	}

	@Override
	public void export(Exporter exporter) {

	}
}

@@ -126,16 +126,23 @@
 t.types.
+Console
 Exporter
@@ -139,24 +139,159 @@
 leExporter;%0A
+import de.uni_stuttgart.vis.vowl.owl2vowl.export.types.Exporter;%0Aimport de.uni_stuttgart.vis.vowl.owl2vowl.export.types.JsonGenerator;%0A
 import de.un
@@ -413,101 +413,83 @@
 or;%0A
-%0A
 import 
-org.semanticweb.owlapi.apibinding.OWLManager;%0Aimport org.semanticweb.owlapi.model.IRI
+de.uni_stuttgart.vis.vowl.owl2vowl.parser.vowl.OwlEquivalentsVisitor
 ;%0Aim
@@ -516,33 +516,37 @@
 .owlapi.
-model.OWLOntology
+apibinding.OWLManager
 ;%0Aimport
@@ -579,36 +579,9 @@
 del.
-OWLOntologyCreationException
+*
 ;%0Aim
@@ -614,34 +614,34 @@
 i.model.
-OWLOntologyManager
+parameters.Imports
 ;%0Aimport
@@ -1213,29 +1213,659 @@
 %0A%0A%09%09
-System.out.println();
+processClasses(ontology, vowlData);%0A%0A%09%09testExport(vowlData);%0A%09%7D%0A%0A%09private static void testExport(VowlData vowlData) %7B%0A%09%09Exporter exporter = new ConsoleExporter();%0A%09%09JsonGenerator generator = new JsonGenerator();%0A%09%09try %7B%0A%09%09%09generator.execute(vowlData);%0A%09%09%09generator.export(exporter);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%09public static void processClasses(OWLOntology ontology, VowlData vowlData) %7B%0A%09%09for (OWLClass owlClass : ontology.getClassesInSignature()) %7B%0A%09%09%09for (OWLClassAxiom owlClassAxiom : ontology.getAxioms(owlClass, Imports.INCLUDED)) %7B%0A%09%09%09%09owlClassAxiom.accept(new OwlEquivalentsVisitor(vowlData, owlClass));%0A%09%09%09%7D%0A%09%09%7D
 %0A%09%7D%0A

Add processing of classes and test exporting