# KnowledgeTriple

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graphs/networkx_graph/KnowledgeTriple)

Knowledge triple in the graph.

## Signature

```python
KnowledgeTriple()
```

## Extends

- `NamedTuple`

## Properties

- `subject`
- `predicate`
- `object_`

## Methods

- [`from_string()`](https://reference.langchain.com/python/langchain-community/graphs/networkx_graph/KnowledgeTriple/from_string)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/graphs/networkx_graph.py#L10)