Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save magnus919/4554ecf9d1018038ce8597e217abd908 to your computer and use it in GitHub Desktop.
Save magnus919/4554ecf9d1018038ce8597e217abd908 to your computer and use it in GitHub Desktop.
working example of arXiv:2506.11020 "Extracting Knowledge Graphs from User Stories using LangChain"
[
{
"output": {
"entities": [
{
"name": "User",
"type": "Actor",
"properties": {
"description": "A user who interacts with the system",
"story_component": "who",
"priority": "High",
"complexity": "Simple",
"domain": "User Interaction"
}
},
{
"name": "Customize Layout",
"type": "Action",
"properties": {
"description": "The action of modifying the dashboard layout",
"story_component": "what",
"priority": "High",
"complexity": "Medium",
"domain": "Dashboard Configuration"
}
},
{
"name": "Dashboard Layout",
"type": "Entity",
"properties": {
"description": "The arrangement of elements on the user's dashboard",
"story_component": "what",
"priority": "High",
"complexity": "Medium",
"domain": "Dashboard"
}
},
{
"name": "Arrange Information Suitably",
"type": "Benefit",
"properties": {
"description": "Ability to organize information in a way that suits the user",
"story_component": "why",
"priority": "High",
"complexity": "Simple",
"domain": "User Experience"
}
}
],
"relationships": [
{
"source": "User",
"target": "Customize Layout",
"type": "PERFORMS",
"properties": {
"strength": "Strong",
"dependency_type": "Required",
"story_connection": "The user performs the action of customizing the layout"
}
},
{
"source": "Customize Layout",
"target": "Arrange Information Suitably",
"type": "ACHIEVES",
"properties": {
"strength": "Strong",
"dependency_type": "Required",
"story_connection": "Customizing the layout achieves the benefit of arranging information suitably"
}
},
{
"source": "Customize Layout",
"target": "Dashboard Layout",
"type": "REQUIRES",
"properties": {
"strength": "Strong",
"dependency_type": "Required",
"story_connection": "Customizing layout requires the dashboard layout entity"
}
}
],
"story_metadata": {
"epic": "Dashboard Personalization",
"acceptance_criteria": [
"User can modify the arrangement of dashboard elements",
"Changes to layout are saved and persist across sessions",
"User can arrange information in a way that suits their preferences"
],
"story_points": 5
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment