Code Monkey home page Code Monkey logo

Comments (12)

marcoscazaux avatar marcoscazaux commented on June 24, 2024 8

The correct solution is add the "prefix" property to html tag.
<html lang="en" prefix="og: https://ogp.me/ns#">

from linter.

webcoder-eu avatar webcoder-eu commented on June 24, 2024 1

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.

Screenshot 2019-11-22 at 21 30 58

from linter.

gkellogg avatar gkellogg commented on June 24, 2024

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.

from linter.

gkellogg avatar gkellogg commented on June 24, 2024

But, the linter/reasoner, could probably figure out to ignore the language in this case.

from linter.

webcoder-eu avatar webcoder-eu commented on June 24, 2024

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

from linter.

gkellogg avatar gkellogg commented on June 24, 2024

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.

from linter.

webcoder-eu avatar webcoder-eu commented on June 24, 2024

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)

Screenshot_2019-11-22 Structured Data Linter(1)

from linter.

webcoder-eu avatar webcoder-eu commented on June 24, 2024

I don't quite understand why a valid HTML lang is affecting it

from linter.

webcoder-eu avatar webcoder-eu commented on June 24, 2024

Only one message left after changing all tags containing urls to <link... href=

Linter Messages
class ogc:url: No class definition found

Screenshot_2019-11-22 Structured Data Linter(2)

Screenshot 2019-11-22 at 22 38 57

from linter.

webcoder-eu avatar webcoder-eu commented on June 24, 2024

but now my og appears to be broken

Screenshot 2019-11-22 at 22 41 11

from linter.

gkellogg avatar gkellogg commented on June 24, 2024

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.

from linter.

tacsup avatar tacsup commented on June 24, 2024

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

from linter.

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.