The surf.plugin.reader Module

class surf.plugin.reader.RDFReader(*args, **kwargs)[source]

Bases: surf.plugin.Plugin

Super class for all surf Reader plugins.

close()

Close the plugin and free any resources it may hold.

concept(resource)[source]

Return the concept URI of the following resource.

resource can be a string or a URIRef.

enable_logging(enable=True)

Enables or disable logging for the current plugin.

get(resource, attribute, direct)[source]

Return the value(s) of the corresponding attribute.

If direct is False then the subject of the resource is considered the object of the query.

instances_by_attribute(resource, attributes, direct, context)[source]

Return all URIs that are instances of resource and have the specified attributes.

If direct is False, than the subject of the resource is considered the object of the query.

is_enable_logging()

True if logging is enabled.

is_present(resource)[source]

Return True if the resource is present in the store.

load(resource, direct)[source]

Fully load the resource from the store.

This method returns all statements about the resource.

If direct is False, then the subject of the resource is considered the object of the query

Previous topic

The surf.plugin.manager Module

Next topic

The surf.plugin.query_reader Module

This Page