使用JSON-LD和Schema.org vocab的简历(工作历史和组织)格式

时间:2018-07-12 23:21:48

标签: schema.org json-ld

假设您的个人资料页面包含Person,即Role。并且您想列出该人的工作和教育经历,类似于简历。

Schema.org的Occupation example 4,说明了如何使用hasOccupation{ "@context": "http://schema.org", "@type": "Person", "name": "Jane Smith", "sameAs": "http://en.wikipedia.org/wiki/Jane_Smith", "worksFor": { "@type": "Organization", "name": "McKinsey & Company", "url" : "http://www.mckinsey.com" }, "hasOccupation": [ { "@type": "Role", "hasOccupation": { "@type": "Occupation", "name": "Management Consultant" }, "startDate": "2016-04-21" }, { "@type": "Role", "hasOccupation": { "@type": "Occupation", "name": "Chief Strategic Officer" }, "startDate": "2013-11-14", "endDate": "2016-03-22" }, { "@type": "Role", "hasOccupation": { "@type": "Occupation", "name": "Vice President of Sales" }, "startDate": "2009-09-20", "endDate": "2013-10-14" } ] } 来关联一系列工作历史记录,例如:

Organization

仅包含职业名称。不是与该Occupation关联的Organization

是否可以使用Schema.org vocab通过这种方式更详细地描述简历? (类似于Microformats hresume


旁注:教育历史记录并不那么困难,因为您可以包含一个 "alumniOf": [ { "@type": "OrganizationRole", "alumniOf": { "@type": "CollegeOrUniversity", "name": "City University of New York", "sameAs": "https://en.wikipedia.org/wiki/City_University_of_New_York" }, "startDate": "1990", "endDate": "1992", "roleName": "MBA" }, { "@type": "OrganizationRole", "alumniOf": { "@type": "CollegeOrUniversity", "name": "University of California, Berkeley", "sameAs": "https://en.wikipedia.org/wiki/University_of_California,_Berkeley" }, "startDate": "1983", "endDate": "1987", "roleName": "BSc Psychology" } ] 对象

template <typename Iterator>
struct employee_parser : qi::grammar<Iterator, employee(), ascii::space_type>
{
    employee_parser() : employee_parser::base_type(start)
    {
        using qi::int_;
        using qi::lit;
        using qi::double_;
        using qi::lexeme;
        using ascii::char_;

        quoted_string %= lexeme['"' >> +(char_ - '"') >> '"'];

        start %=
            lit("employee")
            >> '{'
            >>  int_ >> ','
            >>  quoted_string >> ','
            >>  quoted_string >> ','
            >>  double_
            >>  '}'
            ;
    }

    qi::rule<Iterator, std::string(), ascii::space_type> quoted_string;
    qi::rule<Iterator, employee(), ascii::space_type> start;
};

2 个答案:

答案 0 :(得分:1)

好吧,我知道这已经有一段时间没有得到回应了,但是我一直在研究这个问题很多,因为我试图对简历数据进行JSON化:)

这是我处理工作经历的方法。我设定了我的个人及其所有属性,然后我有一个职业(我目前的职业),然后又有以前的职业(过去的自我,如果可以的话)。说了这么多,我可以告诉你,我将工作经历放在了我的alumniOf属性中。

根据schema.org,alumniOf属性用于说明已结束的人与组织的关系;我不再在那些地方工作了。

然后,当我“实例化”组织对象时,他们可以拥有一名员工。该员工是“我过去的自己”,当时在xyz corp。工作,当时有职业。该“过去的人”与我现在的人是同一个人,然后我使用https://schema.org/Book中类似示例5的格式进行链接。

在下面查看我的代码以得到澄清。

我希望这会有所帮助-如果没有其他人可以跟进并调整我的回答,以便我们可以提供一些对人们谷歌搜索有用的东西。

{
    "@context": "http://schema.org",
    "@type": "Person",
    "@id": "#john",
    "name": "John Smith",
    "address": {
        "@type": "PostalAddress",
        "addressCountry": "US",
        "addressLocality": "Austin",
        "addressRegion": "Florida",
        "postalCode": "12345",
        "streetAddress": "123 breeze way"
    },
    "email": "john@example.org",
    "telephone": "1234567890",
    "image": "",
    "jobTitle": "Software Developer",
    "description": "Blip about me...",
    "contactPoint": [
        {
            "@type": "ContactPoint",
            "contactType": "LinkedIn",
            "identifier": "johnsmith",
            "image": "imageurl",
            "url": "profileurl"
        },
        {
            "@type": "ContactPoint",
            "contactType": "GitHub",
            "identifier": "johnsmith",
            "image": "imageurl",
            "url": "profileurl"
        }
    ],
    "url": "example.org",
    "hasCredential": [
        {
            "@type": "EducationalOccupationalCredential",
            "aggregateRating": {
                "@type": "aggregateRating",
                "ratingValue": "3.51",
                "name": "GPA"
            },
            "credentialCategory": "degree",
            "educationalLevel": "Bachelors of Science",
            "dateCreated": "2015-05",
            "about": {
                "@type": "EducationalOccupationalProgram",
                "name": "Computer Engineering"
            },
            "recognizedBy": {
                "@type": "CollegeOrUniversity",
                "name": "Some Awesome University",
                "sameAs": "urlgoeshere"
            }
        }
    ],
    "hasOccupation": {
        "@type": "EmployeeRole",
        "roleName": "role title goes here",
        "startDate": "2015-06"
    },
    "worksFor": {
        "@type": "Organization",
        "name": "big company",
        "sameAs": "urlgoeshere"
    },
    "award": [
        "Organizational Achievement Awards Q3'17, Q2'19, Q3'19",
        "Divisional Recognition Award Q1'19",
        "Dean's List: Spring '12,'14; Fall '13",
        "President's List: Spring '13; Fall '14",
        "Eagle Scout Leadership Service Award 2011"
        ],
    "alumniOf": [
        {
            "@type": "Organization",
            "name": "old workplace",
            "sameAs": "urlgoeshere",
            "employee": {
                "@type": "Person",
                "hasOccupation": {
                    "@type": "EmployeeRole",
                    "roleName": "Computer Consultant",
                    "startDate": "2012-08",
                    "endDate": "2015-05"
                },
                "sameAs": "#john"
            }
        },
        {
            "@type": "Organization",
            "name": "another company",
            "sameAs": "urlgoeshere",
            "employee": {
                "@type": "Person",
                "hasOccupation": {
                    "@type": "EmployeeRole",
                    "roleName": "internship",
                    "startDate": "2014-05",
                    "endDate": "2014-08"
                },
                "sameAs": "#john"
            }
        }
    ]
}

答案 1 :(得分:0)

以下用于完全相同的目标。在这里您可以找到使用 json-ld 标准创建简历的标准。您可以使用 lab-web 创建示例简历,获取输出,然后比较 jsonld 字段。

这里是github的链接 https://github.com/Jsonldresume/

Lab-web 用于创建简历,您可以将其导出为 jsonld 格式。您可以运行应用演示来查看它的运行情况。

技能是简历的架构和上下文定义

简历库用于与他人分享您的简历。