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 theresource
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 theresource
is considered the object of the query.
-
is_enable_logging
()¶ True if logging is enabled.
-