Uses of Interface
org.apache.jena.rdf.model.Literal
Packages that use Literal
Package
Description
Provides a set of abstractions and convenience classes for accessing and manipluating ontologies
represented in RDF.
Provides default implementations for the abstractions defined in the
org.apache.jena.ontology
package.A package for creating and manipulating RDF graphs.
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 -
Uses of Literal in org.apache.jena.ontology
Methods in org.apache.jena.ontology that return types with arguments of type LiteralModifier and TypeMethodDescriptionDataRange.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 LiteralModifier and TypeMethodDescriptionvoid
OntResource.addComment
(Literal comment) Add the given comment to this resource.void
Add the given label to this resource.void
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
Answer true if this resource has the given labelboolean
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 -
Uses of Literal in org.apache.jena.ontology.impl
Methods in org.apache.jena.ontology.impl that return types with arguments of type LiteralModifier and TypeMethodDescriptionDataRangeImpl.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 LiteralModifier and TypeMethodDescriptionvoid
OntResourceImpl.addComment
(Literal comment) Add the given comment to this resource.void
Add the given label to this resource.void
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
Answer true if this resource has the given labelboolean
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 -
Uses of Literal in org.apache.jena.rdf.model
Methods in org.apache.jena.rdf.model that return LiteralModifier and TypeMethodDescriptionRDFNode.asLiteral()
If this node is a Literal, answer that literal; otherwise throw an exception.static Literal
ResourceFactory.createLangLiteral
(String string, String lang) Answer a literal with language and the given content.ResourceFactory.Interface.createLangLiteral
(String string, String lang) Answer a plain (untyped) literal with no language and the given content.Model.createLiteral
(String v, boolean wellFormed) Create a literal from a String value.Model.createLiteral
(String v, String language) Create an untyped literal from a String value with a specified language.ModelCon.createLiteral
(String v) create a literal from a String value.static Literal
ResourceFactory.createPlainLiteral
(String string) Answer a string (xsd:string) literal.default Literal
ResourceFactory.Interface.createPlainLiteral
(String string) Deprecated.static Literal
ResourceFactory.createStringLiteral
(String string) Answer a string (xsd:string) literal.ResourceFactory.Interface.createStringLiteral
(String string) Answer a string (xsd:string) literal.Model.createTypedLiteral
(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.Model.createTypedLiteral
(Object value, RDFDatatype dtype) Build a typed literal from its value form.Model.createTypedLiteral
(String lex, RDFDatatype dtype) Build a typed literal from its lexical form.ModelCon.createTypedLiteral
(boolean v) create a type literal from a boolean value.ModelCon.createTypedLiteral
(char v) create a typed literal from a char value.ModelCon.createTypedLiteral
(double v) create a typed literal from a double value.ModelCon.createTypedLiteral
(float v) create a typed literal from a float value.ModelCon.createTypedLiteral
(int v) create a typed literal from an integer value.ModelCon.createTypedLiteral
(long v) create a typed literal from an integer value.ModelCon.createTypedLiteral
(Object v) create a literal from an Object.ModelCon.createTypedLiteral
(Object value, String typeURI) Build a typed literal from its value form.ModelCon.createTypedLiteral
(String v) create a typed literal from a String value.ModelCon.createTypedLiteral
(String lex, String typeURI) Build a typed literal from its lexical form.ModelCon.createTypedLiteral
(Calendar d) Create a typed literal of type xsd:dateTime from a Calendar object.static Literal
ResourceFactory.createTypedLiteral
(Object value) Answer a typed literal.static Literal
ResourceFactory.createTypedLiteral
(String string, RDFDatatype dType) Answer a typed literal.ResourceFactory.Interface.createTypedLiteral
(Object value) Answer a typed literal.ResourceFactory.Interface.createTypedLiteral
(String string, RDFDatatype datatype) Answer a typed literal.Alt.getDefaultLiteral()
Return the default value for this resource.Seq.getLiteral
(int index) Get the member at a given index.Statement.getLiteral()
Return the object of the statement.Answer a version of this literal in the model m.Methods in org.apache.jena.rdf.model with parameters of type LiteralModifier and TypeMethodDescriptionModelCon.addLiteral
(Resource s, Property p, Literal o) add a statement to this model.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.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 LiteralMethods in org.apache.jena.rdf.model.impl that return LiteralModifier and TypeMethodDescriptionLiteralImpl.asLiteral()
ResourceImpl.asLiteral()
ModelCom.createLiteral
(String v) ModelCom.createLiteral
(String v, boolean wellFormed) ModelCom.createLiteral
(String v, String l) ModelCom.createLiteral
(String v, String l, boolean wellFormed) ModelCom.createTypedLiteral
(boolean v) create a type literal from a boolean value.ModelCom.createTypedLiteral
(char v) create a typed literal from a char value.ModelCom.createTypedLiteral
(double v) create a typed literal from a double value.ModelCom.createTypedLiteral
(float v) create a typed literal from a float value.ModelCom.createTypedLiteral
(int v) create a typed literal from an integer value.ModelCom.createTypedLiteral
(long v) create a typed literal from a long integer value.ModelCom.createTypedLiteral
(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.ModelCom.createTypedLiteral
(Object value, String typeURI) Build a typed literal from its value form.ModelCom.createTypedLiteral
(Object value, RDFDatatype dtype) Build a typed literal from its value form.ModelCom.createTypedLiteral
(String v) create a typed literal from a String value.ModelCom.createTypedLiteral
(String lex, String typeURI) Build a typed literal from its lexical form.ModelCom.createTypedLiteral
(String lex, RDFDatatype dtype) Build a typed literal from its lexical form.ModelCom.createTypedLiteral
(Calendar cal) Create a typed literal xsd:dateTime from a Calendar object.AltImpl.getDefaultLiteral()
SeqImpl.getLiteral
(int index) abstract Literal
StatementBase.getLiteral()
Answer the object of this statement as a Literal, or throw a LiteralRequiredException.StatementImpl.getLiteral()
get the object field of this statement, insisting that it be a Literal.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 LiteralModifier and TypeMethodDescriptionModelCom.addLiteral
(Resource s, Property p, Literal o) 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.