Serializable
, Comparable<RDFNode>
, HasIRI
public class RDFResourceBlankNode extends RDFResource
Constructor | 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 | Description |
---|---|---|
boolean |
equals(Object obj) |
|
IRI |
getIRI() |
Gets the IRI of this object
|
String |
getNodeIDValue() |
For blank nodes, return a valid value for thr 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.
|
boolean |
shouldOutputId() |
|
String |
toString() |
idRequiredForIndividualOrAxiom
compareTo
public RDFResourceBlankNode(@Nonnull IRI resource, boolean isIndividual, boolean forceId, boolean isAxiom)
resource
- The IRI of the resourceisIndividual
- true if this is an individualforceId
- true if the id should be outputtedisAxiom
- true if axiompublic RDFResourceBlankNode(Integer anonId, boolean isIndividual, boolean forceId, boolean isAxiom)
anonId
- the number at the end of the anon IRIisIndividual
- true if this is an individualforceId
- true if the id should be outputtedisAxiom
- true if axiompublic RDFResourceBlankNode(boolean isIndividual, boolean forceId, boolean isAxiom)
isIndividual
- true if this is an individualforceId
- true if the id should be outputtedisAxiom
- true if axiompublic boolean isIndividual()
isIndividual
in class RDFNode
public boolean isAxiom()
RDFNode
public boolean shouldOutputId()
shouldOutputId
in class RDFNode
public boolean isLiteral()
RDFNode
public boolean isAnonymous()
RDFNode
isAnonymous
in class RDFNode
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.public IRI getIRI()
HasIRI
public IRI getResource()
getResource
in class RDFResource
public String getNodeIDValue()
RDFResource
getNodeIDValue
in class RDFResource
Copyright © 2018 The University of Manchester. All rights reserved.