Package org.aksw.iguana.commons.time
Class DurationLiteral
java.lang.Object
org.aksw.iguana.commons.time.DurationLiteral
- All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype
This class is used to convert a Java Duration object to a typed RDF literal. The literal is typed as
xsd:dayTimeDuration.
TODO: This class temporarily fixes an issue with Jena.
TODO: This class temporarily fixes an issue with Jena.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncannonicalise
(Object value) int
getHashCode
(org.apache.jena.graph.impl.LiteralLabel lit) Class<?>
getURI()
boolean
isEqual
(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2) boolean
boolean
isValidLiteral
(org.apache.jena.graph.impl.LiteralLabel lit) boolean
isValidValue
(Object valueForm) org.apache.jena.datatypes.RDFDatatype
normalizeSubType
(Object value, org.apache.jena.datatypes.RDFDatatype dt)
-
Constructor Details
-
DurationLiteral
-
-
Method Details
-
getLexicalForm
-
getURI
- Specified by:
getURI
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
unparse
- Specified by:
unparse
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
parse
- Specified by:
parse
in interfaceorg.apache.jena.datatypes.RDFDatatype
- Throws:
org.apache.jena.datatypes.DatatypeFormatException
-
isValid
- Specified by:
isValid
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
isValidValue
- Specified by:
isValidValue
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
isValidLiteral
public boolean isValidLiteral(org.apache.jena.graph.impl.LiteralLabel lit) - Specified by:
isValidLiteral
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
isEqual
public boolean isEqual(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2) - Specified by:
isEqual
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
getHashCode
public int getHashCode(org.apache.jena.graph.impl.LiteralLabel lit) - Specified by:
getHashCode
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
getJavaClass
- Specified by:
getJavaClass
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
cannonicalise
- Specified by:
cannonicalise
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
extendedTypeDefinition
- Specified by:
extendedTypeDefinition
in interfaceorg.apache.jena.datatypes.RDFDatatype
-
normalizeSubType
public org.apache.jena.datatypes.RDFDatatype normalizeSubType(Object value, org.apache.jena.datatypes.RDFDatatype dt) - Specified by:
normalizeSubType
in interfaceorg.apache.jena.datatypes.RDFDatatype
-