public interface IRIUtils
| Modifier and Type | Field and Description |
|---|---|
static AtomicLong |
_atomic |
static Random |
_random |
static long |
_timeShift |
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
base(Class<T> clazz) |
static <T> org.semanticweb.owlapi.model.IRI |
clazz(Class<T> clazz) |
static <T> String |
core(Class<T> clazz) |
static <T> String |
core(Class<T> clazz,
Method method) |
static Instant |
instantFromRandStr(String rand) |
static Instant |
instantFromShortTime(String hexTime) |
static String |
iriModel2iri(String iri) |
static boolean |
isIRI(String resource)
Deprecated.
|
static <T> org.semanticweb.owlapi.model.IRI |
method(Class<T> clazz,
Method m) |
static <T> org.semanticweb.owlapi.model.IRI |
name(Class<T> clazz,
String entity)
Work for property and individual
|
static <T> org.semanticweb.owlapi.model.IRI |
ontology(Class<T> clazz,
String purpose,
String entity) |
static <T> org.semanticweb.owlapi.model.IRI |
rand(Class<T> clazz) |
static <T> org.semanticweb.owlapi.model.IRI |
rand(Class<T> clazz,
String entity) |
static String |
randId(String begin) |
static String |
randStr() |
static String |
shortTime()
We remove an huge part of the time the flow before the application first start.
|
static String |
shortTime(long epochMilli) |
static final Random _random
static final AtomicLong _atomic
static final long _timeShift
static String shortTime()
static String shortTime(long epochMilli)
static Instant instantFromRandStr(String rand)
rand - is a String generated with the the randStr() method.static String randStr()
static String randId(String begin)
begin - will be placed at the start of the result.@Deprecated static boolean isIRI(String resource)
resource - to checkstatic String iriModel2iri(String iri)
iri - an iri that is potentially valid or with a namespace separator.static <T> org.semanticweb.owlapi.model.IRI name(Class<T> clazz, String entity)
T - the type of the clazzclazz - of the entity. The entity msut have a clazz, at least its class of creation.entity - the name of the object/individual.static <T> org.semanticweb.owlapi.model.IRI rand(Class<T> clazz)
T - type of the classclazz - of the individual use to general the iri of the individualstatic <T> org.semanticweb.owlapi.model.IRI clazz(Class<T> clazz)
Copyright © 2018. All rights reserved.