Uses of Interface
org.apache.jena.rdf.model.Statement
-
Packages that use Statement 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.listeners A package defining some useful implementations ofModelChangedListener
, 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.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.org.apache.jena.util Miscellaneous collection of utility classes. -
-
Uses of Statement in org.apache.jena.assembler
Methods in org.apache.jena.assembler with parameters of type Statement Modifier and Type Method Description static Resource
AssemblerHelp. getResource(Statement s)
Answer the resource that is the object of the statements
.static java.lang.String
AssemblerHelp. getString(Statement s)
Answer the plain string object of the statements
.static java.lang.String
AssemblerHelp. getString(Statement s, Literal L)
Answer the String value of the literalL
, which is the object of the Statements
.Constructors in org.apache.jena.assembler with parameters of type Statement Constructor Description BadObjectException(Statement s)
-
Uses of Statement in org.apache.jena.ontology
Methods in org.apache.jena.ontology that return Statement Modifier and Type Method Description Statement
OntTools.Path. getStatement(int i)
Methods in org.apache.jena.ontology with parameters of type Statement Modifier and Type Method Description OntTools.Path
OntTools.Path. append(Statement s)
Answer 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
OntTools.PredicatesFilter. test(Statement s)
Method parameters in org.apache.jena.ontology with type arguments of type Statement Modifier and Type Method Description static OntTools.Path
OntTools. findShortestPath(Model m, Resource start, RDFNode end, java.util.function.Predicate<Statement> onPath)
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
Methods in org.apache.jena.ontology.impl with parameters of type Statement Modifier and Type Method Description java.util.Iterator<Derivation>
OntModelImpl. 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
Methods in org.apache.jena.rdf.listeners with parameters of type Statement Modifier and Type Method Description void
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)
Method parameters in org.apache.jena.rdf.listeners with type arguments of type Statement Modifier and Type Method Description void
ChangedListener. addedStatements(java.util.List<Statement> statements)
void
NullListener. addedStatements(java.util.List<Statement> statements)
void
ObjectListener. addedStatements(java.util.List<Statement> statements)
void
StatementListener. addedStatements(java.util.List<Statement> statements)
void
ChangedListener. removedStatements(java.util.List<Statement> statements)
void
NullListener. removedStatements(java.util.List<Statement> statements)
void
ObjectListener. removedStatements(java.util.List<Statement> statements)
void
StatementListener. removedStatements(java.util.List<Statement> statements)
-
Uses of Statement in org.apache.jena.rdf.model
Methods in org.apache.jena.rdf.model that return Statement Modifier and Type Method Description Statement
ModelGraphInterface. asStatement(Triple t)
Answer a Statement in this Model who's SPO is that of the triplet
.Statement
Statement. changeLiteralObject(boolean o)
Remove this statement (s, p, x) from the model that contains it.Statement
Statement. changeLiteralObject(char o)
Remove this statement (s, p, x) from the model that contains it.Statement
Statement. changeLiteralObject(double o)
Remove this statement (s, p, x) from the model that contains it.Statement
Statement. changeLiteralObject(float o)
Remove this statement (s, p, x) from the model that contains it.Statement
Statement. changeLiteralObject(int o)
Remove this statement (s, p, x) from the model that contains it.Statement
Statement. changeLiteralObject(long o)
Remove this statement (s, p, x) from the model that contains it.Statement
Statement. changeObject(java.lang.String o)
change the object of the statement (S, P, X) to (S, P, o).Statement
Statement. changeObject(java.lang.String o, boolean wellFormed)
change the object of the statement (S, P, X) to (S, P, o).Statement
Statement. changeObject(java.lang.String o, java.lang.String l)
change the object of the statement (S, P, X) to (S, P, o).Statement
Statement. changeObject(java.lang.String o, java.lang.String l, boolean wellFormed)
change the object of the statement (S, P, X) to (S, P, o).Statement
Statement. changeObject(RDFNode o)
change the object of the statement (S, P, X) to (S, P, o).Statement
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.Statement
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.Statement
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.Statement
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.Statement
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.Statement
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.Statement
ModelCon. createLiteralStatement(Resource s, Property p, java.lang.Object o)
Answer a new Statement object (s, p, o') where o' is the typed literal corresponding to o using createTypedLiteral.Statement
Model. createStatement(Resource s, Property p, RDFNode o)
Create a Statement instance.Statement
ModelCon. createStatement(Resource s, Property p, java.lang.String o)
Create a Statement instance.Statement
ModelCon. createStatement(Resource s, Property p, java.lang.String o, boolean wellFormed)
Create a Statement instance.Statement
ModelCon. createStatement(Resource s, Property p, java.lang.String o, java.lang.String l)
Create a Statement instance.Statement
ModelCon. createStatement(Resource s, Property p, java.lang.String o, java.lang.String l, boolean wellFormed)
Create a Statement instance.static Statement
ResourceFactory. createStatement(Resource subject, Property predicate, RDFNode object)
Create a new statement.Statement
ResourceFactory.Interface. createStatement(Resource subject, Property predicate, RDFNode object)
Create a new statement.Statement
Model. getProperty(Resource s, Property p)
Answer a statement (s, p, ?O) from this model.Statement
Model. getProperty(Resource s, Property p, java.lang.String lang)
Answer a statement (s, p, ?O) from this model.Statement
Resource. getProperty(Property p)
Answer some statement (this, p, O) in the associated model.Statement
Resource. getProperty(Property p, java.lang.String lang)
Answer some statement (this, p, O), in languagelang
, in the associated model.Statement
Statement. getProperty(Property p)
Get a property of the object of the statement.Statement
Model. getRequiredProperty(Resource s, Property p)
Return a statement with given subject and property.Statement
Model. getRequiredProperty(Resource s, Property p, java.lang.String lang)
Return a statement with given subject and property.Statement
Resource. getRequiredProperty(Property p)
Get a property value of this resource.Statement
Resource. getRequiredProperty(Property p, java.lang.String lang)
Get a property value of this resource in a specified language.Statement
ReifiedStatement. getStatement()
answer the Statement that this ReifiedStatement reifies.Statement
Statement. getStatementProperty(Property p)
Return a property of this statement.Statement
Resource. getStmtTerm()
Return the statement of this resource, or null if it is not an RDF-star triple term.Statement
StmtIterator. nextStatement()
Return the next Statement of the iteration.Statement
Statement. remove()
Remove this statement from its associated model.Methods in org.apache.jena.rdf.model with parameters of type Statement Modifier and Type Method Description Model
Model. add(Statement s)
Add a statement to this model.Model
Model. add(Statement[] statements)
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
Model. contains(Statement s)
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).ReifiedStatement
Model. createReifiedStatement(java.lang.String uri, Statement s)
answer a ReifiedStatement that encodes _s_, belongs to this Model, and is a Resource with that _uri_.ReifiedStatement
Model. createReifiedStatement(Statement s)
Answer a ReifiedStatement that encodes _s_ and belongs to this Model.Resource
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.Resource
ResourceFactory.Interface. createStmtResource(Statement statement)
Create a new resource representing an RDF-star triple term.Resource
Model. getAnyReifiedStatement(Statement s)
Find or create aReifiedStatement
corresponding to a Statement.java.util.Iterator<Derivation>
InfModel. getDerivation(Statement statement)
Return the derivation of the given statement (which should be the result of some previous list operation).boolean
Model. isReified(Statement s)
Determine if this Statement has been reified in this Model.RSIterator
Model. listReifiedStatements(Statement st)
answer an iterator delivering all the reified statements "in" this model that match the statement _st_.Container
Alt. remove(Statement s)
Remove a value from the container.Container
Bag. remove(Statement s)
Remove a value from the container.Container
Container. remove(Statement s)
Remove a value from the container.Model
Model. remove(Statement s)
Removes a statement.Model
Model. remove(Statement[] statements)
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
SimpleSelector. selects(Statement s)
This method is designed to be over ridden by subclasses to define application specific constraints on the statements selected.boolean
StatementBoundary. stopAt(Statement s)
Answer true if this statement is a boundary of the search.boolean
StatementBoundaryBase. stopAt(Statement s)
Method to over-ride to define what stops the boundary search; default definition is !continueWith(s).boolean
StatementTripleBoundary. stopAt(Statement s)
Answer whatever the triple-boundary answers for the triple ofs
.boolean
SimpleSelector. test(Statement s)
Test whether a statement should be included in a selection.default java.lang.Object
RDFVisitor. visitStmt(Resource r, Statement statement)
Method to call when visiting a resource with a statement.Method parameters in org.apache.jena.rdf.model with type arguments of type Statement Modifier and Type Method Description Model
Model. add(java.util.List<Statement> statements)
add 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(java.util.List<Statement> statements)
Method to call when a list of statements has been added to the attached model.Model
Model. remove(java.util.List<Statement> statements)
Remove all the statements in the list from this model, using the bulk update interface.void
ModelChangedListener. removedStatements(java.util.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
Classes in org.apache.jena.rdf.model.impl that implement Statement Modifier and Type Class Description class
StatementImpl
An implementation of Statement.Methods in org.apache.jena.rdf.model.impl that return Statement Modifier and Type Method Description Statement
ModelCom. asStatement(Triple t)
Answer a Statement in this Model which encodes the given Triple.Statement[]
ModelCom. asStatements(Triple[] triples)
Statement
StatementBase. changeLiteralObject(boolean o)
Statement
StatementBase. changeLiteralObject(char o)
Statement
StatementBase. changeLiteralObject(double o)
Statement
StatementBase. changeLiteralObject(float o)
Statement
StatementBase. changeLiteralObject(int o)
Statement
StatementBase. changeLiteralObject(long o)
Statement
StatementBase. changeObject(java.lang.String o)
Statement
StatementBase. changeObject(java.lang.String o, boolean wellFormed)
Statement
StatementBase. changeObject(java.lang.String o, java.lang.String l)
Statement
StatementBase. changeObject(java.lang.String o, java.lang.String l, boolean wellFormed)
Statement
StatementBase. changeObject(RDFNode o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, boolean o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, char o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, double o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, float o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, int o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, long o)
Statement
ModelCom. createLiteralStatement(Resource r, Property p, java.lang.Object o)
Statement
ModelCom. createStatement(Resource r, Property p, java.lang.String o)
Statement
ModelCom. createStatement(Resource r, Property p, java.lang.String o, boolean wellFormed)
Statement
ModelCom. createStatement(Resource r, Property p, java.lang.String o, java.lang.String l)
Statement
ModelCom. createStatement(Resource r, Property p, java.lang.String o, java.lang.String l, boolean wellFormed)
Statement
ModelCom. createStatement(Resource r, Property p, RDFNode o)
create a Statement from the given r, p, and o.Statement
ModelCom. getProperty(Resource s, Property p)
Statement
ModelCom. getProperty(Resource s, Property p, java.lang.String lang)
Statement
ResourceImpl. getProperty(Property p)
Statement
ResourceImpl. getProperty(Property p, java.lang.String lang)
Statement
StatementImpl. getProperty(Property p)
Statement
ModelCom. getRequiredProperty(Resource s, Property p)
Statement
ModelCom. getRequiredProperty(Resource s, Property p, java.lang.String lang)
Statement
ResourceImpl. getRequiredProperty(Property p)
Statement
ResourceImpl. getRequiredProperty(Property p, java.lang.String lang)
Statement
ReifiedStatementImpl. getStatement()
answer [a .equals() version of] the Statement that this ReifiedStatement represents.Statement
StatementImpl. getStatementProperty(Property p)
Statement
ResourceImpl. getStmtTerm()
Statement
StmtIteratorImpl. next()
return *and remember* the next element.Statement
StmtIteratorImpl. nextStatement()
Statement
StatementImpl. remove()
static Statement
StatementImpl. toStatement(Triple t, ModelCom eg)
create a Statement from the triple _t_ in the enhanced graph _eg_.Methods in org.apache.jena.rdf.model.impl that return types with arguments of type Statement Modifier and Type Method Description java.util.List<Statement>
ModelCom. asStatements(java.util.List<Triple> triples)
java.util.Set<Statement>
RDFListImpl. collectStatements()
Answer a set of all of the RDF statements whose subject is one of the cells of this list.Methods in org.apache.jena.rdf.model.impl with parameters of type Statement Modifier and Type Method Description Model
ModelCom. add(Statement s)
add a Statement to this Model by adding its SPO components.Model
ModelCom. add(Statement[] statements)
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[]
StatementImpl. asTriples(Statement[] statements)
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
ModelCom. contains(Statement s)
static ReifiedStatementImpl
ReifiedStatementImpl. create(EnhGraph eg, Node n, Statement s)
static ReifiedStatementImpl
ReifiedStatementImpl. create(ModelCom m, java.lang.String uri, Statement s)
factory method.static ReifiedStatement
ReifiedStatementImpl. create(Statement s)
factory method.ReifiedStatement
ModelCom. createReifiedStatement(java.lang.String uri, Statement s)
ReifiedStatement
ModelCom. createReifiedStatement(Statement s)
create a ReifiedStatement that encodes _s_ and belongs to this Model.ReifiedStatement
ModelReifier. createReifiedStatement(java.lang.String uri, Statement s)
Answer a reification of a statement with a given uri.ReifiedStatement
ModelReifier. createReifiedStatement(Statement s)
Answer a fresh reification of a statement associated with a fresh bnode.Resource
ModelCom. createResource(Statement statement)
Resource
ModelCom. getAnyReifiedStatement(Statement s)
get any reification of the given statement in this model; make one if necessary.Resource
ModelReifier. getAnyReifiedStatement(Statement s)
Find any existing reified statement that reifies a givem statement.java.util.Iterator<Derivation>
InfModelImpl. getDerivation(Statement statement)
Return the derivation of the given statement (which should be the result of some previous list operation).boolean
ModelCom. isReified(Statement s)
RSIterator
ModelCom. listReifiedStatements(Statement st)
Container
ContainerImpl. remove(Statement s)
Model
ModelCom. remove(Statement s)
Model
ModelCom. remove(Statement[] statements)
remove all the Statements from the model by converting them to triples and removing those triples from the underlying graph.Container
SeqImpl. remove(Statement s)
void
ModelCom. removeAllReifications(Statement s)
remove any ReifiedStatements reifying the given statementMethod parameters in org.apache.jena.rdf.model.impl with type arguments of type Statement Modifier and Type Method Description Model
ModelCom. add(java.util.List<Statement> statements)
Add all the statements to the model by converting the list to an array of Statement and removing that.NodeIterator
ContNodeIteratorFactoryImpl. createIterator(java.util.Iterator<Statement> iter, java.lang.Object o, Container cont)
NodeIterator
NodeIteratorFactory. createIterator(java.util.Iterator<Statement> iter, java.lang.Object o, Container cont)
NodeIterator
SeqNodeIteratorFactoryImpl. createIterator(java.util.Iterator<Statement> iter, java.lang.Object ignored, Container cont)
Model
ModelCom. remove(java.util.List<Statement> statements)
Remove all the Statements from the model by converting the List to a List(Statement) and removing that.Constructors in org.apache.jena.rdf.model.impl with parameters of type Statement Constructor Description ResourceImpl(Statement statement, ModelCom m)
Constructor parameters in org.apache.jena.rdf.model.impl with type arguments of type Statement Constructor Description ContNodeIteratorImpl(java.util.Iterator<Statement> iterator, java.lang.Object ignored, Container cont)
Creates new ContNodeIteratorImplSeqNodeIteratorImpl(java.util.Iterator<Statement> iterator, Seq seq)
Creates new SeqNodeIteratorImplStmtIteratorImpl(java.util.Iterator<Statement> iterator)
-
Uses of Statement in org.apache.jena.util
Methods in org.apache.jena.util with parameters of type Statement Modifier and Type Method Description static java.lang.String
PrintUtil. print(Statement stmt)
Return a simplified print string for a statementMethod parameters in org.apache.jena.util with type arguments of type Statement Modifier and Type Method Description void
MonitorModel. snapshot(java.util.List<Statement> additions, java.util.List<Statement> deletions)
Compute the differences between the current monitored graph and the last snapshot.
-