org.topbraid.spin.util
Class JenaDatatypes
java.lang.Object
org.topbraid.spin.util.JenaDatatypes
public class JenaDatatypes
- extends java.lang.Object
Some static utilities dealing with datatypes and literals.
- Author:
- Holger Knublauch
Field Summary |
static Literal |
TRUE
|
Method Summary |
static Literal |
createInteger(int value)
|
static java.util.List<java.lang.String> |
getDatatypeURIs()
Gets a List of all datatype URIs. |
static boolean |
isNumeric(java.lang.String datatypeURI)
Checks if a given URI is a numeric datatype URI. |
static boolean |
isSystemDatatype(RDFNode node)
Checks if a given RDFNode represents a system XSD datatype such as xsd:int. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRUE
public static final Literal TRUE
JenaDatatypes
public JenaDatatypes()
createInteger
public static Literal createInteger(int value)
getDatatypeURIs
public static java.util.List<java.lang.String> getDatatypeURIs()
- Gets a List of all datatype URIs.
- Returns:
- a List the datatype URIs
isNumeric
public static boolean isNumeric(java.lang.String datatypeURI)
- Checks if a given URI is a numeric datatype URI.
- Parameters:
datatypeURI
- the URI of the datatype to test
- Returns:
- true if so
isSystemDatatype
public static boolean isSystemDatatype(RDFNode node)
- Checks if a given RDFNode represents a system XSD datatype such as xsd:int.
Note: this will not return true on user-defined datatypes or rdfs:Literal.
- Parameters:
node
- the node to test
- Returns:
- true if node is a datatype