DataComplementOf

class DataComplementOf(data_range)[source]

Bases: DataRange

A data range defined in 7.3 Complement of Data Ranges”.

The following complement data range contains literals that are not positive integers:

>>> DataComplementOf("xsd:positiveInteger")

The following contains all non-zero integers:

>>> DataComplementOf(DataIntersectionOf(["xsd:nonNegativeInteger", "xsd:nonPositiveInteger"]))

Initialize a complement of a data range using another data range.

Methods Summary

to_funowl_args()

Get the inside of the functional OWL tag representing the complement of data range.

to_rdflib_node(graph, converter)

Represent this complement of a data range for RDF.

Methods Documentation

Parameters:

data_range (DataRange)

to_funowl_args()[source]

Get the inside of the functional OWL tag representing the complement of data range.

Return type:

str

to_rdflib_node(graph, converter)[source]

Represent this complement of a data range for RDF.

Parameters:
  • graph (Graph)

  • converter (Converter)

Return type:

BNode