docs: add deprecation notes to docstrings (#4708)

This commit is contained in:
Massimiliano Pippi 2023-04-26 12:16:43 +02:00 committed by GitHub
parent 1b57b96210
commit b54fdd3fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,8 @@ except (ImportError, ModuleNotFoundError):
class BaseKnowledgeGraph(BaseComponent):
"""
Base class for implementing Knowledge Graphs.
The BaseKnowledgeGraph component is deprecated and will be removed in future versions.
"""
def __init__(self):

View File

@ -31,6 +31,8 @@ class GraphDBKnowledgeGraph(BaseKnowledgeGraph):
prefixes: str = "",
):
"""
The GraphDBKnowledgeGraph component is deprecated and will be removed in future versions.
Init the knowledge graph by defining the settings to connect with a GraphDB instance
:param host: address of server where the GraphDB instance is running

View File

@ -19,6 +19,8 @@ class InMemoryKnowledgeGraph(BaseKnowledgeGraph):
def __init__(self, index: str = "document"):
"""
The InMemoryKnowledgeGraph component is deprecated and will be removed in future versions.
Init the in memory knowledge graph
:param index: name of the index

View File

@ -27,6 +27,8 @@ class Text2SparqlRetriever(BaseGraphRetriever):
use_auth_token: Optional[Union[str, bool]] = None,
):
"""
The Text2SparqlRetriever component is deprecated and will be removed in future versions.
Init the Retriever by providing a knowledge graph and a pre-trained BART model
:param knowledge_graph: An instance of BaseKnowledgeGraph on which to execute SPARQL queries.