The surf.plugin.writer
Module¶
-
class
surf.plugin.writer.
RDFWriter
(reader, *args, **kwargs)[source]¶ Bases:
surf.plugin.Plugin
Super 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
context
is 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.Store
store
-
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.
-