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

as_anonymous_individual

returns:

if the value is an anonymous, return it. Return None otherwise.

as_iri

Returns: if the value is an IRI, return it.

as_literal

returns:

if the value is a literal, returns it. Return None otherwise

as_str

returns:

the string that specifies the IRI

create

get_namespace

returns:

the namespace as string

get_remainder

returns:

the remainder (coincident with NCName usually) for this IRI.

get_short_form

Gets the short form.

is_anonymous

is_literal

returns:

true if the annotation value is a literal

is_nothing

Determines if this IRI is equal to the IRI that owl:Nothing is named with.

is_reserved_vocabulary

Determines if this IRI is in the reserved vocabulary.

is_thing

Determines if this IRI is equal to the IRI that owl:Thing is named with.

Attributes

type_index

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

as_str()str[source]
Returns:

the string that specifies the IRI

static create(string, remainder=None)owlapy.model.IRI[source]
get_namespace()str[source]
Returns:

the namespace as string

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