Code Monkey home page Code Monkey logo

Comments (8)

iherman avatar iherman commented on July 19, 2024

I am fine you trying:-)

from scribejs.

iherman avatar iherman commented on July 19, 2024

@BigBlueHat
I looked at this, but it is not obvious what schema.org snippet to add. Here is what I've come up with, which strikes the balance between what may be meaningful in schema.org land and may be easily generated based on the information that is available for the script without the need to add additional configuration entries:

{
    "@context": "http://schema.org/",
    "@type": "CreativeWork",
    "name": "JSON-LD Working Group Telco โ€” Minutes",
    "about": "JSON-LD Working Group Telco",
    "dateCreated": "2019-03-29",
    "genre": "Meeting Minutes",
    "publisher": {
        "@type": "Organization",
        "name": "World Wide Web Consortium",
        "url": "https://www.w3.org"
    },
    "recordedAt": {
        "type": "Event",
        "name": "JSON-LD Working Group Telco",
        "startDate": "2019-03-29",
        "endDate": "2019-03-29",
        "attendee": [{
            "type": "Person",
            "name": "Rob Sanderson",
            "description": "chair, scribe"
        }, {
            "type": "Person",
            "name": "Gregg Kellogg"
        }, {
            "type": "Person",
            "name": "Adam Soroka"
        }, {
            "type": "Person",
            "name": "Pierre-Antoine Champin",
            "description": "scribe"
        }]
    }
}

Do you have anything better?

I know there this Role thing in schema (you have used it for the WG) but, I must admit, I do not really grasp how to use that:-(

from scribejs.

BigBlueHat avatar BigBlueHat commented on July 19, 2024

Looks like a great start overall, @iherman!

You can think of the Role stuff a bit like "stand-ins" for the Real Thing that fills the role--and then the Real Thing (human, organization, etc) "fills" that role by being a member of it.

So, our meetings potentially include roles with names like scribe, chair, and guest, so the above becomes:

        "attendee": [{
            "type": "OrganizationRole",
            "roleName": "chair",
            "attendee": {
              "type": "Person",
              "name": "Rob Sanderson"
            }
        }, {
            "type": "Role",
            "roleName": "scribe",
            "attendee": [{
              "type": "Person",
                "name": "Rob Sanderson"
            }, {
              "type": "Person",
              "name": "Pierre-Antoine Champin"
            }]
        }, {
            "type": "Person",
            "name": "Gregg Kellogg"
        }, {
            "type": "Person",
            "name": "Adam Soroka"
        }]

Essentially, chair and scribe are always present in the attendee list, and they get filled later (and can even keep the startDate/endDate timestamps if we wanted). Everyone else would simply be a direct attendee of the event.

The modeling advantage is that we could collect data around who scribed when without describing Rob personally has a "chair, scribe." ๐Ÿ˜‰

from scribejs.

iherman avatar iherman commented on July 19, 2024

@BigBlueHat that of course makes sense, but... the specification of attendee claims that the value must be a Person or an Organization. Is it understood that a Role can take the place of any other type? Or should we consider that type of requirement as suggestion only?

from scribejs.

BigBlueHat avatar BigBlueHat commented on July 19, 2024

Yeah...it's not spelled out in their documentation, but it seems that "Role" can replace any Person or Organization (at least). For example, here's the description of https://schema.org/hasOccupation:

The Person's occupation. For past professions, use Role for expressing dates.

The Structured Data Testing Tool (fwiw) doesn't seem to care if there's a Role in place of a person. Amusingly, though, it seems to think Event's MUST have locations...which isn't expressed anywhere either.

Perhaps a means to express these sorts of requirements should be explored by a certain JSON-LD WG? ๐Ÿ˜

from scribejs.

iherman avatar iherman commented on July 19, 2024

@BigBlueHat sigh... yes, I found out the issue around Events, actually, which made my original proposal questionable. As for the role of Role (sic!): well, let us say, no comments...

I will go for your version. At some point, because my day today is full...

from scribejs.

iherman avatar iherman commented on July 19, 2024

@BigBlueHat I have made a version with the json-ld preamble; it was fairly easy after all. It is in the schema-data-to-minutes branch; the files you may want to look at are:

The fact that the Event does not have a location is just a pain, but I am not sure we can do anything about it. In theory, I could add something like:

"location" : "Teleconference bridge"

but, strangely enough, this is not accepted by the playground either, asking for a full-blown location object, although the definition of location allows for Text...

Maybe we can just ignore this.

Any comments are welcome!

from scribejs.

iherman avatar iherman commented on July 19, 2024

Incorporated into the latest release.

from scribejs.

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.