Package org.semanticweb.owlapi.io
Class RDFNode
java.lang.Object
org.semanticweb.owlapi.io.RDFNode
- All Implemented Interfaces:
Serializable
,Comparable<RDFNode>
,org.apache.commons.rdf.api.RDFTerm
,HasIRI
- Direct Known Subclasses:
RDFLiteral
,RDFResource
public abstract class RDFNode
extends Object
implements Serializable, Comparable<RDFNode>, HasIRI, org.apache.commons.rdf.api.RDFTerm
- Since:
- 3.2
- Author:
- Matthew Horridge, The University of Manchester, Bio-Health Informatics Group
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Determines if this node is a resource and is anonymous.boolean
isAxiom()
Determines if this node is an axiom.boolean
boolean
Determines if this node is a literal node.boolean
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.apache.commons.rdf.api.RDFTerm
equals, hashCode, ntriplesString
-
Constructor Details
-
RDFNode
public RDFNode()
-
-
Method Details
-
isLiteral
public boolean isLiteral()Determines if this node is a literal node.- Returns:
true
if this node is a literal, otherwisefalse
.
-
isAxiom
public boolean isAxiom()Determines if this node is an axiom.- Returns:
true
if this node is a literal, otherwisefalse
.
-
isAnonymous
public boolean isAnonymous()Determines if this node is a resource and is anonymous.- Returns:
true
if this is a resource node (i.e.isLiteral()
returnsfalse
) and the node is anonymous, orfalse
if this is a resource node and is not anonymous.
-
isIndividual
public boolean isIndividual()- Returns:
- true if this is an anonymous individual
-
shouldOutputId
public boolean shouldOutputId()- Returns:
- true if blank node id is mandatory for this resource
-
idRequired
public boolean idRequired()- Returns:
- true if an id is required for this node - only if this is an individual or an axiom and id is required
-