public class RDFTriple extends Object implements Serializable, Comparable<RDFTriple>, org.apache.commons.rdf.api.Triple
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(RDFResource subject, RDFResourceIRI predicate, RDFNode object)
subject
- the subjectpredicate
- the predicateobject
- the objectpublic RDFTriple(IRI subject, boolean subjectAnon, boolean subjectAxiom, IRI predicate, IRI object, boolean objectAnon, boolean objectAxiom)
subject
- the subjectsubjectAnon
- whether the subject is anonymoussubjectAxiom
- true if axiompredicate
- the predicateobject
- the objectobjectAnon
- whether the object is anonymousobjectAxiom
- true if axiompublic RDFTriple(IRI subject, boolean subjectAnon, boolean axiom, IRI predicate, OWLLiteral object)
subject
- the subjectsubjectAnon
- whether the subject is anonymousaxiom
- true if axiompredicate
- the predicateobject
- the objectpublic boolean isSubjectSameAsObject()
public RDFResource getSubject()
getSubject
in interface org.apache.commons.rdf.api.Triple
getSubject
in interface org.apache.commons.rdf.api.TripleLike
public RDFResourceIRI getPredicate()
getPredicate
in interface org.apache.commons.rdf.api.Triple
getPredicate
in interface org.apache.commons.rdf.api.TripleLike
public RDFNode getObject()
getObject
in interface org.apache.commons.rdf.api.Triple
getObject
in interface org.apache.commons.rdf.api.TripleLike
public int hashCode()
public int compareTo(@Nullable RDFTriple o)
compareTo
in interface Comparable<RDFTriple>
Copyright © 2020 The University of Manchester. All rights reserved.