public class RDFTriple extends Object implements Serializable, Comparable<RDFTriple>
| Constructor and Description |
|---|
RDFTriple(IRI subject,
boolean subjectAnon,
IRI predicate,
IRI object,
boolean objectAnon) |
RDFTriple(IRI subject,
boolean subjectAnon,
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, @Nonnull IRI predicate, @Nonnull IRI object, boolean objectAnon)
subject - the subjectsubjectAnon - whether the subject is anonymouspredicate - the predicateobject - the objectobjectAnon - whether the object is anonymouspublic boolean isSubjectSameAsObject()
@Nonnull public RDFResource getSubject()
@Nonnull public RDFResourceIRI getPredicate()
public int compareTo(RDFTriple o)
compareTo in interface Comparable<RDFTriple>Copyright © 2016 The University of Manchester. All Rights Reserved.