Closed webcoder-eu closed 5 years ago
Without looking at your page source, I suspect that you are setting a Lang attribute (or @language
in JSON-LD) and the property value is being interpreted as a text string, rather than a URI. If using JSON-LD, either don’t set @language
, at least for that property, or better yet, use the expanded value form {“@id”: “https://...”}
. If using Microdata or RDFa, use an href attribute.
But, the linter/reasoner, could probably figure out to ignore the language in this case.
Correct, when remove lang="en"
' from <html lang="en">
it's not complaining anymore. Am doing reseach on whether removing is a good thing for google.
Many thanks
hmm... now html is not validating nicely as before so will rather ignore linter/reasoner and live with its messages or try to get around it somehow - am new to this so need to figure what you said above out and apply.
This looks like the line that's causing the problem:
<meta property="og:image:secure_url" content="https://webcoder.eu/assets/img/logosocial.jpg">
The problem is that meta interprets context as text, you could consider using a link element:
<link property="og:image:secure_url" href="https://webcoder.eu/assets/img/logosocial.jpg">
That interprets the value as a URL and should avoid the problem (and is really the right thing to do).
Of course, given that it's an image, you could also use an img element.
Changed it ti <link ... href=...>
as above but unfortunately it's still complaining about other bits. At least HTML is validatinng now. Thank you.
Linter Messages
class ogc:url: No class definition found
property og:url: Object "https://webcoder.eu/"@en not compatible with range (ogc:url)
property og:image: Object "https://webcoder.eu/assets/img/logosocial.jpg"@en not compatible with range (ogc:url)
I don't quite understand why a valid HTML lang is affecting it
Only one message left after changing all tags containing urls to <link... href=
Linter Messages class ogc:url: No class definition found
but now my og appears to be broken
I can’t really debug your markup for you, but the messages seem reasonable. Of course, it’s only advisory, and you may ignore it.
The linter uses semantic reasoning to make these determinations, based on the definitions of the vocabulary terms you use.
In my website also similar issue facing Home page error RDF::ReaderError: Statement #<RDF::Statement:0x7a0f8(nil nil nil .)> is incomplete on linter
my web url : https://www.tacsllc.com/ please help
The correct solution is add the "prefix" property to html tag.
<html lang="en" prefix="og: https://ogp.me/ns#">
Hi,
Why am I getting these "property... @en not compatible with range (ogc:url)" messages when testing my domain?
Domain: https://webcoder.eu
http://linter.structured-data.org/?url=https:%2F%2Fwebcoder.eu
image:secure_url, og:url and og:image are allowed hence am puzzled.
Thanks, David