public class RDFTriple extends Object implements Serializable, Comparable<RDFTriple>, org.apache.commons.rdf.api.Triple
| 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(RDFResource subject, RDFResourceIRI predicate, RDFNode object)
subject - the subjectpredicate - the predicateobject - the objectpublic RDFTriple(IRI subject, boolean subjectAnon, IRI predicate, IRI object, boolean objectAnon)
subject - the subjectsubjectAnon - whether the subject is anonymouspredicate - the predicateobject - the objectobjectAnon - whether the object is anonymouspublic RDFTriple(IRI subject, boolean subjectAnon, IRI predicate, OWLLiteral object)
subject - the subjectsubjectAnon - whether the subject is anonymouspredicate - the predicateobject - the objectpublic boolean isSubjectSameAsObject()
public RDFResource getSubject()
getSubject in interface org.apache.commons.rdf.api.Triplepublic RDFResourceIRI getPredicate()
getPredicate in interface org.apache.commons.rdf.api.Triplepublic RDFNode getObject()
getObject in interface org.apache.commons.rdf.api.Triplepublic int hashCode()
public int compareTo(@Nullable RDFTriple o)
compareTo in interface Comparable<RDFTriple>Copyright © 2017 The University of Manchester. All Rights Reserved.