public class IRI extends Object implements OWLAnnotationSubject, OWLAnnotationValue, SWRLPredicate, CharSequence, OWLPrimitive, HasShortForm
| 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()
Deprecated.
use getNCName() - getFragment() does not return a real
fragment. e.g., it does not allow / and () on it
|
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 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 |
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.
|
chars, codePoints@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 stirng to be resolvedpublic boolean isReservedVocabulary()
true if the IRI is in the reserved vocabulary, otherwise
false.public boolean isThing()
owl:Thing is
named withtrue if this IRI is equal to
<http://www.w3.org/2002/07/owl#Thing> and otherwise
falsepublic boolean isNothing()
owl:Nothing is
named withtrue if this IRI is equal to
<http://www.w3.org/2002/07/owl#Nothing> and otherwise
falsepublic boolean isPlainLiteral()
rdf:PlainLiteraltrue if this IRI is equal to
<http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>,
otherwise false@Deprecated @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:ontologyNNNNNNNNNNNpublic int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic 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()
HasShortFormgetShortForm in interface HasShortFormnull.public void accept(@Nonnull OWLObjectVisitor visitor)
OWLObjectpublic <O> O accept(@Nonnull OWLObjectVisitorEx<O> visitor)
OWLObjectpublic void accept(@Nonnull OWLAnnotationSubjectVisitor visitor)
accept in interface OWLAnnotationSubjectvisitor - visitor to acceptpublic <E> E accept(@Nonnull OWLAnnotationSubjectVisitorEx<E> visitor)
accept in interface OWLAnnotationSubjectE - visitor return typevisitor - visitor to accept@Nonnull public Set<OWLClass> getClassesInSignature()
HasClassesInSignaturegetClassesInSignature in interface HasClassesInSignature@Nonnull public Set<OWLDataProperty> getDataPropertiesInSignature()
HasDataPropertiesInSignaturegetDataPropertiesInSignature in interface HasDataPropertiesInSignature@Nonnull public Set<OWLNamedIndividual> getIndividualsInSignature()
HasIndividualsInSignaturegetIndividualsInSignature in interface HasIndividualsInSignature@Nonnull public Set<OWLObjectProperty> getObjectPropertiesInSignature()
HasObjectPropertiesInSignaturegetObjectPropertiesInSignature in interface HasObjectPropertiesInSignature@Nonnull public Set<OWLEntity> getSignature()
HasSignaturegetSignature in interface HasSignaturepublic boolean containsEntityInSignature(OWLEntity owlEntity)
HasContainsEntityInSignaturecontainsEntityInSignature in interface HasContainsEntityInSignatureowlEntity - The entitytrue if the signature of this object contains
owlEntity, otherwise false@Nonnull public Set<OWLAnonymousIndividual> getAnonymousIndividuals()
HasAnonymousIndividualsgetAnonymousIndividuals in interface HasAnonymousIndividuals@Nonnull public Set<OWLDatatype> getDatatypesInSignature()
HasDatatypesInSignaturegetDatatypesInSignature in interface HasDatatypesInSignaturepublic Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature()
HasAnnotationPropertiesInSignaturegetAnnotationPropertiesInSignature in interface HasAnnotationPropertiesInSignature@Nonnull public Set<OWLClassExpression> getNestedClassExpressions()
OWLObjectgetNestedClassExpressions in interface OWLObjectOWLClassExpressions
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 OWLAnnotationValuevisitor - visitor to acceptpublic <O> O accept(@Nonnull OWLAnnotationValueVisitorEx<O> visitor)
accept in interface OWLAnnotationValueO - visitor return typevisitor - visitor to acceptpublic com.google.common.base.Optional<IRI> asIRI()
asIRI in interface OWLAnnotationValuepublic com.google.common.base.Optional<OWLAnonymousIndividual> asAnonymousIndividual()
asAnonymousIndividual in interface OWLAnnotationValuepublic com.google.common.base.Optional<OWLLiteral> asLiteral()
asLiteral in interface OWLAnnotationValuepublic boolean isTopEntity()
OWLObjectisTopEntity in interface OWLObjecttrue if this object corresponds to one of the above
entities.public boolean isBottomEntity()
OWLObjectisBottomEntity in interface OWLObjecttrue if this object corresponds to one of the above
entities.Copyright © 2016 The University of Manchester. All Rights Reserved.