edu.stanford.smi.protegex.owl.model.impl
Class XMLSchemaDatatypes
java.lang.Object
edu.stanford.smi.protegex.owl.model.impl.XMLSchemaDatatypes
public class XMLSchemaDatatypes
- extends Object
A utility class to manage the mapping of XML datatypes and the OWL classes.
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_LITERAL
public static final String XML_LITERAL
- See Also:
- Constant Field Values
floatTypes
public static final com.hp.hpl.jena.datatypes.xsd.XSDDatatype[] floatTypes
integerTypes
public static final com.hp.hpl.jena.datatypes.xsd.XSDDatatype[] integerTypes
stringTypes
public static final com.hp.hpl.jena.datatypes.xsd.XSDDatatype[] stringTypes
XMLSchemaDatatypes
public XMLSchemaDatatypes()
getAllTypes
public static com.hp.hpl.jena.datatypes.xsd.XSDDatatype[] getAllTypes()
getDate
public static Date getDate(String value)
getDateString
public static String getDateString(Date date)
getDateTimeString
public static String getDateTimeString(Date date)
getDefaultAlias
public static String getDefaultAlias(edu.stanford.smi.protege.model.ValueType valueType)
getDefaultDateValue
public static String getDefaultDateValue()
getDefaultDateTimeValue
public static String getDefaultDateTimeValue()
getDefaultTimeValue
public static String getDefaultTimeValue()
getDefaultXSDDatatype
public static com.hp.hpl.jena.datatypes.xsd.XSDDatatype getDefaultXSDDatatype(edu.stanford.smi.protege.model.ValueType valueType)
getSlotSymbols
public static List getSlotSymbols()
getTimeString
public static String getTimeString(Date date)
getTimeString
public static String getTimeString(int hours,
int minutes,
int seconds)
getValueType
public static edu.stanford.smi.protege.model.ValueType getValueType(String uri)
getValueTypeURI
public static String getValueTypeURI(edu.stanford.smi.protege.model.ValueType valueType)
getXSDDatatype
public static com.hp.hpl.jena.datatypes.xsd.XSDDatatype getXSDDatatype(String alias)
getRDFDatatype
public static com.hp.hpl.jena.datatypes.RDFDatatype getRDFDatatype(RDFSDatatype datatype)
getXSDDatatype
public static com.hp.hpl.jena.datatypes.xsd.XSDDatatype getXSDDatatype(RDFSDatatype datatype)
getXSDDatatypeAlias
public static String getXSDDatatypeAlias(com.hp.hpl.jena.datatypes.xsd.XSDDatatype datatype)
getXSDDatatypeAlias
public static String getXSDDatatypeAlias(String uri)
isDateSlot
public static boolean isDateSlot(RDFProperty property)
isDateTimeSlot
public static boolean isDateTimeSlot(RDFProperty property)
isTimeSlot
public static boolean isTimeSlot(RDFProperty property)
isXMLLiteralSlot
public static boolean isXMLLiteralSlot(edu.stanford.smi.protege.model.Slot slot)
isValidAlias
public static boolean isValidAlias(String alias,
edu.stanford.smi.protege.model.ValueType valueType)
isStringAlias
public static boolean isStringAlias(String alias)
isXMLSchemaSlot
public static boolean isXMLSchemaSlot(RDFProperty property,
com.hp.hpl.jena.datatypes.xsd.XSDDatatype datatype)
isNumericDatatype
public static boolean isNumericDatatype(String uri)
Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.