Skip to content

Remove rdf4j-generator-maven-plugin dependency #719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
<plugin.coveralls.version>4.3.0</plugin.coveralls.version>
<plugin.javax_xml_bind.version>2.3.1</plugin.javax_xml_bind.version>
<plugin.git_commit_id.version>9.0.2</plugin.git_commit_id.version>
<plugin.rdf4j_generator.version>0.2.0</plugin.rdf4j_generator.version>
<plugin.checkstyle.version>3.6.0</plugin.checkstyle.version>
<plugin.spotbugs.version>4.9.3.0</plugin.spotbugs.version>
</properties>
Expand Down Expand Up @@ -382,41 +381,6 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.github.kburger</groupId>
<artifactId>rdf4j-generator-maven-plugin</artifactId>
<version>${plugin.rdf4j_generator.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<package>org.fairdatapoint.vocabulary</package>
<addGeneratedAnnotation>false</addGeneratedAnnotation>
<vocabularies>
<vocabulary>
<url>https://sparontologies.github.io/datacite/current/datacite.ttl</url>
<prefix>datacite</prefix>
</vocabulary>
<vocabulary>
<url>https://raw.githubusercontent.com/re3data/ontology/master/r3dOntology.ttl</url>
</vocabulary>
<vocabulary>
<url>https://raw.githubusercontent.com/FAIRDataTeam/FDP-O/v1.1/fdp-ontology.owl</url>
<namespace>https://w3id.org/fdp/fdp-o#</namespace>
<prefix>fdp</prefix>
</vocabulary>
<vocabulary>
<url>https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/3.4/schema.ttl</url>
<namespace>http://schema.org/</namespace>
<prefix>schemaOrg</prefix>
</vocabulary>
</vocabularies>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import org.fairdatapoint.vocabulary.DCAT3;
import org.fairdatapoint.vocabulary.FDP;
import org.fairdatapoint.vocabulary.Sio;
import org.fairdatapoint.vocabulary.SIO;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Literal;
import org.eclipse.rdf4j.model.Model;
Expand Down Expand Up @@ -122,12 +122,12 @@ public static void setPublisher(Model metadata, IRI uri, Agent publisher) {
}

public static void setMetrics(Model metadata, IRI uri, List<Metric> metrics) {
metadata.remove(null, Sio.IS_ABOUT, null);
metadata.remove(null, Sio.REFERS_TO, null);
metadata.remove(null, SIO.IS_ABOUT, null);
metadata.remove(null, SIO.REFERS_TO, null);
metrics.forEach(metric -> {
metadata.add(uri, Sio.REFERS_TO, metric.getUri());
metadata.add(metric.getUri(), Sio.IS_ABOUT, metric.getMetricType());
metadata.add(metric.getUri(), Sio.REFERS_TO, metric.getValue());
metadata.add(uri, SIO.REFERS_TO, metric.getUri());
metadata.add(metric.getUri(), SIO.IS_ABOUT, metric.getMetricType());
metadata.add(metric.getUri(), SIO.REFERS_TO, metric.getValue());
});
}

Expand Down
33 changes: 33 additions & 0 deletions src/main/java/org/fairdatapoint/vocabulary/DATACITE.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* The MIT License
* Copyright © 2016-2024 FAIR Data Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.fairdatapoint.vocabulary;

import org.eclipse.rdf4j.model.IRI;

import static org.fairdatapoint.util.ValueFactoryHelper.i;

public final class DATACITE {
public static final String NAMESPACE = "http://purl.org/spar/datacite/";

public static final IRI IDENTIFIER = i(NAMESPACE + "Identifier");
}
41 changes: 41 additions & 0 deletions src/main/java/org/fairdatapoint/vocabulary/FDP.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* The MIT License
* Copyright © 2016-2024 FAIR Data Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.fairdatapoint.vocabulary;

import org.eclipse.rdf4j.model.IRI;

import static org.fairdatapoint.util.ValueFactoryHelper.i;

public final class FDP {

public static final String NAMESPACE = "https://w3id.org/fdp/fdp-o#";

public static final IRI FAIRDATAPOINT = i(NAMESPACE + "FAIRDataPoint");
public static final IRI FDPSOFTWAREVERSION = i(NAMESPACE + "fdpSoftwareVersion");
public static final IRI METADATACATALOG = i(NAMESPACE + "metadataCatalog");
public static final IRI METADATAIDENTIFIER = i(NAMESPACE + "metadataIdentifier");
public static final IRI METADATAISSUED = i(NAMESPACE + "metadataIssued");
public static final IRI METADATAMODIFIED = i(NAMESPACE + "metadataModified");
public static final IRI METADATASERVICE = i(NAMESPACE + "MetadataService");

}
38 changes: 38 additions & 0 deletions src/main/java/org/fairdatapoint/vocabulary/R3D.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* The MIT License
* Copyright © 2016-2024 FAIR Data Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.fairdatapoint.vocabulary;

import org.eclipse.rdf4j.model.IRI;

import static org.fairdatapoint.util.ValueFactoryHelper.i;

public final class R3D {

public static final String NAMESPACE = "http://www.re3data.org/schema/3-0#";

public static final IRI COUNTRY = i(NAMESPACE + "country");
public static final IRI DATACATALOG = i(NAMESPACE + "dataCatalog");
public static final IRI REPOSITORY = i(NAMESPACE + "Repository");
public static final IRI REPOSITORYIDENTIFIER = i(NAMESPACE + "repositoryIdentifier");

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
package org.fairdatapoint.vocabulary;

import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.ValueFactory;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;

import static org.fairdatapoint.util.ValueFactoryHelper.i;

/**
* Semanticscience Integrated Ontology
Expand All @@ -40,12 +40,11 @@
* @version 0.1
* @since 2018-01-17
*/
public class Sio {
public class SIO {

public static final ValueFactory VF = SimpleValueFactory.getInstance();
public static final String PREFIX = "sio";
public static final String NAMESPACE = "http://semanticscience.org/resource/";
public static final IRI REFERS_TO = VF.createIRI(NAMESPACE + "SIO_000628");
public static final IRI IS_ABOUT = VF.createIRI(NAMESPACE + "SIO_000332");

public static final IRI IS_ABOUT = i(NAMESPACE + "SIO_000332");
public static final IRI REFERS_TO = i(NAMESPACE + "SIO_000628");

}
58 changes: 0 additions & 58 deletions src/main/java/org/fairdatapoint/vocabulary/WebAccessControl.java

This file was deleted.