public class Literal extends Object implements TermAtomic, IsSparqler, IsExpr
| Modifier and Type | Field and Description |
|---|---|
static URI |
rdfLangString |
static URI |
xsdBoolean |
static URI |
xsdDecimal |
static URI |
xsdDouble |
static URI |
xsdFloat |
static URI |
xsdInteger |
static URI |
xsdString |
| Constructor and Description |
|---|
Literal(String spelling,
String lang) |
Literal(String spelling,
URI type) |
Literal(String spelling,
URI type,
String lang) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static Literal |
fromNumber(Number n) |
static Literal |
fromRDFNode(org.apache.jena.rdf.model.RDFNode node) |
String |
getLanguage() |
String |
getLexicalForm() |
URI |
getLiteralType() |
int |
hashCode() |
void |
toSparql(int precedence,
Settings s,
StringBuilder sb) |
void |
toSparql(Settings s,
StringBuilder sb) |
String |
toString() |
public static final URI xsdBoolean
public static final URI xsdString
public static final URI xsdInteger
public static final URI xsdDecimal
public static final URI xsdFloat
public static final URI xsdDouble
public static final URI rdfLangString
public static Literal fromRDFNode(org.apache.jena.rdf.model.RDFNode node)
public String getLexicalForm()
public String getLanguage()
public URI getLiteralType()
public void toSparql(Settings s, StringBuilder sb)
toSparql in interface IsSparqlerpublic void toSparql(int precedence,
Settings s,
StringBuilder sb)
Copyright © 2017. All rights reserved.