public class RDFTriple extends Object implements Serializable, Comparable<RDFTriple>
Constructor and Description |
---|
RDFTriple(IRI subject,
boolean subjectAnon,
boolean subjectAxiom,
IRI predicate,
IRI object,
boolean objectAnon,
boolean objectAxiom) |
RDFTriple(IRI subject,
boolean subjectAnon,
boolean axiom,
IRI predicate,
OWLLiteral object) |
RDFTriple(RDFResource subject,
RDFResourceIRI predicate,
RDFNode object) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RDFTriple o) |
boolean |
equals(Object obj) |
RDFNode |
getObject() |
RDFResourceIRI |
getPredicate() |
RDFResource |
getSubject() |
int |
hashCode() |
boolean |
isSubjectSameAsObject() |
String |
toString() |
public RDFTriple(@Nonnull RDFResource subject, @Nonnull RDFResourceIRI predicate, @Nonnull RDFNode object)
subject
- the subjectpredicate
- the predicateobject
- the objectpublic RDFTriple(@Nonnull IRI subject, boolean subjectAnon, boolean subjectAxiom, @Nonnull IRI predicate, @Nonnull IRI object, boolean objectAnon, boolean objectAxiom)
subject
- the subjectsubjectAnon
- whether the subject is anonymoussubjectAxiom
- true if subject is an axiompredicate
- the predicateobject
- the objectobjectAnon
- whether the object is anonymousobjectAxiom
- true if object is an axiompublic boolean isSubjectSameAsObject()
@Nonnull public RDFResource getSubject()
@Nonnull public RDFResourceIRI getPredicate()
public int compareTo(RDFTriple o)
compareTo
in interface Comparable<RDFTriple>
Copyright © 2020 The University of Manchester. All rights reserved.