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 TypeMethodDescriptionvoidOntResource.addComment(Literal comment) Add the given comment to this resource.voidAdd the given label to this resource.voidAdd a literal to the enumeration that defines the permissible values of this class.booleanOntResource.hasComment(Literal comment) Answer true if this resource has the given comment.booleanAnswer true if this resource has the given labelbooleanAnswer true if the given literal is one of the enumerated literals that are the permissible values of this datarange.voidOntResource.removeComment(Literal comment) Remove the statement that the given string is a comment on this resource.voidOntResource.removeLabel(Literal label) Remove the statement that the given string is a label for this resource.voidDataRange.removeOneOf(Literal lit) Remove the statement that this enumeration includeslitamong 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 TypeMethodDescriptionvoidOntResourceImpl.addComment(Literal comment) Add the given comment to this resource.voidAdd the given label to this resource.voidAdd a literal to the enumeration that defines the permissible values of this class.booleanOntResourceImpl.hasComment(Literal comment) Answer true if this resource has the given comment.booleanAnswer true if this resource has the given labelbooleanAnswer true if the given literal is one of the enumerated literals that are the permissible values of this datarange.voidOntResourceImpl.removeComment(Literal comment) Remove the statement that the given string is a comment on this resource.voidOntResourceImpl.removeLabel(Literal label) Remove the statement that the given string is a label for this resource.voidDataRangeImpl.removeOneOf(Literal lit) Remove the statement that this enumeration includeslitamong 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 LiteralResourceFactory.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, String language) Create an untyped literal from a String value with a specified language.Model.createLiteral(String v, String language, String baseDirection) Create an untyped literal from a String value with a specified language.ModelCon.createLiteral(String v) create a literal from a String value.static LiteralResourceFactory.createPlainLiteral(String string) Answer a string (xsd:string) literal.static LiteralResourceFactory.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 LiteralResourceFactory.createTypedLiteral(Object value) Answer a typed literal.static LiteralResourceFactory.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 propertypwith the pre-constructed Literal valueoto this resource, ie add (this, p, o) to this's model.booleanLiteral.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()StatementTermImpl.asLiteral()ModelCom.createLiteral(String v) ModelCom.createLiteral(String v, String l) ModelCom.createLiteral(String v, String l, String d) 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 LiteralStatementBase.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 booleanUtil.isDirLangString(Literal lit) Return true if the literal is well-formed, has a language tag and a base direction.static booleanUtil.isLangString(Literal lit) Return true if the literal has a language tag.static booleanUtil.isSimpleString(Literal lit) Return true if the literal is a simple string.booleanLiteralImpl.sameValueAs(Literal other) Test that two literals are semantically equivalent.