public class OWLDataUtil extends Object
| Constructor and Description |
|---|
OWLDataUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <N extends Number> |
getDatatype(OWLDataFactory dataFactory,
N n)
Given a
Number, this method returns the datatype of that number. |
static OWLDatatype |
getDoubleDatatype(OWLDataFactory dataFactory) |
static Set<OWLFacetRestriction> |
getFacetRestrictionSet(OWLDataFactory dataFactory,
OWLFacet facet,
OWLLiteral facetValue) |
static OWLDatatype |
getFloatDatatype(OWLDataFactory dataFactory) |
static OWLDatatype |
getIntDatatype(OWLDataFactory dataFactory) |
static OWLDatatype |
getLongDatatype(OWLDataFactory dataFactory) |
static <N extends Number> |
getMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory,
N maxExclusive) |
static <N extends Number> |
getMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory,
N maxInclusive) |
static <N extends Number> |
getMinExclusiveRestrictedInt(OWLDataFactory dataFactory,
N minExclusive) |
static <N extends Number> |
getMinInclusiveRestrictedInt(OWLDataFactory dataFactory,
N minInclusive) |
static <N extends Number> |
getMinMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory,
N minExclusive,
N maxExclusive) |
static <N extends Number> |
getMinMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory,
N minInclusive,
N maxInclusive) |
static <N extends Number> |
getTypedConstant(OWLDataFactory dataFactory,
N val)
Given a number, returns a typed constant that represent the number.
|
public static OWLDatatype getIntDatatype(OWLDataFactory dataFactory)
dataFactory - factory to usepublic static OWLDatatype getLongDatatype(OWLDataFactory dataFactory)
dataFactory - factory to usepublic static OWLDatatype getFloatDatatype(OWLDataFactory dataFactory)
dataFactory - factory to usepublic static OWLDatatype getDoubleDatatype(OWLDataFactory dataFactory)
dataFactory - factory to usepublic static <N extends Number> OWLDatatype getDatatype(OWLDataFactory dataFactory, N n)
Number, this method returns the datatype of that number.N - number typedataFactory - the factory to usen - The Number whose datatype is to be obtained.public static Set<OWLFacetRestriction> getFacetRestrictionSet(OWLDataFactory dataFactory, OWLFacet facet, OWLLiteral facetValue)
dataFactory - the factory to usefacet - the facet to usefacetValue - the value to usepublic static <N extends Number> OWLLiteral getTypedConstant(OWLDataFactory dataFactory, N val)
N - number typedataFactory - the factory to useval - The number to be translated to a typed constant.public static <N extends Number> OWLDataRange getMinInclusiveRestrictedInt(OWLDataFactory dataFactory, N minInclusive)
N - number typedataFactory - the factory to useminInclusive - the valuepublic static <N extends Number> OWLDataRange getMinExclusiveRestrictedInt(OWLDataFactory dataFactory, N minExclusive)
N - number typedataFactory - the factory to useminExclusive - the valuepublic static <N extends Number> OWLDataRange getMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory, N maxInclusive)
N - number typedataFactory - the factory to usemaxInclusive - the valuepublic static <N extends Number> OWLDataRange getMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory, N maxExclusive)
N - number typedataFactory - the factory to usemaxExclusive - the valuepublic static <N extends Number> OWLDataRange getMinMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory, N minInclusive, N maxInclusive)
N - number typedataFactory - the factory to useminInclusive - the min valuemaxInclusive - the max valuepublic static <N extends Number> OWLDataRange getMinMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory, N minExclusive, N maxExclusive)
N - number typedataFactory - the factory to useminExclusive - the min valuemaxExclusive - the max valueCopyright © 2014 The University of Manchester. All Rights Reserved.