diff --git a/OSGI-INF/service-component/org.corpus_tools.pepperModules_SqueezerModule.SqueezerModuleManipulator.xml b/OSGI-INF/service-component/org.gucorpling.pepperModules_RS4Module.RS4ModuleManipulator.xml similarity index 60% rename from OSGI-INF/service-component/org.corpus_tools.pepperModules_SqueezerModule.SqueezerModuleManipulator.xml rename to OSGI-INF/service-component/org.gucorpling.pepperModules_RS4Module.RS4ModuleManipulator.xml index b39f78e..6fb4470 100644 --- a/OSGI-INF/service-component/org.corpus_tools.pepperModules_SqueezerModule.SqueezerModuleManipulator.xml +++ b/OSGI-INF/service-component/org.gucorpling.pepperModules_RS4Module.RS4ModuleManipulator.xml @@ -1,6 +1,6 @@ - - + + diff --git a/README.md b/README.md index 7102221..8cd7e52 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# SqueezerModule +# RS4Module Todo \ No newline at end of file diff --git a/pom.xml b/pom.xml index 58ea099..f0f1cf2 100644 --- a/pom.xml +++ b/pom.xml @@ -2,11 +2,11 @@ 4.0.0 - org.corpus-tools - pepperModules-SqueezerModule + org.gucorpling + pepperModules-RS4Module 0.1.0 bundle - org.corpus-tools.pepperModules-SqueezerModule + org.corpus-tools.pepperModules-RS4Module org.corpus-tools diff --git a/src/main/java/org/corpus_tools/pepperModules_SqueezerModule/SqueezerModuleManipulator.java b/src/main/java/org/gucorpling/pepperModules_RS4Module/RS4ModuleManipulator.java similarity index 94% rename from src/main/java/org/corpus_tools/pepperModules_SqueezerModule/SqueezerModuleManipulator.java rename to src/main/java/org/gucorpling/pepperModules_RS4Module/RS4ModuleManipulator.java index 9ddd9e3..79b1ca7 100644 --- a/src/main/java/org/corpus_tools/pepperModules_SqueezerModule/SqueezerModuleManipulator.java +++ b/src/main/java/org/gucorpling/pepperModules_RS4Module/RS4ModuleManipulator.java @@ -1,7 +1,6 @@ -package org.corpus_tools.pepperModules_SqueezerModule; +package org.gucorpling.pepperModules_RS4Module; import java.util.*; -import java.util.stream.Collectors; import org.corpus_tools.pepper.common.DOCUMENT_STATUS; import org.corpus_tools.pepper.common.PepperConfiguration; @@ -9,19 +8,12 @@ import org.corpus_tools.pepper.impl.PepperMapperImpl; import org.corpus_tools.pepper.modules.PepperManipulator; import org.corpus_tools.pepper.modules.PepperMapper; -import org.corpus_tools.pepper.modules.PepperModule; -import org.corpus_tools.pepper.modules.PepperModuleProperties; -import org.corpus_tools.pepper.modules.exceptions.PepperModuleDataException; -import org.corpus_tools.pepper.modules.exceptions.PepperModuleException; import org.corpus_tools.pepper.modules.exceptions.PepperModuleNotReadyException; -import org.corpus_tools.salt.SALT_TYPE; import org.corpus_tools.salt.SaltFactory; import org.corpus_tools.salt.common.*; import org.corpus_tools.salt.core.*; import org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE; import org.corpus_tools.salt.graph.Identifier; -import org.corpus_tools.salt.graph.Node; -import org.corpus_tools.salt.graph.Relation; import org.eclipse.emf.common.util.URI; import org.osgi.service.component.annotations.Component; @@ -31,12 +23,12 @@ * * @author Luke Gessler */ -@Component(name = "SqueezerModuleManipulatorComponent", factory = "PepperManipulatorComponentFactory") -public class SqueezerModuleManipulator extends PepperManipulatorImpl { +@Component(name = "RS4ModuleManipulatorComponent", factory = "PepperManipulatorComponentFactory") +public class RS4ModuleManipulator extends PepperManipulatorImpl { - public SqueezerModuleManipulator() { + public RS4ModuleManipulator() { super(); - setName("Squeezer"); + setName("RS4"); setSupplierContact(URI.createURI(PepperConfiguration.EMAIL)); setSupplierHomepage(URI.createURI(PepperConfiguration.HOMEPAGE)); setDesc("This manipulator deletes nodes with no annotations."); @@ -50,12 +42,12 @@ public SqueezerModuleManipulator() { * connected to given {@link Identifier} */ public PepperMapper createPepperMapper(Identifier Identifier) { - SqueezerModuleMapper mapper = new SqueezerModuleMapper(); + RS4ModuleMapper mapper = new RS4ModuleMapper(); return (mapper); } - public static class SqueezerModuleMapper extends PepperMapperImpl implements GraphTraverseHandler { + public static class RS4ModuleMapper extends PepperMapperImpl implements GraphTraverseHandler { private Map rstId2UUID; private Map tokenUUID2index; @@ -66,7 +58,7 @@ public static class SqueezerModuleMapper extends PepperMapperImpl implements Gra private Map secondaryEdgeIndex = null; private Set primaryRelationsWithSignals = null; - public SqueezerModuleMapper() { + public RS4ModuleMapper() { tokenMap = new HashMap<>(); tokenUUID2index = new HashMap<>(); structureMap = new HashMap<>(); diff --git a/src/main/java/org/corpus_tools/pepperModules_SqueezerModule/SqueezerModuleManipulatorProperties.java b/src/main/java/org/gucorpling/pepperModules_RS4Module/RS4ModuleManipulatorProperties.java similarity index 69% rename from src/main/java/org/corpus_tools/pepperModules_SqueezerModule/SqueezerModuleManipulatorProperties.java rename to src/main/java/org/gucorpling/pepperModules_RS4Module/RS4ModuleManipulatorProperties.java index b326f9c..4a7fad4 100644 --- a/src/main/java/org/corpus_tools/pepperModules_SqueezerModule/SqueezerModuleManipulatorProperties.java +++ b/src/main/java/org/gucorpling/pepperModules_RS4Module/RS4ModuleManipulatorProperties.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.corpus_tools.pepperModules_SqueezerModule; +package org.gucorpling.pepperModules_RS4Module; import org.corpus_tools.pepper.modules.PepperModuleProperties; -import org.corpus_tools.pepper.modules.PepperModuleProperty; + /** * * @author Luke Gessler */ -public class SqueezerModuleManipulatorProperties extends PepperModuleProperties { - public static final String PREFIX = "Squeezer."; - public SqueezerModuleManipulatorProperties() {} +public class RS4ModuleManipulatorProperties extends PepperModuleProperties { + public static final String PREFIX = "RS4."; + public RS4ModuleManipulatorProperties() {} }