public class IRI extends Object implements OWLAnnotationSubject, OWLAnnotationValue, SWRLPredicate, CharSequence, OWLPrimitive, HasShortForm
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
|
com.google.common.base.Optional<OWLAnonymousIndividual> |
asAnonymousIndividual() |
com.google.common.base.Optional<IRI> |
asIRI() |
com.google.common.base.Optional<OWLLiteral> |
asLiteral() |
char |
charAt(int index) |
int |
compareTo(OWLObject o) |
boolean |
containsEntityInSignature(OWLEntity owlEntity)
Determines if the signature of this object contains the specified entity.
|
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.
|
Set<OWLAnnotationProperty> |
getAnnotationPropertiesInSignature()
A convenience method that obtains the annotation properties that are in
the signature of this object
|
Set<OWLAnonymousIndividual> |
getAnonymousIndividuals()
Gets the anonymous individuals occurring in this object.
|
Set<OWLClass> |
getClassesInSignature()
Gets the classes in the signature of this object.
|
Set<OWLDataProperty> |
getDataPropertiesInSignature()
A convenience method that obtains the data properties that are in the
signature of this object
|
Set<OWLDatatype> |
getDatatypesInSignature()
A convenience method that obtains the datatypes that are in the signature
of this object
|
String |
getFragment()
Gets the last part of the IRI that is a valid NCName; note that for some IRIs this can be
empty.
|
Set<OWLNamedIndividual> |
getIndividualsInSignature()
A convenience method that obtains the individuals that are in the
signature of this object
|
String |
getNamespace() |
Set<OWLClassExpression> |
getNestedClassExpressions()
Gets all of the nested (includes top level) class expressions (anonymous and named) that are
used in this object.
|
Set<OWLObjectProperty> |
getObjectPropertiesInSignature()
A convenience method that obtains the object properties that are in the
signature of this object
|
com.google.common.base.Optional<String> |
getRemainder() |
String |
getScheme() |
String |
getShortForm()
Gets the short form.
|
Set<OWLEntity> |
getSignature()
Gets the signature of this object.
|
int |
hashCode() |
boolean |
isAbsolute()
Determines if this IRI is absolute
|
boolean |
isBottomEntity()
Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty
(the bottom object property) , owl:bottomDataProperty (the bottom data property).
|
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 |
boolean |
isTopEntity()
Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the
top object property) , owl:topDataProperty (the top data property) or rdfs:Literal (the top
datatype).
|
int |
length() |
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.
|
isLiteral
isIndividual
isAnonymous, isNamed
chars, codePoints
public boolean isBuiltinAnnotationProperty
public boolean isIRI()
@Nonnull public URI toURI()
public boolean isAbsolute()
true
if this IRI is absolute or false
if this IRI is not absolute@Nonnull public IRI resolve(@Nonnull 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 withtrue
if this IRI is equal to <http://www.w3.org/2002/07/owl#Thing> and
otherwise false
public boolean isNothing()
owl:Nothing
is named withtrue
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
@Nonnull public String getFragment()
@Nonnull public com.google.common.base.Optional<String> getRemainder()
@Nonnull public String toQuotedString()
@Nonnull public static IRI create(@Nonnull String str)
str
- The String that specifies the IRI@Nonnull public static IRI create(@Nullable String prefix, @Nullable String suffix)
prefix
- The first stringsuffix
- The second string@Nonnull public static IRI create(@Nonnull File file)
file
- the file to create the IRI from@Nonnull public static IRI create(@Nonnull URI uri)
uri
- the URI to create the IRI from@Nonnull public static IRI create(@Nonnull URL url)
url
- the URL to create the IRI fromOWLRuntimeException
- if the URL is ill formed@Nonnull public static IRI generateDocumentIRI()
owlapi:ontologyNNNNNNNNNNN
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
@Nonnull public String prefixedBy(@Nonnull String prefix)
prefix
- prefix to use for replacing the IRI namespace@Nonnull public String getShortForm()
HasShortForm
getShortForm
in interface HasShortForm
null
.public void accept(@Nonnull OWLObjectVisitor visitor)
OWLObject
public <O> O accept(@Nonnull OWLObjectVisitorEx<O> visitor)
OWLObject
public void accept(@Nonnull OWLAnnotationSubjectVisitor visitor)
accept
in interface OWLAnnotationSubject
visitor
- visitor to acceptpublic <E> E accept(@Nonnull OWLAnnotationSubjectVisitorEx<E> visitor)
accept
in interface OWLAnnotationSubject
E
- visitor return typevisitor
- visitor to accept@Nonnull public Set<OWLClass> getClassesInSignature()
HasClassesInSignature
getClassesInSignature
in interface HasClassesInSignature
@Nonnull public Set<OWLDataProperty> getDataPropertiesInSignature()
HasDataPropertiesInSignature
getDataPropertiesInSignature
in interface HasDataPropertiesInSignature
@Nonnull public Set<OWLNamedIndividual> getIndividualsInSignature()
HasIndividualsInSignature
getIndividualsInSignature
in interface HasIndividualsInSignature
@Nonnull public Set<OWLObjectProperty> getObjectPropertiesInSignature()
HasObjectPropertiesInSignature
getObjectPropertiesInSignature
in interface HasObjectPropertiesInSignature
@Nonnull public Set<OWLEntity> getSignature()
HasSignature
getSignature
in interface HasSignature
public boolean containsEntityInSignature(OWLEntity owlEntity)
HasContainsEntityInSignature
containsEntityInSignature
in interface HasContainsEntityInSignature
owlEntity
- The entitytrue
if the signature of this object contains
owlEntity
, otherwise false
@Nonnull public Set<OWLAnonymousIndividual> getAnonymousIndividuals()
HasAnonymousIndividuals
getAnonymousIndividuals
in interface HasAnonymousIndividuals
@Nonnull public Set<OWLDatatype> getDatatypesInSignature()
HasDatatypesInSignature
getDatatypesInSignature
in interface HasDatatypesInSignature
public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature()
HasAnnotationPropertiesInSignature
getAnnotationPropertiesInSignature
in interface HasAnnotationPropertiesInSignature
@Nonnull public Set<OWLClassExpression> getNestedClassExpressions()
OWLObject
getNestedClassExpressions
in interface OWLObject
OWLClassExpression
s that represent the
nested class expressions used in this object.public int compareTo(OWLObject o)
compareTo
in interface Comparable<OWLObject>
public void accept(@Nonnull OWLAnnotationValueVisitor visitor)
accept
in interface OWLAnnotationValue
visitor
- visitor to acceptpublic <O> O accept(@Nonnull OWLAnnotationValueVisitorEx<O> visitor)
accept
in interface OWLAnnotationValue
O
- visitor return typevisitor
- visitor to acceptpublic com.google.common.base.Optional<IRI> asIRI()
asIRI
in interface OWLAnnotationValue
public com.google.common.base.Optional<OWLAnonymousIndividual> asAnonymousIndividual()
asAnonymousIndividual
in interface OWLAnnotationValue
public com.google.common.base.Optional<OWLLiteral> asLiteral()
asLiteral
in interface OWLAnnotationValue
public boolean isTopEntity()
OWLObject
isTopEntity
in interface OWLObject
true
if this object corresponds to one of the above entities.public boolean isBottomEntity()
OWLObject
isBottomEntity
in interface OWLObject
true
if this object corresponds to one of the above entities.Copyright © 2020 The University of Manchester. All rights reserved.