Skip to content

Commit

Permalink
Simplify vocabulary package implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn committed Jan 4, 2018
1 parent ca5aaf6 commit 93d983a
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class ACL extends BaseVocabulary {
public final class ACL {

/* Namespace */
public static final String URI = "http://www.w3.org/ns/auth/acl#";
Expand Down Expand Up @@ -50,6 +52,6 @@ public final class ACL extends BaseVocabulary {
public static final IRI owner = createIRI(URI + "owner");

private ACL() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class AS extends BaseVocabulary {
public final class AS {

/* Namespace */
public static final String URI = "https://www.w3.org/ns/activitystreams#";
Expand Down Expand Up @@ -169,6 +171,6 @@ public final class AS extends BaseVocabulary {
public static final IRI source = createIRI(URI + "source");

private AS() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class DC extends BaseVocabulary {
public final class DC {

/* Namespace */
public static final String URI = "http://purl.org/dc/terms/";
Expand Down Expand Up @@ -109,7 +111,7 @@ public final class DC extends BaseVocabulary {
public static final IRI valid = createIRI(URI + "valid");

private DC() {
super();
// prevent instantiation
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class FOAF extends BaseVocabulary {
public final class FOAF {

/* Namespace */
public static final String URI = "http://xmlns.com/foaf/0.1/";
Expand All @@ -48,6 +50,6 @@ public final class FOAF extends BaseVocabulary {
public static final IRI weblog = createIRI(URI + "weblog");

private FOAF() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class JSONLD extends BaseVocabulary {
public final class JSONLD {

/* Namespace */
public static final String URI = "http://www.w3.org/ns/json-ld#";
Expand All @@ -38,6 +40,6 @@ public final class JSONLD extends BaseVocabulary {
public static final IRI flattened = createIRI(URI + "flattened");

private JSONLD() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class LDP extends BaseVocabulary {
public final class LDP {

/* Namespace */
public static final String URI = "http://www.w3.org/ns/ldp#";
Expand Down Expand Up @@ -68,6 +70,6 @@ public final class LDP extends BaseVocabulary {
public static final IRI MemberSubject = createIRI(URI + "MemberSubject");

private LDP() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class Memento extends BaseVocabulary {
public final class Memento {

/* Namespace */
public static final String URI = "http://mementoweb.org/ns#";
Expand All @@ -41,6 +43,6 @@ public final class Memento extends BaseVocabulary {
public static final IRI original = createIRI(URI + "original");

private Memento() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class OA extends BaseVocabulary {
public final class OA {

/* Namespace */
public static final String URI = "http://www.w3.org/ns/oa#";
Expand Down Expand Up @@ -103,6 +105,6 @@ public final class OA extends BaseVocabulary {
public static final IRI PreferContainedIRIs = createIRI(URI + "PreferContainedIRIs");

private OA() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class PROV extends BaseVocabulary {
public final class PROV {

/* Namespace */
public static final String URI = "http://www.w3.org/ns/prov#";
Expand Down Expand Up @@ -119,6 +121,6 @@ public final class PROV extends BaseVocabulary {
public static final IRI wasInfluencedBy = createIRI(URI + "wasInfluencedBy");

private PROV() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -23,7 +25,7 @@
*
* @author acoburn
*/
public final class RDF extends BaseVocabulary {
public final class RDF {

/* Namespace */
public static final String URI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
Expand Down Expand Up @@ -54,6 +56,6 @@ public final class RDF extends BaseVocabulary {
public static final IRI rest = createIRI(URI + "rest");

private RDF() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -23,7 +25,7 @@
*
* @author acoburn
*/
public final class RDFS extends BaseVocabulary {
public final class RDFS {

/* Namespace */
public static final String URI = "http://www.w3.org/2000/01/rdf-schema#";
Expand All @@ -48,6 +50,6 @@ public final class RDFS extends BaseVocabulary {
public static final IRI member = createIRI(URI + "member");

private RDFS() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class SKOS extends BaseVocabulary {
public final class SKOS {

/* Namespace */
public static final String URI = "http://www.w3.org/2004/02/skos/core#";
Expand Down Expand Up @@ -64,6 +66,6 @@ public final class SKOS extends BaseVocabulary {
public static final IRI closeMatch = createIRI(URI + "closeMatch");

private SKOS() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class Time extends BaseVocabulary {
public final class Time {

/* Namespace */
public static final String URI = "http://www.w3.org/2006/time#";
Expand Down Expand Up @@ -129,6 +131,6 @@ public final class Time extends BaseVocabulary {
public static final IRI Wednesday = createIRI(URI + "Wednesday");

private Time() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class Trellis extends BaseVocabulary {
public final class Trellis {

/* Namespace */
public static final String URI = "http://www.trellisldp.org/ns/trellis#";
Expand All @@ -48,6 +50,6 @@ public final class Trellis extends BaseVocabulary {
public static final IRI PreferUserManaged = createIRI(URI + "PreferUserManaged");

private Trellis() {
super();
// prevent instantiation
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.trellisldp.vocabulary;

import static org.trellisldp.vocabulary.VocabUtils.createIRI;

import org.apache.commons.rdf.api.IRI;

/**
Expand All @@ -22,7 +24,7 @@
*
* @author acoburn
*/
public final class VCARD extends BaseVocabulary {
public final class VCARD {

/* Namespace */
public static final String URI = "http://www.w3.org/2006/vcard/ns#";
Expand Down Expand Up @@ -145,6 +147,6 @@ public final class VCARD extends BaseVocabulary {
public static final IRI value = createIRI(URI + "value");

private VCARD() {
super();
// prevent instantiation
}
}
Loading

0 comments on commit 93d983a

Please sign in to comment.