This plugin adds ShEx features to the Protégé editor in order to allow the users to validate their ontologies using ShEx. To do that, this plugin incorporate YASHE editor, offering a better experience to the users.
-
Get a copy of the example code:
git clone https://github.com/weso/protegeShEx.git
-
Change into the protegeShEX directory.
-
Type mvn clean package. On build completion, the "target" directory will contain a protege.plugin.examples-${version}.jar file.
-
Copy the JAR file from the target directory to the "plugins" subdirectory of your Protege distribution.
As YASHE is built in JavaScript we use the JavaFX library in order to re-use YASHE code. This library doesn´t work at all with protege at the moment (more info) and while we look for another more elegant solution we need to do the following steps:
-
Change into Protege/conf directory
-
Open in a text editor the config.xml file
-
Add the following line in the frameworkProperties:
<property name="org.osgi.framework.system.packages.extra" value="javax.xml.parsers,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers,javafx.collections,javafx.embed.swing,javafx.geometry,javafx.scene,javafx.scene.text,javafx.scene.layout,javafx.scene.paint,javafx.scene.web,javafx.application,javafx.beans.property,javafx.beans.value"/>