public class RDFTriple
extends java.lang.Object
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 |
---|---|
boolean |
equals(java.lang.Object o) |
RDFNode |
getObject() |
RDFResource |
getPredicate() |
RDFResource |
getSubject() |
int |
hashCode() |
java.lang.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 hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object