Skip to content

Commit

Permalink
Add owl:Thing as a Type
Browse files Browse the repository at this point in the history
  • Loading branch information
daveneiman committed Nov 28, 2017
1 parent 70e1560 commit afb1583
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/main/java/org/ld4l/bib2lod/ontology/OwlThingType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package org.ld4l.bib2lod.ontology;

import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.ResourceFactory;
import org.ld4l.bib2lod.ontology.ld4l.Ld4lNamespace;

public enum OwlThingType implements Type {

/* List in alpha order */
THING(Ld4lNamespace.OWL, "Thing");

private final String uri;
private final Resource ontClass;

/**
* Constructor
*/
OwlThingType(Namespace namespace, String localName) {
this.uri = namespace.uri() + localName;
this.ontClass = ResourceFactory.createResource(uri);
}

@Override
public String uri() {
return uri;
}

@Override
public Resource ontClass() {
return ontClass;
}

@Override
public Type superclass() {
return THING;
}
}

0 comments on commit afb1583

Please sign in to comment.