public class RDFResourceBlankNode extends RDFResource implements org.apache.commons.rdf.api.BlankNode
| Constructor and Description |
|---|
RDFResourceBlankNode(boolean isIndividual,
boolean forceId,
boolean isAxiom)
Create an RDFResource that is anonymous
|
RDFResourceBlankNode(Integer anonId,
boolean isIndividual,
boolean forceId,
boolean isAxiom)
Create an RDFResource that is anonymous.
|
RDFResourceBlankNode(IRI resource,
boolean isIndividual,
boolean forceId,
boolean isAxiom)
Create an RDFResource that is anonymous.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
IRI |
getIRI()
Gets the IRI of this object.
|
String |
getNodeIDValue()
For blank nodes, return a valid value for the RDF/XML nodeId attribute.
|
IRI |
getResource() |
int |
hashCode() |
boolean |
isAnonymous()
Determines if this node is a resource and is anonymous.
|
boolean |
isAxiom()
Determines if this node is an axiom.
|
boolean |
isIndividual() |
boolean |
isLiteral()
Determines if this node is a literal node.
|
void |
setIdRequired(boolean b) |
boolean |
shouldOutputId() |
String |
toString() |
String |
uniqueReference() |
compareTo, ntriplesStringidRequiredpublic RDFResourceBlankNode(IRI resource, boolean isIndividual, boolean forceId, boolean isAxiom)
resource - The IRI of the resourceisIndividual - true if the node represents an individualforceId - true if id should be outputisAxiom - true if axiompublic RDFResourceBlankNode(Integer anonId, boolean isIndividual, boolean forceId, boolean isAxiom)
anonId - the number at the end of the anon IRIisIndividual - true if the node represents an individualforceId - true if id should be outputisAxiom - true if axiompublic RDFResourceBlankNode(boolean isIndividual,
boolean forceId,
boolean isAxiom)
isIndividual - true if this is an individualforceId - true if the id should be outputisAxiom - true if axiompublic boolean isIndividual()
isIndividual in class RDFNodepublic boolean isAxiom()
RDFNodepublic boolean shouldOutputId()
shouldOutputId in class RDFNodepublic void setIdRequired(boolean b)
b - change the value of the id required flagpublic boolean isLiteral()
RDFNodepublic boolean isAnonymous()
RDFNodeisAnonymous in class RDFNodetrue if this is a resource node (i.e. RDFNode.isLiteral() returns false) and the node is anonymous, or false if this is a resource node and is not
anonymous.public int hashCode()
public IRI getResource()
getResource in class RDFResourcepublic String uniqueReference()
uniqueReference in interface org.apache.commons.rdf.api.BlankNodepublic String getNodeIDValue()
RDFResourcegetNodeIDValue in class RDFResourceCopyright © 2020 The University of Manchester. All rights reserved.