- From: Jarno van Driel <jarnovandriel@gmail.com>
- Date: Wed, 11 Mar 2015 11:12:40 +0100
- To: ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>
- Cc: W3C Web Schemas Task Force <public-vocabs@w3.org>
- Message-ID: <CADK2AU0aEUuOnL061yriixTBCiwCb2gtaWRPig6AgR5zUuGang@mail.gmail.com>
> > "Can I add *@id* to object with "@type": "OrganizationRole", and use same @id > for both of those objects?" In theory, yes you can. I've added an @id to both the Person and CollegeOrUniversity and Google's Structured Data Testing Tool as well as the Structured Data Linter and both accept the @id's successfully, meaning the 2 pieces or JSON-LD are merged into a single graph. Yandex's Structured Data Validator doesn't do that well though: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "CollegeOrUniversity", "@id": "http://example.com/#SomeU", "name": "University of Cambridge", "sameAs": "http://en.wikipedia.org/wiki/University_of_Cambridge", "alumni": { "@type": "OrganizationRole", "alumni": { "@type": "Person", "@id": "http://example.com/#SomePerson", "name": "Delia Derbyshire", "sameAs": "http://en.wikipedia.org/wiki/Delia_Derbyshire" }, "startDate": "1959" } } </script> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Person", "@id": "http://example.com/#SomePerson", "name": "Delia Derbyshire", "sameAs": "http://en.wikipedia.org/wiki/Delia_Derbyshire", "alumniOf": { "@type": "OrganizationRole", "alumniOf": { "@type": "CollegeOrUniversity", "@id": "http://example.com/#SomeU", "name": "University of Cambridge", "sameAs": "http://en.wikipedia.org/wiki/University_of_Cambridge" }, "startDate": "1959" } } </script> Though when doing something similar with a piece of microdata markup combined with JSON-LD then things are less successful. It seems only the Structured Data Linter is able to digest it: <div itemid="http://example.com/#ProcedureProduct" itemscope itemtype=" http://schema.org/MedicalProcedure"> <span itemprop="name">Butt Lift</span> </div> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Product", "@id": "http://example.com/#ProcedureProduct", "url": " http://www.cosmeticsurg.net/blog/2013/10/20/how-much-fat-is-injected-with-the-brazilian-butt-lift/ " } </script> Which makes me wonder, why don't digest Google's and Yandex's tool digest multiple syntaxes? Doesn't make much sense to me. 2015-03-10 13:49 GMT+01:00 ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>: > Hello, > > Looking at examples in http://schema.org/Role > > { > "@context": "http://schema.org", > "@type": "CollegeOrUniversity", > "name": "University of Cambridge", > "sameAs": "http://en.wikipedia.org/wiki/University_of_Cambridge", > "alumni": { > "@type": "OrganizationRole", > "alumni": { > "@type": "Person", > "name": "Delia Derbyshire", > "sameAs": "http://en.wikipedia.org/wiki/Delia_Derbyshire" > }, > "startDate": "1959" > } > } > > { > "@context": "http://schema.org", > "@type": "Person", > "name": "Delia Derbyshire", > "sameAs": "http://en.wikipedia.org/wiki/Delia_Derbyshire", > "alumniOf": { > "@type": "OrganizationRole", > "alumniOf": { > "@type": "CollegeOrUniversity", > "name": "University of Cambridge", > "sameAs": "http://en.wikipedia.org/wiki/University_of_Cambridge" > }, > "startDate": "1959" > } > } > > Can I add *@id* to object with "@type": "OrganizationRole", and use same > @id for both of those objects? > > I also think about using it with Web Credentials > http://opencreds.org/ (see embeded videos!!!) > > My examples of MembershipCredential and AttendanceCredential in this email > * > https://lists.w3.org/Archives/Public/public-credentials/2015Mar/0007.html > > Cheers! > > >
Received on Wednesday, 11 March 2015 10:13:09 UTC