-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from hobbit-project/develop
Developed version 1.0.23
- Loading branch information
Showing
5 changed files
with
103 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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 | ||
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 | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
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 ([email protected]) | ||
* | ||
*/ | ||
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; | ||
} | ||
|
||
} |