How webo1980/orkgex works
ORKGEx is a Chrome extension for annotating research articles and extracting structured knowledge from figures, with integration to ORKG. The main workflow is: a researcher selects text or images on a page; the content script annotates selections and suggests properties; the background script relays messages and stores selections; the popup presents them and supports metadata, triple, and paper workflows. Figure extraction and editing are represented separately. The README documents ORKG integration, while sampled code shows the extension’s local messaging, storage, and external requests; unsampled wiring is omitted.
Main entry points: popup.js Annotation popup · content.js Page annotator · background.js Message and state handler · splitView.js Figure triple editor
Components 13
Page annotation
- Page annotator
scripts/content.js
Extension coordination
- Message and state handler
background.js - Extension local storage
Research workflows
- Annotation popup
popup/popup.js - Popup interface
popup/popup.html - Semantic Scholar
- ORKG platform
Figure extraction
- Chart extraction service
- OpenAI API
- Figure triple editor
popup/splitView.js - Alternate figure editor
ORKGEditor/Chrome Extension V2.0/popup/splitView.js
Other components
- Researcher
- Research article page
Connections 15
- Researcher → Research article page: selects content
- Research article page → Page annotator: provides selections
scripts/content.js - Annotation popup → Page annotator: requests highlighting
popup/popup.js - Page annotator → Message and state handler: sends selection events
scripts/content.js - Annotation popup → Message and state handler: requests selection state
popup/popup.js - Message and state handler → Extension local storage: stores selections
background.js - Annotation popup → Extension local storage: reads saved selections
popup/popup.js - Popup interface → Annotation popup: hosts workflow
popup/popup.js - Page annotator → OpenAI API: requests property suggestions
scripts/content.js - Annotation popup → Semantic Scholar: fetches paper metadata
popup/popup.js - Annotation popup → ORKG platform: creates and opens papers
popup/popup.js - Researcher → Annotation popup: reviews annotations
- Figure triple editor → Chart extraction service: requests chart data
popup/splitView.js - Figure triple editor → OpenAI API: models triples
popup/splitView.js - Alternate figure editor → OpenAI API: models image triples
ORKGEditor/Chrome Extension V2.0/popup/splitView.js