The surf.plugin.writer Module¶
-
class
surf.plugin.writer.RDFWriter(reader, *args, **kwargs)[source]¶ Bases:
surf.plugin.PluginSuper class for all surf Writer plugins.
-
add_triple(s=None, p=None, o=None, context=None)[source]¶ Add a triple to the store, in the specified
context.None can be used as a wildcard.
-
clear(context=None)[source]¶ Remove all triples from the store.
If
contextis specified, only the specified context will be cleared.
-
index_triples(**kwargs)[source]¶ Perform index of the triples if such functionality is present.
Return True if operation successful.
-
inference¶ Toggle logical inference on / off. The property has any effect only if such functionality is supported by the underlying
surf.store.Storestore
-
load_triples(**kwargs)[source]¶ Load triples from supported sources if such functionality is present.
Return True if operation successful.
-
remove_triple(s=None, p=None, o=None, context=None)[source]¶ Remove a triple from the store, from the specified
context.None can be used as a wildcard.
-