public static class LinkedHashModel.ModelStatement extends ContextStatement
Constructor and Description |
---|
ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx) |
ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx,
Statement statement) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compares this statement to another object.
|
Resource |
getContext()
Gets the context of this statement.
|
Value |
getObject()
Gets the object of this statement.
|
IRI |
getPredicate()
Gets the predicate of this statement.
|
Statement |
getStatement() |
Resource |
getSubject()
Gets the subject of this statement.
|
toString
hashCode
public ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx)
public ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx, Statement statement)
public Resource getSubject()
Statement
getSubject
in interface Statement
getSubject
in class SimpleStatement
public IRI getPredicate()
Statement
getPredicate
in interface Statement
getPredicate
in class SimpleStatement
public Value getObject()
Statement
getObject
in interface Statement
getObject
in class SimpleStatement
public Resource getContext()
Statement
getContext
in interface Statement
getContext
in class ContextStatement
public boolean equals(Object other)
Statement
equals
in interface Statement
equals
in class AbstractStatement
other
- the object to compare this statement totrue
if the other object is an instance of Statement
and if their
subjects, predicates, objects and contexts are equal; false
otherwisepublic Statement getStatement()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.