Alterlab dergipark

From AlterLab-IEU/AlterLab-Academic-Skills · View interactive version

Alterlab dergipark is an AI agent skill from the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills. Harvests article metadata, abstracts, and full-text PDFs from DergiPark (TÜBİTAK ULAKBİM's national journal-hosting platform, 3,000+ journals) via its verified platform-wide OAI-PMH endpoint (https://dergipark.org.tr/api/public/oai/; verbs Identify/ListSets/ListRecords/GetRecord; prefixes oai_dc/oai

How to use this skill

Skill file

DergiPark — National Journal Harvester (TÜBİTAK ULAKBİM)

DergiPark (https://dergipark.org.tr) is **TÜBİTAK ULAKBİM's national

journal-hosting platform** — 3,000+ Turkish scholarly journals (per its home page,

2026-09) on OJS-based

infrastructure. This skill harvests its metadata, abstracts, and full-text PDFs

reproducibly, by going through the one stable machine surface: a platform-wide

OAI-PMH (Open Archives Initiative Protocol for Metadata Harvesting) endpoint,

plus open article pages. It never guesses bibliographic data — every field comes

from the live endpoint, and it emits BibTeX/RIS locally from parsed meta tags.

The interactive search page is gated behind a human-verification challenge, so

this skill does not scrape search over plain HTTP. OAI set-harvest and direct

article-page fetches are the robust paths (see references/oai-cookbook.md).

When to Use This Skill

Use it when the request is about getting data out of DergiPark:

self-declared index list

Canonical Turkish terms you may see: öz (abstract), kapsam (scope),

dergi (journal), künye (citation/masthead). Preserve Turkish spelling with

diacritics in all user-facing strings (e.g. Mülkiye Dergisi).

Does NOT Trigger — route adjacent requests to the right sibling

| The request is really about… | Route to |

|------------------------------|----------|

| Whether a journal is indexed in TR Dizin (national citation index) / its TR Dizin status | alterlab-trdizin |

| Finding/searching a graduate thesis (YÖK Ulusal Tez Merkezi) | alterlab-yok-tez |

| An academic's profile / affiliation (YÖK Akademik) | alterlab-yok-akademik |

| University program admission statistics (YÖK Atlas) | alterlab-yokatlas |

| Computing doçentlik (associate-professorship) eligibility points | alterlab-docentlik-eligibility |

| Computing akademik teşvik (academic-incentive) score | alterlab-akademik-tesvik |

| Depositing a manuscript/data in Aperta (TÜBİTAK open archive) | alterlab-aperta |

| Verifying that cited references exist / hallucination audit | alterlab-citation-verifier |

| Turkish APA / TR Dizin writing-style conventions | alterlab-tr-academic-style |

Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-trdizin) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.

How It Works — Three Scripts

All run with uv run python from the skill directory. No API key. Each prefers

requests if installed, else falls back to stdlib urllib. Full recipes and

gotchas are in references/oai-cookbook.md; the verified endpoint table is in

references/endpoints.md.

1. `scripts/dergipark_oai.py` — OAI harvest (primary path)

# The slug (== OAI setSpec) is in the journal URL: dergipark.org.tr/en/pub/{slug}
# list-journals only sees the first 100 sets — ListSets stopped paging (2026-09-23)
uv run python scripts/dergipark_oai.py list-journals --tsv | rg -i "mülkiye"

# Harvest a whole journal (follows resumptionToken paging automatically)
uv run python scripts/dergipark_oai.py harvest mulkiye --prefix oai_dc --out mulkiye.json

# One article's structured oai_dc record
uv run python scripts/dergipark_oai.py get 10 --prefix oai_dc

Verbs: Identify / ListSets / ListRecords / GetRecord. Prefixes:

oai_dc (parsed into clean fields) and oai_mods / oai_marc / oai_etdms

(returned as raw record XML for callers that want the richer schema).

2. `scripts/article_meta.py` — one article → BibTeX / RIS

uv run python scripts/article_meta.py /en/pub/mulkiye/article/10 --format bibtex
uv run python scripts/article_meta.py /en/pub/mulkiye/article/10 --format ris
uv run python scripts/article_meta.py /en/pub/mulkiye/article/10 --format json

Parses the page's citation_* + DC.* meta tags and formats BibTeX/RIS

locally — it does not call any on-site export backend (that route is

unverified). The JSON output includes a resolved pdf_url.

3. `scripts/journal_info.py` — aim-and-scope + self-declared indexes

uv run python scripts/journal_info.py mulkiye --lang en

Returns the aim-and-scope text and the /indexes page, the latter stamped with

a DISCLAIMER and cross-check pointers to TR Dizin and DOAJ.

Three Rules That Prevent Wrong Answers

  1. Publication date ≠ OAI datestamp. The OAI <datestamp> is the platform

re-index time, not the publication date. To slice by publication year,

harvest then filter on dc:date locally — do not rely on from/until.

  1. PDF id ≠ article id. Take the PDF link from the page's citation_pdf_url

meta tag (e.g. /en/download/article-file/9 for article /10); never build it

from the article id.

  1. Hosting ≠ indexing. Being on DergiPark says nothing about quality or TR

Dizin coverage. The /indexes page is self-declared and unverified by

DergiPark. For an authoritative TR Dizin status verdict, route to

alterlab-trdizin. See references/indexing.md.

Graceful Degradation

Network failures surface as a network_unavailable / oai_error JSON object on

stderr (exit 1) — the scripts never fabricate a record or a verdict. If the

endpoint is unreachable, say so and stop; do not invent metadata from memory.

References

scheme (with what is explicitly UNVERIFIED), observed live 2026-06-06.

year filtering, PDF download, and the gated-search workaround via Playwright.

cross-check real indexing against TR Dizin and DOAJ.

Part of the AlterLab Academic Skills suite.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.