Skip to content

fix: remove rdf4j-generator #715

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
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 @@ -70,7 +70,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.1</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 @@ -392,41 +391,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>nl.dtls.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>
158 changes: 158 additions & 0 deletions src/main/java/nl/dtls/fairdatapoint/vocabulary/DATACITE.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
/**
* The MIT License
* Copyright © 2017 DTL
*
* 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 nl.dtls.fairdatapoint.vocabulary;

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

public final class DATACITE {
public static final String NAMESPACE = "";
public static final String PREFIX = "datacite";

/** <tt>http://purl.org/spar/datacite/AlternateResourceIdentifier</tt> */
public static final IRI ALTERNATERESOURCEIDENTIFIER;

/** <tt>http://purl.org/co/List</tt> */
public static final IRI LIST;

/** <tt>http://purl.org/spar/datacite/PrimaryResourceIdentifier</tt> */
public static final IRI PRIMARYRESOURCEIDENTIFIER;

/** <tt>http://www.essepuntato.it/2010/06/literalreification/Literal</tt> */
public static final IRI LITERAL;

/** <tt>http://purl.org/spar/datacite/FunderIdentifier</tt> */
public static final IRI FUNDERIDENTIFIER;

/** <tt>http://purl.org/spar/datacite/MetadataScheme</tt> */
public static final IRI METADATASCHEME;

/** <tt>http://purl.org/spar/datacite/OrganizationIdentifier</tt> */
public static final IRI ORGANIZATIONIDENTIFIER;

/** <tt>http://purl.org/spar/datacite/PersonalIdentifier</tt> */
public static final IRI PERSONALIDENTIFIER;

/** <tt>http://www.w3.org/2004/02/skos/core#Concept</tt> */
public static final IRI CONCEPT;

/** <tt>http://purl.org/spar/datacite/FunderIdentifierScheme</tt> */
public static final IRI FUNDERIDENTIFIERSCHEME;

/** <tt>http://purl.org/spar/datacite/Identifier</tt> */
public static final IRI IDENTIFIER;

/** <tt>http://purl.org/spar/datacite/OrganizationIdentifierScheme</tt> */
public static final IRI ORGANIZATIONIDENTIFIERSCHEME;

/** <tt>http://purl.org/spar/datacite/AgentIdentifier</tt> */
public static final IRI AGENTIDENTIFIER;

/** <tt>http://purl.org/spar/datacite/DescriptionType</tt> */
public static final IRI DESCRIPTIONTYPE;

/** <tt>http://purl.org/spar/datacite/AgentIdentifierScheme</tt> */
public static final IRI AGENTIDENTIFIERSCHEME;

/** <tt>http://purl.org/spar/datacite/IdentifierScheme</tt> */
public static final IRI IDENTIFIERSCHEME;

/** <tt>http://purl.org/spar/datacite/ResourceIdentifier</tt> */
public static final IRI RESOURCEIDENTIFIER;

/** <tt>http://purl.org/spar/datacite/PersonalIdentifierScheme</tt> */
public static final IRI PERSONALIDENTIFIERSCHEME;

/** <tt>http://purl.org/spar/datacite/ResourceIdentifierScheme</tt> */
public static final IRI RESOURCEIDENTIFIERSCHEME;

/** <tt>http://purl.org/spar/datacite/hasCreatorList</tt> */
public static final IRI HASCREATORLIST;

/** <tt>http://purl.org/spar/datacite/hasGeneralResourceType</tt> */
public static final IRI HASGENERALRESOURCETYPE;

/** <tt>http://purl.org/spar/datacite/usesMetadataScheme</tt> */
public static final IRI USESMETADATASCHEME;

/** <tt>http://purl.org/spar/fabio/hasURL</tt> */
public static final IRI HASURL;

/** <tt>http://www.w3.org/2002/07/owl#topObjectProperty</tt> */
public static final IRI TOPOBJECTPROPERTY;

/** <tt>http://purl.org/spar/datacite/hasDescription</tt> */
public static final IRI HASDESCRIPTION;

/** <tt>http://purl.org/spar/datacite/hasDescriptionType</tt> */
public static final IRI HASDESCRIPTIONTYPE;

/** <tt>http://purl.org/dc/terms/type</tt> */
public static final IRI TYPE;

/** <tt>http://purl.org/spar/datacite/hasIdentifier</tt> */
public static final IRI HASIDENTIFIER;

/** <tt>http://purl.org/spar/datacite/usesIdentifierScheme</tt> */
public static final IRI USESIDENTIFIERSCHEME;

