Comments (3)
I think at one time these things were called rich snippets. So one possibility would be to have a kind and a NIP for all types of rich snippets. There's a whole world of possibilities. Then clients supporting rich snippets would try and render them. This might be a challenge in itself. Which types SHOULD a client support?
Open question whether we want to focus on certain types within schema.org or try and import the whole thing. Trade offs of complexity and utility for both approaches.
from nostr.
Hi @ottman, thanks for raising this.
Do you have an idea of the requirement here.
In schema.org https://schema.org/SocialMediaPosting is a type which goes in a some markup, typically a JSON(-LD) snippet. The example from the page is:
{
"@context":"https://schema.org",
"@type":"SocialMediaPosting",
"@id":"https://www.pinterest.com/pin/201887995769400347/",
"datePublished":"2014-03-04",
"author":{
"@type":"Person",
"name":"Ryan Sammy",
"url":"https://www.pinterest.com/ryansammy/"
},
"headline":"Leaked new BMW 2 series (m235i)",
"sharedContent":{
"@type":"WebPage",
"headline":"Leaked new BMW 2 series (m235i) ahead of oct 25 reveal",
"url":"http://www.reddit.com/r/BMW/comments/1oyh6j/leaked_new_bmw_2_series_m235i_ahead_of_oct_25/",
"author":{
"@type":"Person",
"name":"threal135i"
}
}
}
As you can see the important bit here is:
"@type":"SocialMediaPosting",
But there's the context and envelope that has other terms such as headline
author etc. schema.org is a bit strange in places, but has a large network effect, used mainly for SEO.
The content
field in nostr is open ended. So there's not a content-type
or mime-type
associated with it, by default. It could be normal text, it could be JSON (some nips do this), and it can have a numerical kind
So could the use case be expanded upon a bit. How would a SocialMediaPosting be consumed, would it need a new kind or NIP. I think if it's sent as a normal text note, it's going to confuse existing clients a bit, which will not be used to the full markup.
Is it just this type or others. I've recently been looking at https://schema.org/ImageObject. Schema.org has a few dozen things like this.
from nostr.
@markharding any thoughts?
from nostr.
Related Issues (20)
- Typos in URLs on nostr.com/contribute HOT 1
- Any IRC channels? HOT 1
- "Get started" guide is broken in many places HOT 2
- Missing License Information HOT 1
- Nostr Improvement Proposal: Relay-Hosted Personalized Dictionaries HOT 1
- Given the protection from bans this protocol enforces, can you reassure me that this is a suitable place for my hate speech HOT 4
- nostr is more than a twitter replacement?
- An idea to use nostr to publish torrents and encourage seeding
- Using the new passkey FIDO standard with nostr
- Associating images and notes in a relay to use nostr as diary HOT 1
- (resolved) Trying to implement NIP01, but ["NOTICE","could not parse command"] HOT 4
- Web3 TLD .nostr domain names are now available.
- adding wallet
- What is the verb for nostr when we reference a note ? HOT 3
- Add AGPL-3.0 license HOT 3
- Nostr
- Support for anonymizing networks HOT 5
- Standardizing p2p software development collaborative platform: HOT 4
- Invalid Event ID HOT 1
- Profile recovery idea if nsec is compromised HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nostr.