NIP-73: Add Wikidata identifiers #2150
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds Wikidata support to NIP-73 External Content IDs.
It introduces the
wikidatakey for thektag.For the
itag value, standardized RDF prefixes officially used by Wikidata should be used:wd:Q...for entities (e.g.,wd:Q42)wdt:P...for properties (e.g.,wdt:P31)Application Example
Wikidata assigns IDs to virtually everything in the world. Combined with NIP-25, this allows reactions to "anything" to be recorded as Nostr events.
As a proof of concept, I created Thingstr: https://thingstr.pages.dev/
Note: Events generated by Thingstr currently use tags in ways not explicitly defined by NIPs yet. For compatibility reasons, they are currently sent only to my dedicated relay.
Concept Description
The original idea for Thingstr is described in my article from last year:
https://yakihonne.com/article/naddr1qvzqqqr4gupzqpuqfduxc63mgq9hkgxehly52q6l8tfp8kne0vx9p928vlpht32rqq255efedpr9snp3v4p564tgd4ury4n8fc6yx8asnpt
Additional Notes
The current Thingstr implementation also uses
l/Ltags in ways not currently defined in NIPs. I plan to propose a separate specification for those (potentially in NIP-32) in the future. This PR focuses solely on the Wikidata ID definition for NIP-73.