static {
final ValueFactory factory = SimpleValueFactory.getInstance();

ALTERNATERESOURCEIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/AlternateResourceIdentifier");
LIST = factory.createIRI("http://purl.org/co/List");
PRIMARYRESOURCEIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/PrimaryResourceIdentifier");
LITERAL = factory.createIRI("http://www.essepuntato.it/2010/06/literalreification/Literal");
FUNDERIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/FunderIdentifier");
METADATASCHEME = factory.createIRI("http://purl.org/spar/datacite/MetadataScheme");
ORGANIZATIONIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/OrganizationIdentifier");
PERSONALIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/PersonalIdentifier");
CONCEPT = factory.createIRI("http://www.w3.org/2004/02/skos/core#Concept");
FUNDERIDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/FunderIdentifierScheme");
IDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/Identifier");
ORGANIZATIONIDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/OrganizationIdentifierScheme");
AGENTIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/AgentIdentifier");
DESCRIPTIONTYPE = factory.createIRI("http://purl.org/spar/datacite/DescriptionType");
AGENTIDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/AgentIdentifierScheme");
IDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/IdentifierScheme");
RESOURCEIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/ResourceIdentifier");
PERSONALIDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/PersonalIdentifierScheme");
RESOURCEIDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/ResourceIdentifierScheme");
HASCREATORLIST = factory.createIRI("http://purl.org/spar/datacite/hasCreatorList");
HASGENERALRESOURCETYPE = factory.createIRI("http://purl.org/spar/datacite/hasGeneralResourceType");
USESMETADATASCHEME = factory.createIRI("http://purl.org/spar/datacite/usesMetadataScheme");
HASURL = factory.createIRI("http://purl.org/spar/fabio/hasURL");
TOPOBJECTPROPERTY = factory.createIRI("http://www.w3.org/2002/07/owl#topObjectProperty");
HASDESCRIPTION = factory.createIRI("http://purl.org/spar/datacite/hasDescription");
HASDESCRIPTIONTYPE = factory.createIRI("http://purl.org/spar/datacite/hasDescriptionType");
TYPE = factory.createIRI("http://purl.org/dc/terms/type");
HASIDENTIFIER = factory.createIRI("http://purl.org/spar/datacite/hasIdentifier");
USESIDENTIFIERSCHEME = factory.createIRI("http://purl.org/spar/datacite/usesIdentifierScheme");

}

/** Utility class; private constructor to prevent instance being created. */
private DATACITE() {
}
}
102 changes: 102 additions & 0 deletions src/main/java/nl/dtls/fairdatapoint/vocabulary/FDP.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/**
* The MIT License
* Copyright © 2017 DTL
*
* 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 nl.dtls.fairdatapoint.vocabulary;

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

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

/** <tt>https://w3id.org/fdp/fdp-o#DeprecatedClasses</tt> */
public static final IRI DEPRECATEDCLASSES;

/** <tt>https://w3id.org/fdp/fdp-o#FAIRDataPoint</tt> */
public static final IRI FAIRDATAPOINT;

/** <tt>https://w3id.org/fdp/fdp-o#Metadata</tt> */
public static final IRI METADATA;

/** <tt>https://w3id.org/fdp/fdp-o#MetadataService</tt> */
public static final IRI METADATASERVICE;

/** <tt>https://w3id.org/fdp/fdp-o#deprecatedObjectProperties</tt> */
public static final IRI DEPRECATEDOBJECTPROPERTIES;

/** <tt>https://w3id.org/fdp/fdp-o#fdpIdentifier</tt> */
public static final IRI FDPIDENTIFIER;

/** <tt>https://w3id.org/fdp/fdp-o#metadataCatalog</tt> */
public static final IRI METADATACATALOG;

/** <tt>https://w3id.org/fdp/fdp-o#metadataIdentifier</tt> */
public static final IRI METADATAIDENTIFIER;

/** <tt>https://w3id.org/fdp/fdp-o#servesMetadata</tt> */
public static final IRI SERVESMETADATA;

/** <tt>https://w3id.org/fdp/fdp-o#fdpEndDate</tt> */
public static final IRI FDPENDDATE;

/** <tt>https://w3id.org/fdp/fdp-o#fdpSoftwareVersion</tt> */
public static final IRI FDPSOFTWAREVERSION;

/** <tt>https://w3id.org/fdp/fdp-o#fdpStartDate</tt> */
public static final IRI FDPSTARTDATE;

/** <tt>https://w3id.org/fdp/fdp-o#fdpUILanguage</tt> */
public static final IRI FDPUILANGUAGE;

/** <tt>https://w3id.org/fdp/fdp-o#metadataIssued</tt> */
public static final IRI METADATAISSUED;

/** <tt>https://w3id.org/fdp/fdp-o#metadataModified</tt> */
public static final IRI METADATAMODIFIED;

static {
final ValueFactory factory = SimpleValueFactory.getInstance();

DEPRECATEDCLASSES = factory.createIRI("https://w3id.org/fdp/fdp-o#DeprecatedClasses");
FAIRDATAPOINT = factory.createIRI("https://w3id.org/fdp/fdp-o#FAIRDataPoint");
METADATA = factory.createIRI("https://w3id.org/fdp/fdp-o#Metadata");
METADATASERVICE = factory.createIRI("https://w3id.org/fdp/fdp-o#MetadataService");
DEPRECATEDOBJECTPROPERTIES = factory.createIRI("https://w3id.org/fdp/fdp-o#deprecatedObjectProperties");
FDPIDENTIFIER = factory.createIRI("https://w3id.org/fdp/fdp-o#fdpIdentifier");
METADATACATALOG = factory.createIRI("https://w3id.org/fdp/fdp-o#metadataCatalog");
METADATAIDENTIFIER = factory.createIRI("https://w3id.org/fdp/fdp-o#metadataIdentifier");
SERVESMETADATA = factory.createIRI("https://w3id.org/fdp/fdp-o#servesMetadata");
FDPENDDATE = factory.createIRI("https://w3id.org/fdp/fdp-o#fdpEndDate");
FDPSOFTWAREVERSION = factory.createIRI("https://w3id.org/fdp/fdp-o#fdpSoftwareVersion");
FDPSTARTDATE = factory.createIRI("https://w3id.org/fdp/fdp-o#fdpStartDate");
FDPUILANGUAGE = factory.createIRI("https://w3id.org/fdp/fdp-o#fdpUILanguage");
METADATAISSUED = factory.createIRI("https://w3id.org/fdp/fdp-o#metadataIssued");
METADATAMODIFIED = factory.createIRI("https://w3id.org/fdp/fdp-o#metadataModified");

}

/** Utility class; private constructor to prevent instance being created. */
private FDP() {
}
}
Loading
Loading