Package com.stardog.stark
Class StatementPattern
java.lang.Object
com.stardog.stark.StatementPattern
A Statement implementation representing a Statement pattern, which is a Statement where some or all of the
SPOC elements are a wildcard.
Given a pattern of `pattern(*, :p, *)` it would match `:s :p :o` and `:foo :p :bar` but not `:s :pred :o`.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncontext()The name of the graph in which this statement appears.booleaninthashCode()static StatementPattern.Builderstatic StatementPatternobject()The object of the statementstatic StatementPatternstatic StatementPatternThe predicate of the statementstatic StatementPatternstatic StatementPatternstatic StatementPatternsubject()The subject of the statementbooleanReturn whether or not this pattern matches the given Statement
-
Field Details
-
WILDCARD
-
-
Method Details
-
test
Return whether or not this pattern matches the given Statement -
subject
The subject of the statement -
predicate
The predicate of the statement -
object
The object of the statement -
context
The name of the graph in which this statement appears.- Specified by:
contextin interfaceStatement- Returns:
- the name of the graph, within an RDF dataset, which contains this statement. if the `Statement`
is in the default graph,
Values.DEFAULT_GRAPHwill be returned. - See Also:
-
equals
-
hashCode
public int hashCode() -
newBuilder
-
o
-
p
-
s
-
sp
-
spo
@Nonnull public static StatementPattern spo(@Nonnull Resource theSubj, @Nonnull IRI thePred, @Nonnull Value theObj) -
po
-