Giter Site home page Giter Site logo

Describe conversion to RDFa about microdata HOT 4 CLOSED

w3c avatar w3c commented on July 20, 2024
Describe conversion to RDFa

from microdata.

Comments (4)

iherman avatar iherman commented on July 20, 2024 1

@chaals, FWIW, my code does exactly what you describe.

from microdata.

iherman avatar iherman commented on July 20, 2024

+1

from microdata.

chaals avatar chaals commented on July 20, 2024

Hmmm. Dealing with itemref seems to throw up an issue. As I understand it the example in the spec (gotta fix #71)

<div id="x">
 <p itemprop="a">1</p>
</div>
<div itemscope itemref="x">
 <p itemprop="b">test</p>
 <p itemprop="a">2</p>
</div>

Should produce the same output as

<div vocab="http://example.com/">
<div resource="#x" typeof="rdfa:Pattern" id="x">
 <p property="a">1</p>
</div></div>
<div vocab="http://example.com/" typeof="thing">
 <link rel="rdfa:copy" href="#x">
 <p property="b">test</p>
 <p property="a">2</p>
</div>

plus an extra node with the rdfa:Pattern.

It does for the structured data linter, and Yandex' SDV, but not in Google's validator.

@danbri, @iherman?

from microdata.

danbri avatar danbri commented on July 20, 2024

My understanding is that the Google parsers should currently handle Microdata's itemref, but not RDFa 1.1's rdfa:Pattern property-copying. Is that consistent with what you're seeing?

from microdata.

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.