public OBDAModelManager(EditorKit editorKit) { super(); if (!(editorKit instanceof OWLEditorKit)) { throw new IllegalArgumentException("The OBDA PLugin only works with OWLEditorKit instances."); } this.owlEditorKit = (OWLEditorKit) editorKit; mmgr = ((OWLModelManager) owlEditorKit.getModelManager()).getOWLOntologyManager(); OWLModelManager owlmmgr = (OWLModelManager) editorKit.getModelManager(); owlmmgr.addListener(modelManagerListener); obdaManagerListeners = new LinkedList<OBDAModelManagerListener>(); obdamodels = new HashMap<URI, OBDAModel>(); // Adding ontology change listeners to synchronize with the mappings mmgr.addOntologyChangeListener(new OntologyRefactoringListener()); // Initialize the query controller queryController = new QueryController(); // Printing the version information to the console // System.out.println("Using " + VersionInfo.getVersionInfo().toString() + "\n"); }
protected Workspace getWorkspace() { return editorKit.getWorkspace(); }