001/** 002 * Copyright (C) 2007 - 2016, Jens Lehmann 003 * 004 * This file is part of DL-Learner. 005 * 006 * DL-Learner is free software; you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation; either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * DL-Learner is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 018 */ 019package org.dllearner.utilities.semkernel; 020 021import org.dllearner.core.AbstractComponent; 022import org.dllearner.core.ComponentAnn; 023import org.dllearner.core.ComponentInitException; 024 025/** 026 * Since the current setup for running a SemKernel example comprises several 027 * steps, like preparing the training data, do the training, preparing the 028 * prediction data and so on, this component is intended to encapsulate this 029 * whole process and make it callable and configurable via the standard 030 * DL-Learner CLI. 031 * As already said, there are different steps, depending on the tasks to solve 032 * 033 * - training: 034 * T1) read URIs to train 035 * T2) read the underlying knowledge base 036 * T3) write the prepared training data (in SVM light format) to the training 037 * data directory 038 * T4) do the training run and write out the training model to the model 039 * directory 040 * 041 * - prediction 042 * P5) read URIs to predict 043 * P6) read the underlying knowledge base (if not done already) 044 * P7) write out the prepared prediction data to the prediction data directory 045 * P8) do the prediction and write out the prediction results to the result 046 * directory 047 * 048 * @author Patrick Westphal 049 * 050 */ 051@ComponentAnn(name="SemKernel Workflow", shortName="skw", version=0.1) 052public class SemKernelWorkflow extends AbstractComponent { 053 054 @Override 055 public void init() throws ComponentInitException { 056 initialized = true; 057 } 058 059 public void start() { 060 061 } 062 063}