public class OWLLiteralImplPlain extends OWLObjectImpl implements OWLLiteral
| Constructor and Description |
|---|
OWLLiteralImplPlain(String literal,
String lang) |
| Modifier and Type | Method and Description |
|---|---|
OWLDatatype |
getDatatype()
Gets the
OWLDatatype which types this literal. |
String |
getLang()
Gets the language tag of the literal.
|
String |
getLiteral()
Gets the lexical value of this literal.
|
boolean |
hasLang()
Determines if this literal has a language tag.
|
boolean |
hasLang(String l)
Determines if this
OWLLiteral has a particular language tag. |
boolean |
isRDFPlainLiteral()
Determines if the datatype of this literal is
rdf:PlainLiteral. |
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareTo, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, equals, hashCode, individualsInSignature, nestedClassExpressions, objectPropertiesInSignature, signature, toStringaccept, accept, accept, accept, accept, accept, asLiteral, components, hashIndex, isBoolean, isDouble, isFloat, isInteger, parseBoolean, parseDouble, parseFloat, parseInteger, typeIndexasAnonymousIndividual, asIRIgetNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressionscompareTogetSignature, signaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignaturecomponentsAnnotationsFirst, componentsWithoutAnnotationsisAnonymousaddAnonymousIndividualsToSet, addSignatureEntitiesToSetpublic String getLiteral()
OWLLiteralrdf:PlainLiteral then the abbreviated lexical form will be
returned. That is, the language tag is not included.getLiteral in interface OWLLiteralrdf:PlainLiteral then the return values are as follows:
If the literal is of the form "abc@"^^rdf:PlainLiteral
then the return value will be "abc" (without the language tag
included). If the literal is of the form
"abc@langTag"^^rdf:PlainLiteral then the return value
will be "abc" (without the language tag included).public boolean hasLang()
OWLLiteralhasLang in interface OWLLiteraltrue if this literal has a non-empty language tag,
otherwise falsepublic boolean isRDFPlainLiteral()
OWLLiteralrdf:PlainLiteral.
Note that literals that are abbreviated in the functional syntax (and
other concrete syntaxes) and are of the form "abc" or
"abc"@langTag will be of the type rdf:PlainLiteral after
parsing.isRDFPlainLiteral in interface OWLLiteraltrue if the datatype of this literal is rdf:PlainLiteral,
otherwise false.public String getLang()
HasLanggetLang in interface HasLanggetLang in interface OWLLiteralrdf:PlainLiteral, or because its language tag is
empty, then the empty string will be returned.public boolean hasLang(@Nullable String l)
OWLLiteralOWLLiteral has a particular language tag.hasLang in interface OWLLiterall - The specific lang to test for. The tag will be normalised - white
space will be trimmed from the end and it will be converted to
lower case. Null input will be treted as empty.true if this literal has a language tag equal to
lang, otherwise false.public OWLDatatype getDatatype()
OWLLiteralOWLDatatype which types this literal.getDatatype in interface OWLLiteralOWLDatatype that types this literal. Note that for
strings with language tag (previously considered to be untyped
literals) the datatype will be rdf:PlainLiteral. The return value
is never null.Copyright © 2017 The University of Manchester. All Rights Reserved.