Skip to content

Commit

Permalink
split into subprojects: abecto-core, abecto-benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeil committed Nov 20, 2023
1 parent 3f91db8 commit 14dc7d0
Show file tree
Hide file tree
Showing 88 changed files with 42,861 additions and 42,628 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Maven
/target
*/target
/dependency-reduced-pom.xml

## Eclipse
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ RUN mvn package

FROM openjdk:11-jre-slim
RUN echo '#!/bin/sh\nexec java -jar /opt/abecto.jar "$@"' >> /bin/abecto && chmod +x /bin/abecto
COPY --from=builder target/abecto.jar /opt/abecto.jar
COPY --from=builder abecto-core/target/abecto-exec.jar /opt/abecto.jar
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ This sections provides an overview about the use of ABECTO.
To use ABECTO, first checkout the project and compile ABECTO using Maven:

```shell
mvn -B -Dmaven.test.skip=true package
mvn -Dmaven.test.skip=true package
```

This will create a stand alone .jar file at [target/abecto.jar](target).
This will create a stand alone .jar file at [abecto-core/target/abecto-exec.jar](target).

## Configuration

Expand Down
138 changes: 138 additions & 0 deletions abecto-benchmark/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>abecto-benchmark</artifactId>
<packaging>jar</packaging>

<parent>
<groupId>de.uni_jena.cs.fusion</groupId>
<artifactId>abecto</artifactId>
<version>2.1.1-SNAPSHOT</version>
</parent>

<name>ABECTO Benchmark</name>

<dependencies>
<dependency>
<!-- GPL 2 with classpath exception -->
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>${jmh.version}</version>
</dependency>
<dependency>
<!-- GPL 2 with classpath exception -->
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${jmh.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.uni_jena.cs.fusion</groupId>
<artifactId>abecto-core</artifactId>
<version>${project.parent.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- EPL 2.0 -->
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- EPL 2.0 -->
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<properties>
<jmh.version>1.37</jmh.version>
<uberjar.name>benchmarks</uberjar.name>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${uberjar.name}</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.openjdk.jmh.Main</mainClass>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<filters>
<filter>
<!--
Shading signed JARs will fail without this.
http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
-->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.uni_jena.cs.fusion.abecto.processor;
package de.uni_jena.cs.fusion.abecto.benchmark;

import com.google.common.collect.Streams;
import org.apache.jena.rdf.model.RDFNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.uni_jena.cs.fusion.abecto.processor;
package de.uni_jena.cs.fusion.abecto.benchmark;

import de.uni_jena.cs.fusion.abecto.Aspect;
import de.uni_jena.cs.fusion.abecto.processor.PopulationComparisonProcessor;
import org.apache.jena.rdf.model.Resource;
import org.openjdk.jmh.annotations.Benchmark;

import java.util.List;
import java.util.Set;
import java.util.stream.Stream;

public class PopulationComparisonProcessorBenchmark {

@Benchmark
public void testMethod() {
// This is a demo/sample template for building your JMH benchmarks. Edit as needed.
// Put your benchmark code here.
}

private static class IndependentPopulationComparisonProcessor extends PopulationComparisonProcessor {

private final ComparisonBenchmarkDataSupplier dataSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.uni_jena.cs.fusion.abecto.processor;
package de.uni_jena.cs.fusion.abecto.benchmark;

import de.uni_jena.cs.fusion.abecto.Aspect;
import de.uni_jena.cs.fusion.abecto.processor.PropertyComparisonProcessor;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.Resource;
import org.openjdk.jmh.annotations.Benchmark;

import java.util.*;
import java.util.stream.Stream;

public class PropertyComparisonProcessorBenchmark {

@Benchmark
public void testMethod() {
// This is a demo/sample template for building your JMH benchmarks. Edit as needed.
// Put your benchmark code here.
}

private static class IndependentPropertyComparisonProcessor extends PropertyComparisonProcessor {

private final ComparisonBenchmarkDataSupplier dataSupplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
/**
* Copyright © 2019 Heinz Nixdorf Chair for Distributed Information Systems, Friedrich Schiller University Jena
* (http://www.fusion.uni-jena.de/)
* Copyright © 2019 Heinz Nixdorf Chair for Distributed Information Systems, Friedrich Schiller University Jena (http://www.fusion.uni-jena.de/)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.uni_jena.cs.fusion.abecto.processor;
package de.uni_jena.cs.fusion.abecto.benchmark;

import org.apache.jena.rdf.model.Resource;
import org.junit.jupiter.api.Assertions;
Expand Down
Loading

0 comments on commit 14dc7d0

Please sign in to comment.