Mixpeek Logo
    data

    Document
    Knowledge Graph
    Converter

    Transform documents into structured knowledge graphs by extracting entities, relationships, and concepts. Produces nodes and edges suitable for graph databases, enabling complex queries, reasoning, and visualization over document content.

    Max file size: 200 MB
    Estimated: 5-30 sec per page
    5 input formats

    How It Works

    1

    Upload a document or provide a URL to the Mixpeek API.

    2

    Text is extracted and segmented into paragraphs and sections.

    3

    Named entity recognition identifies people, organizations, locations, concepts, and domain-specific terms.

    4

    Relationship extraction identifies connections between entities (e.g., 'works at', 'located in', 'causes').

    5

    A knowledge graph is returned as nodes and edges in JSON-LD, RDF, or a custom graph format.

    Code Examples

    from mixpeek import Mixpeek
    client = Mixpeek(api_key="YOUR_API_KEY")
    result = client.convert(
    source="https://example.com/research-paper.pdf",
    from_format="document",
    to_format="knowledge-graph",
    options={
    "entity_types": ["Person", "Organization", "Concept", "Method"],
    "output_format": "nodes_edges",
    "min_confidence": 0.6,
    "include_context": True
    }
    )
    print(f"Nodes: {len(result.nodes)}, Edges: {len(result.edges)}")
    for node in result.nodes[:5]:
    print(f" [{node.type}] {node.label}")
    for edge in result.edges[:5]:
    print(f" {edge.source} --{edge.relation}--> {edge.target}")

    Use Cases

    Build knowledge bases from legal contracts and regulatory documents
    Map relationships between entities in research paper collections
    Create interactive knowledge graphs for corporate intelligence platforms
    Power question-answering systems that reason over document relationships

    Supported Input Formats

    PDF
    DOCX
    TXT
    HTML
    Markdown

    Quick Info

    Categorydata
    Max File Size200 MB
    Est. Time5-30 sec per page

    Try This Conversion

    Get started with the Mixpeek API and convert your first file in minutes.

    Frequently Asked Questions

    Ready to convert document to knowledge graph?

    Start using the Mixpeek Document to Knowledge Graph in minutes. Sign up for a free API key and follow the documentation to get started.