From d1ec51a4a16a248c2816357a6bbf5f36f6ee1af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Lo=CC=81pez=20Guevara?= Date: Wed, 26 Jul 2023 10:14:58 -0300 Subject: [PATCH] rewording to tags presence --- 100.md | 15 ++++++++++----- README.md | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/100.md b/100.md index 306fe6f..6d2f3ef 100644 --- a/100.md +++ b/100.md @@ -1,19 +1,25 @@ NIP-100 ======= -Querying Events by Tags Structure +Querying Events by Tags Presence --------------------------------- `draft` `optional` `author:fernandolguevara` `requires:nip-12` -This NIP allows clients to query events from relays where a specific tag is present in the event's structure. +This NIP allows clients to query events from relays based on the presence or non-presence of specific tags. +### Presense: The filter condition matches if there is at least one tag name in common with the filter and event. +### Non-Presence: +The filter condition matches if there is at least one tag in the filter that are not present in the event. + Example Subscription Filter --------------------------- -Below is an example filter that matches events with a `g` tag in their structure: +Below are some example filters that demonstrate tag presence and non-presence: + +1. Filter to match events with a `g` tag: ```json { @@ -21,8 +27,7 @@ Below is an example filter that matches events with a `g` tag in their structure } ``` -Other filter example that matches events with an empty/non present `e` tag in their structure: - +2. Filter to match events without the presence of the `e` tag: ```json { diff --git a/README.md b/README.md index e41627b..029e503 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos - [NIP-94: File Metadata](94.md) - [NIP-98: HTTP Auth](98.md) - [NIP-99: Classified Listings](99.md) -- [NIP-100: Querying Events by Tags Structure](100.md) +- [NIP-100: Querying Events by Tags Presence](100.md) ## Event Kinds