Comments (12)
I am inclined to suggest that processors may convert numerical values to a matching datatype, without obliging them to do so...
from microdata.
So, the text in the JSON serialization section is unnecessary, then.
from microdata.
Haven't thought about this much, but would declaring "meter" as allowing xsd:integer or xsd:double work?
from microdata.
SGTM.
from microdata.
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.
I believe HTML 5 addresses valid number syntax: https://www.w3.org/TR/html52/infrastructure.html#numbers, and how they're interpreted.
from microdata.
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.
incidentally is not valid HTML.
... I had missed that, and am now reassured.
from microdata.
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.
@gkellogg yep. I'll clean it up.
from microdata.
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.
Closing as agreed/fixed above.
from microdata.
Related Issues (20)
- Global Identifier
- Values section title odd
- Textual property value does not use language of the element HOT 4
- Incomplete sentence: "User agents are"
- Syntax highlighting not working correctly HOT 12
- Capitalization of "microdata"
- give examples and algorithms a URL HOT 1
- Provide an example of itemid
- incomplete sentence "User agents are" HOT 2
- RDFa and JSON-LD are not equivalent HOT 12
- RDFa should generate to RDFa Lite HOT 4
- Use the same example for JSON-LD and RDFa HOT 6
- Reference to [microdata-rdf] should be changed HOT 13
- Reusing components in different contexts HOT 4
- itemref as a url, not just an ID within the same document
- "Valid" definition doesn't resolve
- "Our company" example is confusing
- Hedral the Cat HOT 1
- Hedral Issue 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microdata.