org.semanticweb.owlapi.util
Class OWLDataUtil
java.lang.Object
org.semanticweb.owlapi.util.OWLDataUtil
public class OWLDataUtil
- extends java.lang.Object
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 06-Jan-2007
A collection of utility methods for creating common data values and data ranges
Method Summary |
static
|
getDatatype(OWLDataFactory dataFactory,
N n)
Given a Number , this method returns the datatype of
that number. |
static OWLDatatype |
getDoubleDatatype(OWLDataFactory dataFactory)
|
static java.util.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
|
getMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory,
N maxExclusive)
|
static
|
getMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory,
N maxInclusive)
|
static
|
getMinExclusiveRestrictedInt(OWLDataFactory dataFactory,
N minExclusive)
|
static
|
getMinInclusiveRestrictedInt(OWLDataFactory dataFactory,
N minInclusive)
|
static
|
getMinMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory,
N minExclusive,
N maxExclusive)
|
static
|
getMinMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory,
N minInclusive,
N maxInclusive)
|
static
|
getTypedConstant(OWLDataFactory dataFactory,
N val)
Given a number, returns a typed constant that represent the number. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OWLDataUtil
public OWLDataUtil()
getIntDatatype
public static OWLDatatype getIntDatatype(OWLDataFactory dataFactory)
throws OWLException
- Throws:
OWLException
getLongDatatype
public static OWLDatatype getLongDatatype(OWLDataFactory dataFactory)
throws OWLException
- Throws:
OWLException
getFloatDatatype
public static OWLDatatype getFloatDatatype(OWLDataFactory dataFactory)
throws OWLException
- Throws:
OWLException
getDoubleDatatype
public static OWLDatatype getDoubleDatatype(OWLDataFactory dataFactory)
throws OWLException
- Throws:
OWLException
getDatatype
public static <N extends java.lang.Number> OWLDatatype getDatatype(OWLDataFactory dataFactory,
N n)
- Given a
Number
, this method returns the datatype of
that number.
- Parameters:
n
- The Number
whose datatype is to be obtained.
- Returns:
- The datatype that corresponds to the type of number.
getFacetRestrictionSet
public static java.util.Set<OWLFacetRestriction> getFacetRestrictionSet(OWLDataFactory dataFactory,
OWLFacet facet,
OWLLiteral facetValue)
getTypedConstant
public static <N extends java.lang.Number> OWLLiteral getTypedConstant(OWLDataFactory dataFactory,
N val)
- Given a number, returns a typed constant that represent the number.
- Parameters:
val
- The number to be translated to a typed constant.
- Returns:
- The typed constant, consisting of a string literal and datatype that
corresponds to the translation of the specified number.
getMinInclusiveRestrictedInt
public static <N extends java.lang.Number> OWLDataRange getMinInclusiveRestrictedInt(OWLDataFactory dataFactory,
N minInclusive)
getMinExclusiveRestrictedInt
public static <N extends java.lang.Number> OWLDataRange getMinExclusiveRestrictedInt(OWLDataFactory dataFactory,
N minExclusive)
getMaxInclusiveRestrictedInteger
public static <N extends java.lang.Number> OWLDataRange getMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory,
N maxInclusive)
getMaxExclusiveRestrictedInteger
public static <N extends java.lang.Number> OWLDataRange getMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory,
N maxExclusive)
getMinMaxInclusiveRestrictedInteger
public static <N extends java.lang.Number> OWLDataRange getMinMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory,
N minInclusive,
N maxInclusive)
getMinMaxExclusiveRestrictedInteger
public static <N extends java.lang.Number> OWLDataRange getMinMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory,
N minExclusive,
N maxExclusive)