1 /* 2 ORDI - Ontology Repository and Data Integration 3 4 Copyright (c) 2004-2005, OntoText Lab. / SIRMA 5 6 This library is free software; you can redistribute it and/or modify it under 7 the terms of the GNU Lesser General Public License as published by the Free 8 Software Foundation; either version 2.1 of the License, or (at your option) 9 any later version. 10 This library is distributed in the hope that it will be useful, but WITHOUT 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 13 details. 14 You should have received a copy of the GNU Lesser General Public License along 15 with this library; if not, write to the Free Software Foundation, Inc., 16 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 package com.ontotext.ordi.wsmo4rdf; 19 20 import org.wsmo.common.Entity; 21 22 /** 23 * A transformer of WSMO entities ({@link Entity} to triplesets. 24 * 25 * @author vassil 26 * 27 */ 28 public interface WSMLtoTriples { 29 30 /** 31 * Transforms a WSMO entity to triplesets. 32 * 33 * @param entity 34 * to transform 35 */ 36 public void process(Entity entity); 37 38 /** 39 * Get the object to handle the result triplesets. 40 * 41 * @return object to handle the result triplesets 42 */ 43 public WSMLTripleHandler getHandler(); 44 45 /** 46 * Sets the object to handle the result triplesets. 47 * 48 * @param handler 49 * is object to handle the result triplesets 50 */ 51 public void setHandler(WSMLTripleHandler handler); 52 }