Uses of Interface
org.apache.jena.rdf.model.Statement
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 defining some useful implementations of
ModelChangedListener
, for listening to
(a) all triples added or removed, exploding composite objects,
(b) all objects added or removed, as themselves,
(c) notification of additions/removals, but no details,
and (d) accepting but ignoring all changes, as a base-class to
be extended.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.
Miscellaneous collection of utility classes.
-
Uses of Statement in org.apache.jena.assembler
Modifier and TypeMethodDescriptionstatic Resource
AssemblerHelp.getResource
(Statement s) Answer the resource that is the object of the statements
.static String
Answer the plain string object of the statements
.static String
Answer the String value of the literalL
, which is the object of the Statements
. -
Uses of Statement in org.apache.jena.ontology
Modifier and TypeMethodDescriptionAnswer a new Path whose elements are this Path withs
added at the endboolean
OntModel.isInBaseModel
(Statement stmt) Answer true if the given statement is defined in the base model of this ontology model.boolean
Modifier and TypeMethodDescriptionstatic OntTools.Path
Answer the shortest path from thestart
resource to theend
RDF node, such that every step on the path is accepted by the given filter. -
Uses of Statement in org.apache.jena.ontology.impl
Modifier and TypeMethodDescriptionOntModelImpl.getDerivation
(Statement statement) Return the derivation of the given statement (which should be the result of some previous list operation).boolean
OntModelImpl.isInBaseModel
(Statement stmt) Answer true if the given statement is defined in the base model of this ontology model. -
Uses of Statement in org.apache.jena.rdf.listeners
Modifier and TypeMethodDescriptionvoid
ChangedListener.addedStatement
(Statement s) void
NullListener.addedStatement
(Statement s) void
ObjectListener.addedStatement
(Statement s) void
StatementListener.addedStatement
(Statement s) Override this to listen to all incoming added statementsvoid
ChangedListener.addedStatements
(Statement[] statements) void
NullListener.addedStatements
(Statement[] statements) void
ObjectListener.addedStatements
(Statement[] statements) void
StatementListener.addedStatements
(Statement[] statements) void
ChangedListener.removedStatement
(Statement s) void
NullListener.removedStatement
(Statement s) void
ObjectListener.removedStatement
(Statement s) void
StatementListener.removedStatement
(Statement s) Override this to listen to all incoming removed statementsvoid
ChangedListener.removedStatements
(Statement[] statements) void
NullListener.removedStatements
(Statement[] statements) void
ObjectListener.removedStatements
(Statement[] statements) void
StatementListener.removedStatements
(Statement[] statements) Modifier and TypeMethodDescriptionvoid
ChangedListener.addedStatements
(List<Statement> statements) void
NullListener.addedStatements
(List<Statement> statements) void
ObjectListener.addedStatements
(List<Statement> statements) void
StatementListener.addedStatements
(List<Statement> statements) void
ChangedListener.removedStatements
(List<Statement> statements) void
NullListener.removedStatements
(List<Statement> statements) void
ObjectListener.removedStatements
(List<Statement> statements) void
StatementListener.removedStatements
(List<Statement> statements) -
Uses of Statement in org.apache.jena.rdf.model
Modifier and TypeMethodDescriptionModelGraphInterface.asStatement
(Triple t) Answer a Statement in this Model who's SPO is that of the triplet
.Statement.changeLiteralObject
(boolean o) Remove this statement (s, p, x) from the model that contains it.Statement.changeLiteralObject
(char o) Remove this statement (s, p, x) from the model that contains it.Statement.changeLiteralObject
(double o) Remove this statement (s, p, x) from the model that contains it.Statement.changeLiteralObject
(float o) Remove this statement (s, p, x) from the model that contains it.Statement.changeLiteralObject
(int o) Remove this statement (s, p, x) from the model that contains it.Statement.changeLiteralObject
(long o) Remove this statement (s, p, x) from the model that contains it.Statement.changeObject
(String o) change the object of the statement (S, P, X) to (S, P, o).Statement.changeObject
(String o, boolean wellFormed) change the object of the statement (S, P, X) to (S, P, o).Statement.changeObject
(String o, String l) change the object of the statement (S, P, X) to (S, P, o).Statement.changeObject
(String o, String l, boolean wellFormed) change the object of the statement (S, P, X) to (S, P, o).Statement.changeObject
(RDFNode o) change the object of the statement (S, P, X) to (S, P, o).ModelCon.createLiteralStatement
(Resource s, Property p, boolean o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.ModelCon.createLiteralStatement
(Resource s, Property p, char o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.ModelCon.createLiteralStatement
(Resource s, Property p, double o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.ModelCon.createLiteralStatement
(Resource s, Property p, float o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.ModelCon.createLiteralStatement
(Resource s, Property p, int o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.ModelCon.createLiteralStatement
(Resource s, Property p, long o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.ModelCon.createLiteralStatement
(Resource s, Property p, Object o) Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.Model.createStatement
(Resource s, Property p, RDFNode o) Create a Statement instance.ModelCon.createStatement
(Resource s, Property p, String o) Create a Statement instance.ModelCon.createStatement
(Resource s, Property p, String o, boolean wellFormed) Create a Statement instance.ModelCon.createStatement
(Resource s, Property p, String o, String l) Create a Statement instance.ModelCon.createStatement
(Resource s, Property p, String o, String l, boolean wellFormed) Create a Statement instance.static Statement
ResourceFactory.createStatement
(Resource subject, Property predicate, RDFNode object) Create a new statement.ResourceFactory.Interface.createStatement
(Resource subject, Property predicate, RDFNode object) Create a new statement.Model.getProperty
(Resource s, Property p) Answer a statement (s, p, ?O) from this model.Model.getProperty
(Resource s, Property p, String lang) Answer a statement (s, p, ?O) from this model.Resource.getProperty
(Property p) Answer some statement (this, p, O) in the associated model.Resource.getProperty
(Property p, String lang) Answer some statement (this, p, O), in languagelang
, in the associated model.Statement.getProperty
(Property p) Get a property of the object of the statement.Model.getRequiredProperty
(Resource s, Property p) Return a statement with given subject and property.Model.getRequiredProperty
(Resource s, Property p, String lang) Return a statement with given subject and property.Resource.getRequiredProperty
(Property p) Get a property value of this resource.Resource.getRequiredProperty
(Property p, String lang) Get a property value of this resource in a specified language.ReifiedStatement.getStatement()
answer the Statement that this ReifiedStatement reifies.Statement.getStatementProperty
(Property p) Return a property of this statement.Resource.getStmtTerm()
Return the statement of this resource, or null if it is not an RDF-star triple term.StmtIterator.nextStatement()
Return the next Statement of the iteration.Statement.remove()
Remove this statement from its associated model.Modifier and TypeMethodDescriptionAdd a statement to this model.Add all the statements to the Model, using through the bulk update interface.void
ModelChangedListener.addedStatement
(Statement s) Method to call when a single statement has been added to the attached model.void
ModelChangedListener.addedStatements
(Statement[] statements) Method to call when an array of statements has been added to the attached model.boolean
Determine if a statement is present in this model.boolean
StatementBoundaryBase.continueWith
(Statement s) Method to over-ride to define what continues the boundary search; default definition is !stopAt(s).Model.createReifiedStatement
(String uri, Statement s) answer a ReifiedStatement that encodes _s_, belongs to this Model, and is a Resource with that _uri_.Model.createReifiedStatement
(Statement s) Answer a ReifiedStatement that encodes _s_ and belongs to this Model.Model.createResource
(Statement statement) Create a resource that represents a statement.static Resource
ResourceFactory.createStmtResource
(Statement statement) Create a new resource representing an RDF-star triple term.ResourceFactory.Interface.createStmtResource
(Statement statement) Create a new resource representing an RDF-star triple term.Model.getAnyReifiedStatement
(Statement s) Find or create aReifiedStatement
corresponding to a Statement.InfModel.getDerivation
(Statement statement) Return the derivation of the given statement (which should be the result of some previous list operation).boolean
Determine if this Statement has been reified in this Model.Model.listReifiedStatements
(Statement st) answer an iterator delivering all the reified statements "in" this model that match the statement _st_.Remove a value from the container.Remove a value from the container.Remove a value from the container.Removes a statement.Remove all the statements from the Model, using the bulk update interface.void
Model.removeAllReifications
(Statement s) Remove all reifications (ie implicit reification quads) of _s_.void
ModelChangedListener.removedStatement
(Statement s) Method to call when a single statement has been removed from the attached model.void
ModelChangedListener.removedStatements
(Statement[] statements) Method to call when an array of statements has been removed from the attached model.boolean
This method is designed to be over ridden by subclasses to define application specific constraints on the statements selected.boolean
Answer true if this statement is a boundary of the search.boolean
Method to over-ride to define what stops the boundary search; default definition is !continueWith(s).boolean
Answer whatever the triple-boundary answers for the triple ofs
.boolean
Test whether a statement should be included in a selection.default Object
Method to call when visiting a resource with a statement.Modifier and TypeMethodDescriptionadd all the statements in the List to this Model, going through the bulk update interface (which means turning them into triples in one form or another).void
ModelChangedListener.addedStatements
(List<Statement> statements) Method to call when a list of statements has been added to the attached model.Remove all the statements in the list from this model, using the bulk update interface.void
ModelChangedListener.removedStatements
(List<Statement> statements) Method to call when a list of statements has been deleted from the attached model. -
Uses of Statement in org.apache.jena.rdf.model.impl
Modifier and TypeMethodDescriptionModelCom.asStatement
(Triple t) Answer a Statement in this Model which encodes the given Triple.ModelCom.asStatements
(Triple[] triples) StatementBase.changeLiteralObject
(boolean o) StatementBase.changeLiteralObject
(char o) StatementBase.changeLiteralObject
(double o) StatementBase.changeLiteralObject
(float o) StatementBase.changeLiteralObject
(int o) StatementBase.changeLiteralObject
(long o) StatementBase.changeObject
(String o) StatementBase.changeObject
(String o, boolean wellFormed) StatementBase.changeObject
(String o, String l) StatementBase.changeObject
(String o, String l, boolean wellFormed) StatementBase.changeObject
(RDFNode o) ModelCom.createLiteralStatement
(Resource r, Property p, boolean o) ModelCom.createLiteralStatement
(Resource r, Property p, char o) ModelCom.createLiteralStatement
(Resource r, Property p, double o) ModelCom.createLiteralStatement
(Resource r, Property p, float o) ModelCom.createLiteralStatement
(Resource r, Property p, int o) ModelCom.createLiteralStatement
(Resource r, Property p, long o) ModelCom.createLiteralStatement
(Resource r, Property p, Object o) ModelCom.createStatement
(Resource r, Property p, String o) ModelCom.createStatement
(Resource r, Property p, String o, boolean wellFormed) ModelCom.createStatement
(Resource r, Property p, String o, String l) ModelCom.createStatement
(Resource r, Property p, String o, String l, boolean wellFormed) ModelCom.createStatement
(Resource r, Property p, RDFNode o) create a Statement from the given r, p, and o.ModelCom.getProperty
(Resource s, Property p) ModelCom.getProperty
(Resource s, Property p, String lang) ResourceImpl.getProperty
(Property p) ResourceImpl.getProperty
(Property p, String lang) StatementImpl.getProperty
(Property p) ModelCom.getRequiredProperty
(Resource s, Property p) ModelCom.getRequiredProperty
(Resource s, Property p, String lang) ResourceImpl.getRequiredProperty
(Property p) ResourceImpl.getRequiredProperty
(Property p, String lang) ReifiedStatementImpl.getStatement()
answer [a .equals() version of] the Statement that this ReifiedStatement represents.StatementImpl.getStatementProperty
(Property p) ResourceImpl.getStmtTerm()
StmtIteratorImpl.next()
return *and remember* the next element.StmtIteratorImpl.nextStatement()
StatementImpl.remove()
static Statement
StatementImpl.toStatement
(Triple t, ModelCom eg) create a Statement from the triple _t_ in the enhanced graph _eg_.Modifier and TypeMethodDescriptionModelCom.asStatements
(List<Triple> triples) RDFListImpl.collectStatements()
Answer a set of all of the RDF statements whose subject is one of the cells of this list.Modifier and TypeMethodDescriptionadd a Statement to this Model by adding its SPO components.Add all the statements to the model by converting them to an array of corresponding triples and removing those from the underlying graph.static Triple[]
returns an array of triples corresponding to the array of statements; ie the i'th element of the result is the i'th element of the input as a triple.boolean
static ReifiedStatementImpl
static ReifiedStatementImpl
factory method.static ReifiedStatement
factory method.ModelCom.createReifiedStatement
(String uri, Statement s) ModelCom.createReifiedStatement
(Statement s) create a ReifiedStatement that encodes _s_ and belongs to this Model.ModelReifier.createReifiedStatement
(String uri, Statement s) Answer a reification of a statement with a given uri.ModelReifier.createReifiedStatement
(Statement s) Answer a fresh reification of a statement associated with a fresh bnode.ModelCom.createResource
(Statement statement) ModelCom.getAnyReifiedStatement
(Statement s) get any reification of the given statement in this model; make one if necessary.ModelReifier.getAnyReifiedStatement
(Statement s) Find any existing reified statement that reifies a givem statement.InfModelImpl.getDerivation
(Statement statement) Return the derivation of the given statement (which should be the result of some previous list operation).boolean
ModelCom.listReifiedStatements
(Statement st) remove all the Statements from the model by converting them to triples and removing those triples from the underlying graph.void
ModelCom.removeAllReifications
(Statement s) remove any ReifiedStatements reifying the given statementModifier and TypeMethodDescriptionAdd all the statements to the model by converting the list to an array of Statement and removing that.ContNodeIteratorFactoryImpl.createIterator
(Iterator<Statement> iter, Object o, Container cont) NodeIteratorFactory.createIterator
(Iterator<Statement> iter, Object o, Container cont) SeqNodeIteratorFactoryImpl.createIterator
(Iterator<Statement> iter, Object ignored, Container cont) Remove all the Statements from the model by converting the List to a List(Statement) and removing that.ModifierConstructorDescriptionContNodeIteratorImpl
(Iterator<Statement> iterator, Object ignored, Container cont) Creates new ContNodeIteratorImplSeqNodeIteratorImpl
(Iterator<Statement> iterator, Seq seq) Creates new SeqNodeIteratorImplStmtIteratorImpl
(Iterator<Statement> iterator) -
Uses of Statement in org.apache.jena.util