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 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, otherwise false.
    • isAxiom

      public boolean isAxiom()
      Determines if this node is an axiom.
      Returns:
      true if this node is a literal, otherwise false.
    • 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() returns false) and the node is anonymous, or false 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