Package org.semanticweb.owlapi.io
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 Summary
Constructors -
Method Summary
Methods inherited from class org.semanticweb.owlapi.io.RDFNode
idRequired, isAnonymous, isAxiom, isIndividual, isLiteral, shouldOutputId
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.rdf.api.RDFTerm
equals, hashCode
-
Constructor Details
-
RDFResource
public RDFResource()
-
-
Method Details
-
getResource
- Returns:
- the resource IRI
-
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
- Specified by:
compareTo
in interfaceComparable<RDFNode>
-
ntriplesString
- Specified by:
ntriplesString
in interfaceorg.apache.commons.rdf.api.RDFTerm
-