java.lang.Object
org.apache.jena.cdt.CompositeDatatypeBase<Map<CDTKey,CDTValue>>
org.apache.jena.cdt.CompositeDatatypeMap
- All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2, boolean sortOrderingCompare) Assumes that the datatype of both of the given literals is cdt:Map.int
getHashCode
(org.apache.jena.graph.impl.LiteralLabel lit) getURI()
getValue
(org.apache.jena.graph.impl.LiteralLabel lit) Assumes that the datatype of the given literal is cdt:Map.boolean
isEqual
(org.apache.jena.graph.impl.LiteralLabel lit1, org.apache.jena.graph.impl.LiteralLabel lit2) static boolean
isMapLiteral
(org.apache.jena.graph.impl.LiteralLabel lit) Returns true if the datatype URI of the givenLiteralLabel
isuri
.static boolean
isMapLiteral
(org.apache.jena.graph.Node n) Returns true if the given node is a literal withuri
as its datatype URI.boolean
boolean
isValidLiteral
(org.apache.jena.graph.impl.LiteralLabel lit) boolean
isValidValue
(Object value) unparseValue
(Map<CDTKey, CDTValue> map) Methods inherited from class org.apache.jena.cdt.CompositeDatatypeBase
cannonicalise, extendedTypeDefinition, getJavaClass, normalizeSubType
-
Field Details
-
uri
- See Also:
-
type
-
-
Method Details
-
getURI
-
isValidValue
-
isValidLiteral
public boolean isValidLiteral(org.apache.jena.graph.impl.LiteralLabel lit) -
isValid
-
parse
public Map<CDTKey,CDTValue> parse(String lexicalForm) throws org.apache.jena.datatypes.DatatypeFormatException - Specified by:
parse
in interfaceorg.apache.jena.datatypes.RDFDatatype
- Specified by:
parse
in classCompositeDatatypeBase<Map<CDTKey,
CDTValue>> - Throws:
org.apache.jena.datatypes.DatatypeFormatException
-
unparse
-
unparseValue
- Specified by:
unparseValue
in classCompositeDatatypeBase<Map<CDTKey,
CDTValue>>
-
getHashCode
public int getHashCode(org.apache.jena.graph.impl.LiteralLabel lit) -
isEqual
public boolean isEqual(org.apache.jena.graph.impl.LiteralLabel lit1, org.apache.jena.graph.impl.LiteralLabel lit2) -
compare
public static int compare(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2, boolean sortOrderingCompare) throws ExprNotComparableException Assumes that the datatype of both of the given literals is cdt:Map. If 'sortOrderingCompare' is true, the two maps are compared as per the semantics for ORDER BY. If 'sortOrderingCompare' is false, the comparison applies the map-less-than semantics.- Throws:
ExprNotComparableException
-
isMapLiteral
public static boolean isMapLiteral(org.apache.jena.graph.Node n) Returns true if the given node is a literal withuri
as its datatype URI. Notice that this does not mean that this literal is actually valid; for checking validity, useisValidLiteral(LiteralLabel)
. -
isMapLiteral
public static boolean isMapLiteral(org.apache.jena.graph.impl.LiteralLabel lit) Returns true if the datatype URI of the givenLiteralLabel
isuri
. Notice that this does not mean that this LiteralLabel is actually valid; for checking validity, useisValidLiteral(LiteralLabel)
. -
getValue
public static Map<CDTKey,CDTValue> getValue(org.apache.jena.graph.impl.LiteralLabel lit) throws org.apache.jena.datatypes.DatatypeFormatException Assumes that the datatype of the given literal is cdt:Map.- Throws:
org.apache.jena.datatypes.DatatypeFormatException
-