# HG changeset patch # User mikel-egana-aranguren # Date 1315335239 14400 # Node ID 46b9d13a44fcd32ed5c21466ed9a88928217a496 First commit (1.0.0) diff -r 000000000000 -r 46b9d13a44fc OPPL/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OPPL/README Tue Sep 06 14:53:59 2011 -0400 @@ -0,0 +1,113 @@ + + + + =========== + OPPL-GALAXY + =========== + + + +INSTALLATION +============ + +1.- Stop galaxy. + +2.- Copy oppl_galaxy_tool.jar and oppl_galaxy_tool_lib/ to +/galaxy-dist/tool-data/shared/jars/. + +3.- Create directory /galaxy-dist/tools/OPPL/. + +4.- Copy oppl.xml to /galaxy-dist/tools/OPPL/. + +5.- Add the following lines to /galaxy-dist/tool_conf.xml: + +
+ +
+ +6.- Start galaxy. + +Note that if you want you can use any java parameter by editing oppl.xml +, eg: java -Xmx7000M -Xms250M -DentityExpansionLimit=1000000000 +-jar ${__tool_data_path__}/shared/jars/oppl_galaxy_tool.jar $input $OPPL +> $output + + + +USAGE +===== + +An ontology and an OPPL file are needed (test.owl and test.oppl can be +used as samples). Load both: + +Get Data + >> Upload File from your computer + +Then execute the OPPL file against the OWL file: + +Ontology Pre Processor Language + >> Execute an OPPL file against an OWL file + + + +TESTS +===== + +To run the functional test, first complete installation and then: + +1.- Copy test.owl and test.oppl to /galaxy-dist/test-data/ + +2.- Add the following lines to /galaxy-dist/tool_conf.xml.sample + +
+ +
+ +3.- Execute /galaxy-dist/run_functional_tests.sh -id oppl + + + +CONTACT +======= + +Please send any request or comment to mikel.egana.aranguren@gmail.com. + + + +ACKNOWLEDGEMENTS +================ + +This work is funded by the Marie Curie Cofund program of the EU, FP7. + + + +COPYRIGHT AND LICENSE +===================== + +Copyright (c) 2011 Mikel EgaƱa Aranguren. + +OPPL-Galaxy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +OPPL, OWL API and Pellet have their own licenses. + +Galaxy is distributed as open source under the conditions of the +Academic Free License (http://www.opensource.org/licenses/academic.php). + + + + + + + + diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OPPL/oppl.sh Tue Sep 06 14:53:59 2011 -0400 @@ -0,0 +1,5 @@ +#!/bin/sh + +java -Xmx7000M -Xms250M -DentityExpansionLimit=1000000000 -jar oppl_galaxy_tool.jar test.owl test.oppl > test_new.owl + + diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OPPL/oppl.xml Tue Sep 06 14:53:59 2011 -0400 @@ -0,0 +1,70 @@ + + It executes an OPPL script against the input ontology and generates a new ontology with the changes described in the OPPL script + java -jar ${__tool_data_path__}/shared/jars/oppl_galaxy_tool.jar $input $OPPL > $output + + + + + + + + + + + + + + + + + + +**About OPPL-Galaxy** + + OPPL-Galaxy can be used to execute an OPPL script against an (OWL) ontology, generating a new ontology. OPPL (Ontology Pre Processor Language) is a high level scripting language, based in the Manchester OWL Syntax, to automate the manipulation of an ontology (Adding or removing axioms). An OPPL script (See bellow or test.oppl) defines a query to be performed against the ontology, and some actions that affect the entities that will be retrieved. Those entities can be named or defined by a variable. OPPL is a powerful method for defining and executing modelling patterns that are repeated in a given ontology, saving time and effort. + +**Formats** + + OPPL-Galaxy uses the OWL API, and therefore can work with any ontology format that such API is able to load. That includes: OBO flat file, OWL (RDF/XML, OWL/XML, Functional, Manchester), turtle, and KRSS. + +**Usage** + + An ontology and an OPPL file are needed (test.owl and test.oppl can be used as samples). Load both with Get Data >> Upload File from your computer. + + Then execute the OPPL file against the OWL file with Ontology Pre Processor Language >> Execute an OPPL file against an OWL file. + + This is the OPPL script provided in the bundle, test.oppl. Variables start with ?: + + ?whole:CLASS, + ?part:CLASS + SELECT + ?part SubClassOf part_of some ?whole WHERE ?part != Nothing + BEGIN + ADD ?part SubClassOf part_of only ?whole + END; + +**More information** + + http://oppl2.sourceforge.net/ + + http://owlapi.sourceforge.net/ + + http://www.w3.org/TR/owl2-manchester-syntax/ + + http://clarkparsia.com/pellet + +**Features that will be implemented soon** + + OWL import closure + + Choose output format (Right now only OWL RDF/XML is available) + + Choose reasoner (Right now only Pellet is available) + +**Contact** + + Please send any request or comment to mikel.egana.aranguren@gmail.com. + + + + diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool.jar Binary file OPPL/oppl_galaxy_tool.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/antlr-runtime-3.2.jar Binary file OPPL/oppl_galaxy_tool_lib/antlr-runtime-3.2.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/aterm-java-1.6.jar Binary file OPPL/oppl_galaxy_tool_lib/aterm-java-1.6.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/jgrapht-jdk1.5.jar Binary file OPPL/oppl_galaxy_tool_lib/jgrapht-jdk1.5.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/org.coode.oppl-API.jar Binary file OPPL/oppl_galaxy_tool_lib/org.coode.oppl-API.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/owlapi-bin.jar Binary file OPPL/oppl_galaxy_tool_lib/owlapi-bin.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/parsers.jar Binary file OPPL/oppl_galaxy_tool_lib/parsers.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/pellet-core.jar Binary file OPPL/oppl_galaxy_tool_lib/pellet-core.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/pellet-datatypes.jar Binary file OPPL/oppl_galaxy_tool_lib/pellet-datatypes.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/pellet-el.jar Binary file OPPL/oppl_galaxy_tool_lib/pellet-el.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/pellet-owlapiv3.jar Binary file OPPL/oppl_galaxy_tool_lib/pellet-owlapiv3.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/pellet-query.jar Binary file OPPL/oppl_galaxy_tool_lib/pellet-query.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/oppl_galaxy_tool_lib/pellet-rules.jar Binary file OPPL/oppl_galaxy_tool_lib/pellet-rules.jar has changed diff -r 000000000000 -r 46b9d13a44fc OPPL/test.oppl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OPPL/test.oppl Tue Sep 06 14:53:59 2011 -0400 @@ -0,0 +1,8 @@ +?whole:CLASS, +?part:CLASS +SELECT +?part SubClassOf part_of some ?whole WHERE ?part != Nothing +BEGIN +ADD ?part SubClassOf part_of only ?whole +END; + diff -r 000000000000 -r 46b9d13a44fc OPPL/test.owl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OPPL/test.owl Tue Sep 06 14:53:59 2011 -0400 @@ -0,0 +1,73 @@ + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 46b9d13a44fc OPPL/test_new.owl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OPPL/test_new.owl Tue Sep 06 14:53:59 2011 -0400 @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +