Skip to content

Knowledge graph script – outputs nodes as Wikidata IDs and Wikipedia URLs #9

@taiba-shamim

Description

@taiba-shamim

The script create_knowledge_graph.py currently generates nodes labeled with Wikidata IDs (e.g., Qxxxx) and Wikipedia URLs rather than human readable terms

create_knowledge_graph.py https://github.com/semanticClimate/encyclopedia/blob/pmr202601/Examples/create_knowledge_graph.py

Input -encyclopedia_ClimateAcademy.html

output file-** Knowledge_graph_ClimateAcademy.graphml

Expected Behavior
Nodes in the knowledge graph should display terms (e.g., "Climate Change", "Greenhouse Gas") instead of raw Wikidata identifiers.

Current Behavior

  • Nodes appear as:
    • Wikidata IDs (e.g., Q12345)
    • Wikipedia URLs

Snapshot of the issue

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions