Record Class SubjectPredicateContext
java.lang.Object
java.lang.Record
cz.cvut.kbss.ontodriver.jena.connector.SubjectPredicateContext
public record SubjectPredicateContext(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate, Set<String> contexts)
extends Record
Represents the subject, predicate and context(s) of a statement.
Used to indicate what property values to remove from the repository.
-
Constructor Summary
ConstructorsConstructorDescriptionSubjectPredicateContext
(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate, Set<String> contexts) Creates an instance of aSubjectPredicateContext
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontexts()
Returns the value of thecontexts
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
org.apache.jena.rdf.model.Property
Returns the value of thepredicate
record component.org.apache.jena.rdf.model.Resource
subject()
Returns the value of thesubject
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SubjectPredicateContext
public SubjectPredicateContext(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate, Set<String> contexts) Creates an instance of aSubjectPredicateContext
record class.- Parameters:
subject
- the value for thesubject
record componentpredicate
- the value for thepredicate
record componentcontexts
- the value for thecontexts
record component
-
-
Method Details
-
matches
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
subject
public org.apache.jena.rdf.model.Resource subject()Returns the value of thesubject
record component.- Returns:
- the value of the
subject
record component
-
predicate
public org.apache.jena.rdf.model.Property predicate()Returns the value of thepredicate
record component.- Returns:
- the value of the
predicate
record component
-
contexts
Returns the value of thecontexts
record component.- Returns:
- the value of the
contexts
record component
-