modos.rdf#

Functions#

get_slot_range(slot_name)

Return the class-independent range of a slot.

instance_to_graph(instance)

load_prefixmap()

Load the prefixmap.

load_schema()

Return a view over the schema structure.

is_uri(text)

Checks if input is a valid URI.

class_from_name(name)

attrs_to_graph(meta, uri_prefix)

Convert a attribute dictionary to an RDF graph of metadata.

Module Contents#

modos.rdf.get_slot_range(slot_name)[source]#

Return the class-independent range of a slot.

Parameters:

slot_name (str)

Return type:

str

modos.rdf.instance_to_graph(instance)[source]#
Return type:

rdflib.Graph

modos.rdf.load_prefixmap()[source]#

Load the prefixmap.

Return type:

Any

modos.rdf.load_schema()[source]#

Return a view over the schema structure.

Return type:

linkml_runtime.utils.schemaview.SchemaView

modos.rdf.is_uri(text)[source]#

Checks if input is a valid URI.

Parameters:

text (str)

modos.rdf.class_from_name(name)[source]#
Parameters:

name (str)

modos.rdf.attrs_to_graph(meta, uri_prefix)[source]#

Convert a attribute dictionary to an RDF graph of metadata.

Parameters:
Return type:

rdflib.Graph