public class RDFResourceBlankNode extends RDFResource
| Constructor and Description |
|---|
RDFResourceBlankNode(boolean isIndividual,
boolean forceId)
Create an RDFResource that is anonymous
|
RDFResourceBlankNode(int anonId,
boolean isIndividual,
boolean forceId)
Create an RDFResource that is anonymous
|
RDFResourceBlankNode(IRI resource,
boolean isIndividual,
boolean forceId)
Create an RDFResource that is anonymous
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
IRI |
getIRI()
Gets the IRI of this object
|
IRI |
getResource() |
int |
hashCode() |
boolean |
isAnonymous()
Determines if this node is a resource and is anonymous.
|
boolean |
isIndividual() |
boolean |
isLiteral()
Determines if this node is a literal node.
|
boolean |
shouldOutputId() |
String |
toString() |
compareTopublic RDFResourceBlankNode(@Nonnull IRI resource, boolean isIndividual, boolean forceId)
resource - The IRI of the resourceisIndividual - true if this is an individualforceId - true if the id should be outputtedpublic RDFResourceBlankNode(int anonId,
boolean isIndividual,
boolean forceId)
anonId - the number at the end of the anon IRIisIndividual - true if this is an individualforceId - true if the id should be outputtedpublic RDFResourceBlankNode(boolean isIndividual,
boolean forceId)
isIndividual - true if this is an individualforceId - true if the id should be outputtedpublic boolean isIndividual()
isIndividual in class RDFNodepublic boolean shouldOutputId()
shouldOutputId in class RDFNodepublic boolean isLiteral()
RDFNodepublic boolean isAnonymous()
RDFNodeisAnonymous in class RDFNodetrue 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()
HasIRIpublic IRI getResource()
getResource in class RDFResourceCopyright © 2016 The University of Manchester. All Rights Reserved.