Add a Wikidata export connector for a pinned CC0 computing field.
All checks were successful
synthetic / suite (push) Successful in 1m2s

The connector maps native Q-ids to aliases under urn:ce ids, publishes only through the existing rights and reference gate, and leaves the real-user pilot open.

Assistant: grok
Assistant-Session: 01a15378-f601-7fe2-a143-8e1500a1d59c
This commit is contained in:
tegwick 2026-10-19 11:38:04 +02:00
parent 8bcb3414d7
commit 55f6180b8e
15 changed files with 1819 additions and 10 deletions

View file

@ -258,7 +258,7 @@ def project_records(
if target not in accepted:
report["dangling"].append({"from": qualified, "to": target, "predicate": predicate})
claim_id = f"claim:{kind}:{key}:tldr"
entities.append({
entity = {
"id": entity_id,
"kindId": kind,
"title": record["title"],
@ -268,7 +268,11 @@ def project_records(
"sourceRefs": [source["id"]],
"claimRefs": [claim_id],
"asOf": observed_at,
})
}
aliases = [str(alias) for alias in (record.get("aliases") or []) if str(alias).strip()]
if aliases:
entity["aliases"] = aliases
entities.append(entity)
claims.append({
"id": claim_id,
"subjectId": entity_id,