public class IRI extends Object implements OWLAnnotationSubject, OWLAnnotationValue, SWRLPredicate, CharSequence, OWLPrimitive, HasShortForm, org.apache.commons.rdf.api.IRI
| Type | Property and Description |
|---|---|
boolean |
isBuiltinAnnotation
Gets the value of the property builtinAnnotationProperty.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLAnnotationSubjectVisitor visitor) |
<E> E |
accept(OWLAnnotationSubjectVisitorEx<E> visitor) |
void |
accept(OWLAnnotationValueVisitor visitor) |
<O> O |
accept(OWLAnnotationValueVisitorEx<O> visitor) |
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
Optional<IRI> |
asIRI() |
char |
charAt(int index) |
int |
compareTo(OWLObject o) |
Stream<?> |
components() |
static IRI |
create(File file) |
static IRI |
create(String str)
Creates an IRI from the specified String.
|
static IRI |
create(String prefix,
String suffix)
Creates an IRI by concatenating two strings.
|
static IRI |
create(URI uri) |
static IRI |
create(URL url) |
boolean |
equals(Object obj) |
static IRI |
generateDocumentIRI()
Gets an auto-generated ontology document IRI.
|
String |
getFragment()
Gets the last part of the IRI that is a valid NCName; note that for some IRIs this can be
empty.
|
String |
getIRIString() |
String |
getNamespace() |
static IRI |
getNextDocumentIRI(String prefix) |
Optional<String> |
getRemainder() |
String |
getScheme() |
String |
getShortForm()
Gets the short form.
|
int |
hashCode() |
int |
hashIndex() |
int |
initHashCode() |
boolean |
isAbsolute()
Determines if this IRI is absolute.
|
boolean |
isBuiltinAnnotationProperty()
Gets the value of the property builtinAnnotationProperty.
|
boolean |
isIRI() |
boolean |
isNothing()
Determines if this IRI is equal to the IRI that
owl:Nothing is named with. |
boolean |
isPlainLiteral()
Determines if this IRI is equal to the IRI that is named
rdf:PlainLiteral. |
boolean |
isReservedVocabulary()
Determines if this IRI is in the reserved vocabulary.
|
boolean |
isThing()
Determines if this IRI is equal to the IRI that
owl:Thing is named with. |
int |
length() |
String |
ntriplesString() |
String |
prefixedBy(String prefix) |
IRI |
resolve(String s) |
CharSequence |
subSequence(int start,
int end) |
String |
toQuotedString()
Obtained this IRI surrounded by angled brackets.
|
String |
toString() |
URI |
toURI()
Obtains this IRI as a URI.
|
int |
typeIndex() |
annotationValue, asLiteral, isLiteralasAnonymousIndividualgetNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isOntology, isTopEntity, nestedClassExpressionsgetSignature, signature, unsortedSignaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignaturecomponentsAnnotationsFirst, componentsWithoutAnnotationsisAnonymous, isNamedanonymousIndividualValue, ifAnonymousIndividual, ifAnonymousIndividualOrElse, ifIri, ifIriOrElse, ifLiteral, ifLiteralOrElse, ifValue, iriValue, literalValue, map, map, mapAnonymousIndividual, mapAnonymousIndividualOrElse, mapAnonymousIndividualOrElseGet, mapIri, mapIriOrElse, mapIriOrElseGet, mapLiteral, mapLiteralOrElse, mapLiteralOrElseGet, mapValue, whenchars, codePointspublic boolean isBuiltinAnnotationProperty
public static IRI create(String str)
str - The String that specifies the IRIpublic static IRI create(@Nullable String prefix, @Nullable String suffix)
prefix - The first stringsuffix - The second stringpublic static IRI create(File file)
file - the file to create the IRI frompublic static IRI create(URI uri)
uri - the uri to create the IRI frompublic static IRI create(URL url)
url - the url to create the IRI fromOWLRuntimeException - if the URL is ill formedpublic static IRI generateDocumentIRI()
owlapi:ontologyNNNNNNNNNNNpublic static IRI getNextDocumentIRI(String prefix)
prefix - prefix for resultpublic int typeIndex()
public boolean isIRI()
public URI toURI()
public boolean isAbsolute()
true if this IRI is absolute or false if this IRI is not absolutepublic String getNamespace()
public IRI resolve(String s)
s - the IRI stirng to be resolvedpublic boolean isReservedVocabulary()
true if the IRI is in the reserved vocabulary, otherwise false.public boolean isBuiltinAnnotationProperty()
public boolean isThing()
owl:Thing is named with.true if this IRI is equal to <http://www.w3.org/2002/07/owl#Thing> and
otherwise falsepublic boolean isNothing()
owl:Nothing is named with.true if this IRI is equal to <http://www.w3.org/2002/07/owl#Nothing>
and otherwise falsepublic boolean isPlainLiteral()
rdf:PlainLiteral.true if this IRI is equal to
<http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>, otherwise
falsepublic String getFragment()
public Optional<String> getRemainder()
public String toQuotedString()
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic String prefixedBy(String prefix)
prefix - prefix to use for replacing the IRI namespacepublic String getShortForm()
HasShortFormgetShortForm in interface HasShortFormpublic void accept(OWLObjectVisitor visitor)
OWLObjectpublic <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObjectpublic void accept(OWLAnnotationSubjectVisitor visitor)
accept in interface OWLAnnotationSubjectvisitor - visitor to acceptpublic <E> E accept(OWLAnnotationSubjectVisitorEx<E> visitor)
accept in interface OWLAnnotationSubjectE - visitor return typevisitor - visitor to acceptpublic int compareTo(@Nullable OWLObject o)
compareTo in interface Comparable<OWLObject>public String toString()
toString in interface CharSequencetoString in class Objectpublic int hashCode()
public int initHashCode()
initHashCode in interface OWLObjectpublic void accept(OWLAnnotationValueVisitor visitor)
accept in interface OWLAnnotationValuevisitor - visitor to acceptpublic <O> O accept(OWLAnnotationValueVisitorEx<O> visitor)
accept in interface OWLAnnotationValueO - visitor return typevisitor - visitor to acceptpublic Optional<IRI> asIRI()
asIRI in interface OWLAnnotationObjectpublic String ntriplesString()
ntriplesString in interface org.apache.commons.rdf.api.RDFTermpublic String getIRIString()
getIRIString in interface org.apache.commons.rdf.api.IRIpublic Stream<?> components()
components in interface HasComponentspublic int hashIndex()
hashIndex in interface HasHashIndexCopyright © 2019 The University of Manchester. All rights reserved.