Package org.semanticweb.owlapi.io
Class RDFTriple
java.lang.Object
org.semanticweb.owlapi.io.RDFTriple
- All Implemented Interfaces:
Serializable
,Comparable<RDFTriple>
,org.apache.commons.rdf.api.Triple
,org.apache.commons.rdf.api.TripleLike
public class RDFTriple
extends Object
implements Serializable, Comparable<RDFTriple>, org.apache.commons.rdf.api.Triple
- Since:
- 3.2
- Author:
- Matthew Horridge, The University of Manchester, Bio-Health Informatics Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRDFTriple
(RDFResource subject, RDFResourceIRI predicate, RDFNode object) 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) -
Method Summary
-
Constructor Details
-
RDFTriple
- Parameters:
subject
- the subjectpredicate
- the predicateobject
- the object
-
RDFTriple
public RDFTriple(IRI subject, boolean subjectAnon, boolean subjectAxiom, IRI predicate, IRI object, boolean objectAnon, boolean objectAxiom) - Parameters:
subject
- the subjectsubjectAnon
- whether the subject is anonymoussubjectAxiom
- true if axiompredicate
- the predicateobject
- the objectobjectAnon
- whether the object is anonymousobjectAxiom
- true if axiom
-
RDFTriple
- Parameters:
subject
- the subjectsubjectAnon
- whether the subject is anonymousaxiom
- true if axiompredicate
- the predicateobject
- the object
-
-
Method Details
-
isSubjectSameAsObject
public boolean isSubjectSameAsObject()- Returns:
- true if subject and object are the same
-
getSubject
- Specified by:
getSubject
in interfaceorg.apache.commons.rdf.api.Triple
- Specified by:
getSubject
in interfaceorg.apache.commons.rdf.api.TripleLike
-
getPredicate
- Specified by:
getPredicate
in interfaceorg.apache.commons.rdf.api.Triple
- Specified by:
getPredicate
in interfaceorg.apache.commons.rdf.api.TripleLike
-
getObject
- Specified by:
getObject
in interfaceorg.apache.commons.rdf.api.Triple
- Specified by:
getObject
in interfaceorg.apache.commons.rdf.api.TripleLike
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RDFTriple>
-