oldman.core.parsing package

Submodules

oldman.core.parsing.value module

class oldman.core.parsing.value.AttributeValueExtractor(om_attribute)[source]

Bases: object

An AttributeValueExtractor object extracts values from RDF graphs for a given OMAttribute object.

Parameters:om_attributeOMAttribute object.
extract_value(resource, subgraph)[source]

Extracts a resource attribute value from a RDF graph.

Parameters:
  • resourceResource object.
  • subgraphrdflib.graph.Graph object containing the value to extract.
Returns:

Collection or atomic value.

Module contents