public class RDFTriple extends Object implements Serializable, Comparable<RDFTriple>
Constructor and Description |
---|
RDFTriple(IRI subject,
boolean subjectAnon,
IRI predicate,
boolean predicateAnon,
IRI object,
boolean objectAnon) |
RDFTriple(IRI subject,
boolean subjectAnon,
IRI predicate,
boolean predicateAnon,
OWLLiteral object) |
RDFTriple(RDFResource subject,
RDFResource predicate,
RDFNode object) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RDFTriple o) |
boolean |
equals(Object o) |
RDFNode |
getObject() |
RDFResource |
getPredicate() |
RDFResource |
getSubject() |
int |
hashCode() |
String |
toString() |
public RDFTriple(RDFResource subject, RDFResource predicate, RDFNode object)
subject
- the subjectpredicate
- the predicateobject
- the objectpublic RDFTriple(IRI subject, boolean subjectAnon, IRI predicate, boolean predicateAnon, IRI object, boolean objectAnon)
subject
- the subjectsubjectAnon
- whether the subject is anonymouspredicate
- the predicatepredicateAnon
- whether the predicate is anonobject
- the objectobjectAnon
- whether the object is anonymouspublic RDFTriple(IRI subject, boolean subjectAnon, IRI predicate, boolean predicateAnon, OWLLiteral object)
subject
- the subjectsubjectAnon
- whether the subject is anonymouspredicate
- the predicatepredicateAnon
- whether the predicate is anonobject
- the objectpublic RDFResource getSubject()
public RDFResource getPredicate()
public RDFNode getObject()
public int compareTo(RDFTriple o)
compareTo
in interface Comparable<RDFTriple>
Copyright © 2017 The University of Manchester. All Rights Reserved.