owlapy.model.IRI¶
-
class
owlapy.model.
IRI
(*args, **kwargs)¶ Bases:
owlapy.model.OWLAnnotationSubject
,owlapy.model.OWLAnnotationValue
An IRI, consisting of a namespace and a remainder
Methods
- returns:
if the value is an anonymous, return it. Return None otherwise.
Returns: if the value is an IRI, return it.
- returns:
if the value is a literal, returns it. Return None otherwise
- returns:
the string that specifies the IRI
- returns:
the namespace as string
- returns:
the remainder (coincident with NCName usually) for this IRI.
Gets the short form.
- returns:
true if the annotation value is a literal
Determines if this IRI is equal to the IRI that owl:Nothing is named with.
Determines if this IRI is in the reserved vocabulary.
Determines if this IRI is equal to the IRI that owl:Thing is named with.
Attributes
-
as_anonymous_individual
()¶ - Returns:
if the value is an anonymous, return it. Return None otherwise.
-
as_iri
() → owlapy.model.IRI[source]¶ Returns: if the value is an IRI, return it. Return Mone otherwise.
-
as_literal
() → Optional[OWLLiteral]¶ - Returns:
if the value is a literal, returns it. Return None otherwise
-
static
create
(string, remainder=None) → owlapy.model.IRI[source]¶
-
get_remainder
() → str[source]¶ - Returns:
the remainder (coincident with NCName usually) for this IRI.
-
get_short_form
() → str[source]¶ Gets the short form.
- Returns:
A string that represents the short form.
-
is_anonymous
() → bool¶
-
is_literal
() → bool¶ - Returns:
true if the annotation value is a literal
-
is_nothing
()[source]¶ Determines if this IRI is equal to the IRI that owl:Nothing is named with.
- Returns:
True if this IRI is equal to <http://www.w3.org/2002/07/owl#Nothing> and otherwise False
-
is_reserved_vocabulary
() → bool[source]¶ Determines if this IRI is in the reserved vocabulary. An IRI is in the reserved vocabulary if it starts with <http://www.w3.org/1999/02/22-rdf-syntax-ns#> or <http://www.w3.org/2000/01/rdf-schema#> or <http://www.w3.org/2001/XMLSchema#> or <http://www.w3.org/2002/07/owl#>
- Returns:
True if the IRI is in the reserved vocabulary, otherwise False.
-
is_thing
()[source]¶ Determines if this IRI is equal to the IRI that owl:Thing is named with.
- Returns:
True if this IRI is equal to <http://www.w3.org/2002/07/owl#Thing> and otherwise False
-
type_index
: Final = 0¶