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 aSubjectPredicateContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontexts()Returns the value of thecontextsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanorg.apache.jena.rdf.model.PropertyReturns the value of thepredicaterecord component.org.apache.jena.rdf.model.Resourcesubject()Returns the value of thesubjectrecord component.final StringtoString()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 aSubjectPredicateContextrecord class.- Parameters:
subject- the value for thesubjectrecord componentpredicate- the value for thepredicaterecord componentcontexts- the value for thecontextsrecord 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 thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
predicate
public org.apache.jena.rdf.model.Property predicate()Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
contexts
Returns the value of thecontextsrecord component.- Returns:
- the value of the
contextsrecord component
-