From 7fca06998ec14535f3aacd38119b64a002e159d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20R=C3=B6der?= Date: Wed, 18 Nov 2020 19:17:04 +0100 Subject: [PATCH 1/5] Created first version of a build action --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1593927 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Start Rabbit + run: make start-rabbit + - name: Build project + run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - name: Run tests + run: mvn jacoco:prepare-agent test -B jacoco:report + - name: Upload tests + run: | + LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)" + curl -Ls -o codacy-coverage-reporter "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-linux" + chmod +x codacy-coverage-reporter + ./codacy-coverage-reporter report -l Java -r target/site/jacoco/jacoco.xml + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From ccaf35c1f95f557f1a7a9349208844a2254a688d Mon Sep 17 00:00:00 2001 From: Micha Date: Wed, 18 Nov 2020 19:50:48 +0100 Subject: [PATCH 2/5] Updated build script. Added badges. Removed travis config. --- .github/workflows/build.yml | 11 +++-------- .travis.yml | 20 -------------------- README.md | 2 +- 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1593927..7339c93 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,7 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - name: Start Rabbit run: make start-rabbit @@ -16,14 +14,11 @@ jobs: - name: Run tests run: mvn jacoco:prepare-agent test -B jacoco:report - name: Upload tests + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} run: | LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)" curl -Ls -o codacy-coverage-reporter "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-linux" chmod +x codacy-coverage-reporter ./codacy-coverage-reporter report -l Java -r target/site/jacoco/jacoco.xml - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index aee92ad..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: java - -services: - - docker - -before_install: - - make start-rabbit - -script: - - mvn jacoco:prepare-agent test -B jacoco:report - -after_success: - - LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)" - - curl -Ls -o codacy-coverage-reporter "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-linux" - - chmod +x codacy-coverage-reporter - - ./codacy-coverage-reporter report -l Java -r target/site/jacoco/jacoco.xml - -cache: - directories: - - $HOME/.m2 diff --git a/README.md b/README.md index 0db769e..0e87a73 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/hobbit-project/core.svg?branch=master)](https://travis-ci.org/hobbit-project/core) +![Build Status](https://github.com/hobbit-project/core/workflows/build/badge.svg) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/cab3efc1ece64aa4ba189e3e3d465ede)](https://www.codacy.com/manual/MichaelRoeder/core/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hobbit-project/core&utm_campaign=Badge_Grade) [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/cab3efc1ece64aa4ba189e3e3d465ede)](https://www.codacy.com/manual/MichaelRoeder/core/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hobbit-project/core&utm_campaign=Badge_Coverage) # core This library offers some main functionalities and utilities for the Hobbit platform project. For more information take a look at the project web page (http://www.project-hobbit.eu) or at the Hobbit platform project on github (https://github.com/hobbit-project/platform). From fb765d1bff41792d84fb369eb495fbce46437eb2 Mon Sep 17 00:00:00 2001 From: Denis Kuchelev Date: Thu, 5 Aug 2021 17:54:15 +0200 Subject: [PATCH 3/5] Version 1.0.22-SNAPSHOT --- pom.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 33e6ad9..1b6f429 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ 4.0.0 org.hobbit core - 1.0.21 + 1.0.22-SNAPSHOT @@ -194,4 +194,16 @@ + + + org.aksw.maven.internal + University Leipzig, AKSW Maven2 Repository + https://maven.aksw.org/repository/internal + + + org.aksw.maven.snapshots + University Leipzig, AKSW Maven2 Repository + https://maven.aksw.org/repository/snapshots + + From 96d4c23e3ec0ce766953e0959062c5d5f90fca4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20R=C3=B6der?= Date: Thu, 18 Jan 2024 16:38:03 +0100 Subject: [PATCH 4/5] Added a class handling the namespace of errors. --- .../hobbit/vocab/HobbitErrorInstances.java | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/main/java/org/hobbit/vocab/HobbitErrorInstances.java diff --git a/src/main/java/org/hobbit/vocab/HobbitErrorInstances.java b/src/main/java/org/hobbit/vocab/HobbitErrorInstances.java new file mode 100644 index 0000000..8d21a85 --- /dev/null +++ b/src/main/java/org/hobbit/vocab/HobbitErrorInstances.java @@ -0,0 +1,65 @@ +/** + * This file is part of core. + * + * core 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. + * + * core 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 core. If not, see . + */ +package org.hobbit.vocab; + +import org.apache.jena.rdf.model.Resource; +import org.apache.jena.rdf.model.ResourceFactory; + +/** + * HOBBIT namespace for error instances. + * + * @author Michael Röder (michael.roeder@uni-paderborn.de) + * + */ +public class HobbitErrorInstances { + + protected static final String uri = "http://w3id.org/hobbit/error-instance#"; + + /** + * returns the URI for this schema + * + * @return the URI for this schema + */ + public static String getURI() { + return uri; + } + + protected static final Resource resource(String local) { + return ResourceFactory.createResource(getErrorInstanceUri(local)); + } + + /** + * returns the error-instance resource given its ID + * + * @param instanceId the ID of the error instance + * @return the error instance resource + */ + public static Resource getErrorInstance(String instanceId) { + return resource(instanceId); + } + + /** + * returns the URI of an error instance given its ID + * + * @param instanceId the ID of the error instance + * @return the error instance URI + */ + public static String getErrorInstanceUri(String instanceId) { + return uri + instanceId; + } + +} From 204b80ff5ef86baaf01eb9102b8609b2c27f4e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20R=C3=B6der?= Date: Thu, 18 Jan 2024 17:30:37 +0100 Subject: [PATCH 5/5] Increased the version to 1.0.23. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0b9d49f..f63f0d1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ 4.0.0 org.hobbit core - 1.0.23-SNAPSHOT + 1.0.23