Giter Site home page Giter Site logo

Comments (3)

melvincarvalho avatar melvincarvalho commented on July 20, 2024 1

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.

melvincarvalho avatar melvincarvalho commented on July 20, 2024

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.

ottman avatar ottman commented on July 20, 2024

@markharding any thoughts?

from nostr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.