-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70e1560
commit afb1583
Showing
1 changed file
with
37 additions
and
0 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,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; | ||
} | ||
} |