Giter Site home page Giter Site logo

Comments (12)

chaals avatar chaals commented on July 2, 2024 4

I am inclined to suggest that processors may convert numerical values to a matching datatype, without obliging them to do so...

from microdata.

gkellogg avatar gkellogg commented on July 2, 2024 1

So, the text in the JSON serialization section is unnecessary, then.

from microdata.

danbri avatar danbri commented on July 2, 2024

Haven't thought about this much, but would declaring "meter" as allowing xsd:integer or xsd:double work?

from microdata.

danbri avatar danbri commented on July 2, 2024

SGTM.

from microdata.

danbri avatar danbri commented on July 2, 2024

p.s. can you talk me through how we handle surface details like "." vs "," e.g.a value of "1,00" vs "1.00"?

from microdata.

gkellogg avatar gkellogg commented on July 2, 2024

I believe HTML 5 addresses valid number syntax: https://www.w3.org/TR/html52/infrastructure.html#numbers, and how they're interpreted.

from microdata.

chaals avatar chaals commented on July 2, 2024

Since we define the content as strings, we don't have to do any handling. Processors can use whatever information they like to decidce that something is a number - e.g. a page in spanish that has <meter itemprop="rating" value="3,5"><img src="estr.gif"><img src="estr.gif"><img src="estr.gif"><img src="mestr.gif"><img src="estrv.gif"></meter> provides a value according to the spec of "3,5" as a string. But it is possible for a processor to decide that this is actually the number three-and-a-half. Although it is not required - and incidentally is not valid HTML.

from microdata.

danbri avatar danbri commented on July 2, 2024

incidentally is not valid HTML.

... I had missed that, and am now reassured.

from microdata.

chaals avatar chaals commented on July 2, 2024

We explain in the introduction that values are strings or URLs, and again in the algorithm for determining values. I think we can close this without a change to the text...

from microdata.

chaals avatar chaals commented on July 2, 2024

@gkellogg yep. I'll clean it up.

from microdata.

chaals avatar chaals commented on July 2, 2024

I trimmed some of the language about conversion in #76.

I will add some clarification in various places - while conversions may interpret content to add datatypes, microdata itself treats even dates taken from datetime as a string...

from microdata.

danbri avatar danbri commented on July 2, 2024

Closing as agreed/fixed above.

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.