Uses of Interface
org.apache.jena.rdf.model.Literal
-
Packages that use Literal Package Description org.apache.jena.assembler org.apache.jena.ontology Provides a set of abstractions and convenience classes for accessing and manipluating ontologies represented in RDF.org.apache.jena.ontology.impl Provides default implementations for the abstractions defined in theorg.apache.jena.ontology
package.org.apache.jena.rdf.model A package for creating and manipulating RDF graphs.org.apache.jena.rdf.model.impl This package contains implementations of the interfaces defined in the .model package, eg ModelCom for Model, ResourceImpl for Resource, and so on. -
-
Uses of Literal in org.apache.jena.assembler
Methods in org.apache.jena.assembler with parameters of type Literal Modifier and Type Method Description static java.lang.String
AssemblerHelp. getString(Statement s, Literal L)
Answer the String value of the literalL
, which is the object of the Statements
. -
Uses of Literal in org.apache.jena.ontology
Methods in org.apache.jena.ontology that return types with arguments of type Literal Modifier and Type Method Description ExtendedIterator<Literal>
DataRange. listOneOf()
Answer an iterator over all of the literals that are declared to be the permissible values for this class.Methods in org.apache.jena.ontology with parameters of type Literal Modifier and Type Method Description void
OntResource. addComment(Literal comment)
Add the given comment to this resource.void
OntResource. addLabel(Literal label)
Add the given label to this resource.void
DataRange. addOneOf(Literal lit)
Add a literal to the enumeration that defines the permissible values of this class.boolean
OntResource. hasComment(Literal comment)
Answer true if this resource has the given comment.boolean
OntResource. hasLabel(Literal label)
Answer true if this resource has the given labelboolean
DataRange. hasOneOf(Literal lit)
Answer true if the given literal is one of the enumerated literals that are the permissible values of this datarange.void
OntResource. removeComment(Literal comment)
Remove the statement that the given string is a comment on this resource.void
OntResource. removeLabel(Literal label)
Remove the statement that the given string is a label for this resource.void
DataRange. removeOneOf(Literal lit)
Remove the statement that this enumeration includeslit
among its members.Method parameters in org.apache.jena.ontology with type arguments of type Literal Modifier and Type Method Description void
DataRange. addOneOf(java.util.Iterator<Literal> literals)
Add each literal from the given iteration to the enumeration that defines the permissible values of this datarange. -
Uses of Literal in org.apache.jena.ontology.impl
Methods in org.apache.jena.ontology.impl that return types with arguments of type Literal Modifier and Type Method Description ExtendedIterator<Literal>
DataRangeImpl. listOneOf()
Answer an iterator over all of the literals that are declared to be the permissible values for this class.Methods in org.apache.jena.ontology.impl with parameters of type Literal Modifier and Type Method Description void
OntResourceImpl. addComment(Literal comment)
Add the given comment to this resource.void
OntResourceImpl. addLabel(Literal label)
Add the given label to this resource.void
DataRangeImpl. addOneOf(Literal lit)
Add a literal to the enumeration that defines the permissible values of this class.boolean
OntResourceImpl. hasComment(Literal comment)
Answer true if this resource has the given comment.boolean
OntResourceImpl. hasLabel(Literal label)
Answer true if this resource has the given labelboolean
DataRangeImpl. hasOneOf(Literal lit)
Answer true if the given literal is one of the enumerated literals that are the permissible values of this datarange.void
OntResourceImpl. removeComment(Literal comment)
Remove the statement that the given string is a comment on this resource.void
OntResourceImpl. removeLabel(Literal label)
Remove the statement that the given string is a label for this resource.void
DataRangeImpl. removeOneOf(Literal lit)
Remove the statement that this enumeration includeslit
among its members.Method parameters in org.apache.jena.ontology.impl with type arguments of type Literal Modifier and Type Method Description void
DataRangeImpl. addOneOf(java.util.Iterator<Literal> literals)
Add each literal from the given iteration to the enumeration that defines the permissible values of this datarange. -
Uses of Literal in org.apache.jena.rdf.model
Methods in org.apache.jena.rdf.model that return Literal Modifier and Type Method Description Literal
RDFNode. asLiteral()
If this node is a Literal, answer that literal; otherwise throw an exception.static Literal
ResourceFactory. createLangLiteral(java.lang.String string, java.lang.String lang)
Answer a literal with language and the given content.Literal
ResourceFactory.Interface. createLangLiteral(java.lang.String string, java.lang.String lang)
Answer a plain (untyped) literal with no language and the given content.Literal
Model. createLiteral(java.lang.String v, boolean wellFormed)
Create a literal from a String value.Literal
Model. createLiteral(java.lang.String v, java.lang.String language)
Create an untyped literal from a String value with a specified language.Literal
ModelCon. createLiteral(java.lang.String v)
create a literal from a String value.static Literal
ResourceFactory. createPlainLiteral(java.lang.String string)
Answer a string (xsd:string) literal.default Literal
ResourceFactory.Interface. createPlainLiteral(java.lang.String string)
Deprecated.static Literal
ResourceFactory. createStringLiteral(java.lang.String string)
Answer a string (xsd:string) literal.Literal
ResourceFactory.Interface. createStringLiteral(java.lang.String string)
Answer a string (xsd:string) literal.Literal
Model. createTypedLiteral(java.lang.Object value)
Build a typed literal label from its value form using whatever datatype is currently registered as the the default representation for this java class.Literal
Model. createTypedLiteral(java.lang.Object value, RDFDatatype dtype)
Build a typed literal from its value form.Literal
Model. createTypedLiteral(java.lang.String lex, RDFDatatype dtype)
Build a typed literal from its lexical form.Literal
ModelCon. createTypedLiteral(boolean v)
create a type literal from a boolean value.Literal
ModelCon. createTypedLiteral(char v)
create a typed literal from a char value.Literal
ModelCon. createTypedLiteral(double v)
create a typed literal from a double value.Literal
ModelCon. createTypedLiteral(float v)
create a typed literal from a float value.Literal
ModelCon. createTypedLiteral(int v)
create a typed literal from an integer value.Literal
ModelCon. createTypedLiteral(long v)
create a typed literal from an integer value.Literal
ModelCon. createTypedLiteral(java.lang.Object v)
create a literal from an Object.Literal
ModelCon. createTypedLiteral(java.lang.Object value, java.lang.String typeURI)
Build a typed literal from its value form.Literal
ModelCon. createTypedLiteral(java.lang.String v)
create a typed literal from a String value.Literal
ModelCon. createTypedLiteral(java.lang.String lex, java.lang.String typeURI)
Build a typed literal from its lexical form.Literal
ModelCon. createTypedLiteral(java.util.Calendar d)
Create a typed literal of type xsd:dateTime from a Calendar object.static Literal
ResourceFactory. createTypedLiteral(java.lang.Object value)
Answer a typed literal.static Literal
ResourceFactory. createTypedLiteral(java.lang.String string, RDFDatatype dType)
Answer a typed literal.Literal
ResourceFactory.Interface. createTypedLiteral(java.lang.Object value)
Answer a typed literal.Literal
ResourceFactory.Interface. createTypedLiteral(java.lang.String string, RDFDatatype datatype)
Answer a typed literal.Literal
Alt. getDefaultLiteral()
Return the default value for this resource.Literal
Seq. getLiteral(int index)
Get the member at a given index.Literal
Statement. getLiteral()
Return the object of the statement.Literal
Literal. inModel(Model m)
Answer a version of this literal in the model m.Methods in org.apache.jena.rdf.model with parameters of type Literal Modifier and Type Method Description Model
ModelCon. addLiteral(Resource s, Property p, Literal o)
add a statement to this model.Resource
Resource. addLiteral(Property p, Literal o)
Add the propertyp
with the pre-constructed Literal valueo
to this resource, ie add (this, p, o) to this's model.boolean
Literal. sameValueAs(Literal other)
Test that two literals are semantically equivalent.java.lang.Object
RDFVisitor. visitLiteral(Literal l)
Method to call when visiting a literal RDF node l. -
Uses of Literal in org.apache.jena.rdf.model.impl
Classes in org.apache.jena.rdf.model.impl that implement Literal Modifier and Type Class Description class
LiteralImpl
An implementation of Literal.Methods in org.apache.jena.rdf.model.impl that return Literal Modifier and Type Method Description Literal
LiteralImpl. asLiteral()
Literal
ResourceImpl. asLiteral()
Literal
ModelCom. createLiteral(java.lang.String v)
Literal
ModelCom. createLiteral(java.lang.String v, boolean wellFormed)
Literal
ModelCom. createLiteral(java.lang.String v, java.lang.String l)
Literal
ModelCom. createLiteral(java.lang.String v, java.lang.String l, boolean wellFormed)
Literal
ModelCom. createTypedLiteral(boolean v)
create a type literal from a boolean value.Literal
ModelCom. createTypedLiteral(char v)
create a typed literal from a char value.Literal
ModelCom. createTypedLiteral(double v)
create a typed literal from a double value.Literal
ModelCom. createTypedLiteral(float v)
create a typed literal from a float value.Literal
ModelCom. createTypedLiteral(int v)
create a typed literal from an integer value.Literal
ModelCom. createTypedLiteral(long v)
create a typed literal from a long integer value.Literal
ModelCom. createTypedLiteral(java.lang.Object value)
Build a typed literal label from its value form using whatever datatype is currently registered as the the default representation for this java class.Literal
ModelCom. createTypedLiteral(java.lang.Object value, java.lang.String typeURI)
Build a typed literal from its value form.Literal
ModelCom. createTypedLiteral(java.lang.Object value, RDFDatatype dtype)
Build a typed literal from its value form.Literal
ModelCom. createTypedLiteral(java.lang.String v)
create a typed literal from a String value.Literal
ModelCom. createTypedLiteral(java.lang.String lex, java.lang.String typeURI)
Build a typed literal from its lexical form.Literal
ModelCom. createTypedLiteral(java.lang.String lex, RDFDatatype dtype)
Build a typed literal from its lexical form.Literal
ModelCom. createTypedLiteral(java.util.Calendar cal)
Create a typed literal xsd:dateTime from a Calendar object.Literal
AltImpl. getDefaultLiteral()
Literal
SeqImpl. getLiteral(int index)
abstract Literal
StatementBase. getLiteral()
Answer the object of this statement as a Literal, or throw a LiteralRequiredException.Literal
StatementImpl. getLiteral()
get the object field of this statement, insisting that it be a Literal.Literal
LiteralImpl. inModel(Model m)
Literals are not in any particular model, and so inModel can return this.Methods in org.apache.jena.rdf.model.impl with parameters of type Literal Modifier and Type Method Description Model
ModelCom. addLiteral(Resource s, Property p, Literal o)
Resource
ResourceImpl. addLiteral(Property p, Literal o)
static boolean
Util. isLangString(Literal lit)
Return true if the literal has a language tag.static boolean
Util. isSimpleString(Literal lit)
Return true if the literal is a simple string.boolean
LiteralImpl. sameValueAs(Literal other)
Test that two literals are semantically equivalent.
-