Class RDFResource

java.lang.Object
org.semanticweb.owlapi.io.RDFNode
org.semanticweb.owlapi.io.RDFResource
All Implemented Interfaces:
Serializable, Comparable<RDFNode>, org.apache.commons.rdf.api.BlankNodeOrIRI, org.apache.commons.rdf.api.RDFTerm, HasIRI
Direct Known Subclasses:
RDFResourceBlankNode, RDFResourceIRI

public abstract class RDFResource extends RDFNode implements org.apache.commons.rdf.api.BlankNodeOrIRI
Since:
3.2
Author:
Matthew Horridge, The University of Manchester, Bio-Health Informatics Group
See Also:
  • Constructor Details

    • RDFResource

      public RDFResource()
  • Method Details

    • getResource

      public abstract IRI getResource()
      Returns:
      the resource IRI
    • getNodeIDValue

      public abstract String getNodeIDValue()
      For blank nodes, return a valid value for the RDF/XML nodeId attribute. For non blank nodes, an exception should be thrown. The method must only be called on blank nodes.
      Returns:
      a valid value for thE RDF/XML nodeId attribute
    • compareTo

      public int compareTo(@Nullable RDFNode o)
      Specified by:
      compareTo in interface Comparable<RDFNode>
    • ntriplesString

      public String ntriplesString()
      Specified by:
      ntriplesString in interface org.apache.commons.rdf.api.RDFTerm