Skip to content

Commit

Permalink
fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
nelly-hateva committed Jan 2, 2024
1 parent 1f3759c commit 30353d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions libs/community/langchain_community/graphs/rdf_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from typing import (
TYPE_CHECKING,
Dict,
List,
Optional,
Dict,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -127,8 +127,10 @@ def __init__(
:param update_endpoint: SPARQL endpoint for UPDATE queries, write access
:param standard: RDF, RDFS, or OWL
:param local_copy: new local copy for storing changes
:param graph_kwargs: Additional rdflib.Graph specific kwargs that will be used to initialize it.
If not provided, only identifier="urn:x-rdflib:default" is used to initialize the graph.
:param graph_kwargs: Additional rdflib.Graph specific kwargs
that will be used to initialize it.
If not provided, only identifier="urn:x-rdflib:default" is used
to initialize the graph.
"""
self.source_file = source_file
self.serialization = serialization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def test_loading_schema_from_graphdb() -> None:
)
schema = graph.get_schema
prefix = (
"In the following, each IRI is followed by the local name and optionally its description in parentheses. \n"
"In the following, each IRI is followed by the local name and "
"optionally its description in parentheses. \n"
"The RDF graph supports the following node types:")
assert schema.startswith(prefix)

Expand Down

0 comments on commit 30353d8

Please sign in to comment.