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, isLiteral
asAnonymousIndividual
getNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isOntology, isTopEntity, nestedClassExpressions
getSignature, signature, unsortedSignature
containsEntityInSignature
anonymousIndividuals, getAnonymousIndividuals
classesInSignature, getClassesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
getIndividualsInSignature, individualsInSignature
datatypesInSignature, getDatatypesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
componentsAnnotationsFirst, componentsWithoutAnnotations
isAnonymous, isNamed
anonymousIndividualValue, ifAnonymousIndividual, ifAnonymousIndividualOrElse, ifIri, ifIriOrElse, ifLiteral, ifLiteralOrElse, ifValue, iriValue, literalValue, map, map, mapAnonymousIndividual, mapAnonymousIndividualOrElse, mapAnonymousIndividualOrElseGet, mapIri, mapIriOrElse, mapIriOrElseGet, mapLiteral, mapLiteralOrElse, mapLiteralOrElseGet, mapValue, when
chars, codePoints
public 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:ontologyNNNNNNNNNNN
public 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 string 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 false
public boolean isNothing()
owl:Nothing
is named with.true
if this IRI is equal to <http://www.w3.org/2002/07/owl#Nothing>
and otherwise false
public boolean isPlainLiteral()
rdf:PlainLiteral
.true
if this IRI is equal to
<http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>, otherwise
false
public String getFragment()
public Optional<String> getRemainder()
public String toQuotedString()
public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public String prefixedBy(String prefix)
prefix
- prefix to use for replacing the IRI namespacepublic String getShortForm()
HasShortForm
getShortForm
in interface HasShortForm
public void accept(OWLObjectVisitor visitor)
OWLObject
public <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
public void accept(OWLAnnotationSubjectVisitor visitor)
accept
in interface OWLAnnotationSubject
visitor
- visitor to acceptpublic <E> E accept(OWLAnnotationSubjectVisitorEx<E> visitor)
accept
in interface OWLAnnotationSubject
E
- visitor return typevisitor
- visitor to acceptpublic int compareTo(@Nullable OWLObject o)
compareTo
in interface Comparable<OWLObject>
public String toString()
toString
in interface CharSequence
toString
in class Object
public int hashCode()
public int initHashCode()
initHashCode
in interface OWLObject
public void accept(OWLAnnotationValueVisitor visitor)
accept
in interface OWLAnnotationValue
visitor
- visitor to acceptpublic <O> O accept(OWLAnnotationValueVisitorEx<O> visitor)
accept
in interface OWLAnnotationValue
O
- visitor return typevisitor
- visitor to acceptpublic Optional<IRI> asIRI()
asIRI
in interface OWLAnnotationObject
public String ntriplesString()
ntriplesString
in interface org.apache.commons.rdf.api.RDFTerm
public String getIRIString()
getIRIString
in interface org.apache.commons.rdf.api.IRI
public Stream<?> components()
components
in interface HasComponents
public int hashIndex()
hashIndex
in interface HasHashIndex
Copyright © 2020 The University of Manchester. All rights reserved.