public class FilterTriple extends Object
FilterTriple
class provides a match()-method that tests
if a Triple
match a certain triple pattern.Constructor and Description |
---|
FilterTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Creates a new
FilterTriple . |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Triple triple)
Returns true if the subject, predicate and object of the specified
Triple match the subject, predicate and object of this
FilterTriple . |
String |
toString() |
public FilterTriple(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
FilterTriple
. The specified subject,
predicate and object are used to test a given Triple
. Any
of these values can be null, which acts as wildcard in the test.subject
- the subject.predicate
- the predicate.object
- the object.public boolean match(Triple triple)
Triple
match the subject, predicate and object of this
FilterTriple
. Null values in the FilterTriple
act as wildcards.triple
- Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.