Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #38 #39

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/org/swrltab/ui/SWRLTab.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.swrltab.ui;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.protege.editor.core.ProtegeApplication;
import org.protege.editor.owl.model.event.EventType;
import org.protege.editor.owl.model.event.OWLModelManagerChangeEvent;
import org.protege.editor.owl.model.event.OWLModelManagerListener;
Expand All @@ -17,13 +18,16 @@
import org.swrltab.core.ProtegeIRIResolver;

import java.awt.*;
import java.io.File;

public class SWRLTab extends OWLWorkspaceViewsTab
{
private static final long serialVersionUID = 1L;

private static final Logger log = LoggerFactory.getLogger(SWRLTab.class);

private static final File pluginsFolder = new File(System.getProperty(ProtegeApplication.BUNDLE_DIR_PROP));

private SWRLRuleEngineModel swrlRuleEngineModel;
private SWRLRulesView rulesView;

Expand Down Expand Up @@ -73,6 +77,8 @@ private void update()
// Create a rule engine
SWRLRuleEngine ruleEngine = SWRLAPIFactory.createSWRLRuleEngine(activeOntology, iriResolver);

ruleEngine.loadExternalSWRLBuiltInLibraries(pluginsFolder);

// Create a rule engine model. This is the core plugin model.
this.swrlRuleEngineModel = SWRLAPIFactory.createSWRLRuleEngineModel(ruleEngine);

Expand Down