Code Monkey home page Code Monkey logo

Comments (2)

gkellogg avatar gkellogg commented on September 25, 2024

The Linter uses a reasoner with special rules for schema.org. I think one of these rules is too restrictive.

itemListElement has the range of ListItem, Text, and Thing. Periodical is (via inference) a kind of Thing, which should be allowed. However, there's a check that specifically says if any range is Text, and the value as an object (has @id), then it can't also have a type. This is too restrictive, and it should first see if the range includes a super-class of any type actually used.

There is no formalized description of Schema.org semantics, so they've sort have been ad-hoc. I'll take a look and see how to accommodate this without making the reasoner overly complex.

(FYI, you can find the rules for range checks here).

from linter.

JHTrans avatar JHTrans commented on September 25, 2024

Thank you very much for the quick response. Your comments have given me a better sense of what ranges imply, something I hadn't really thought about before in my own ad-hoc approach as a user.

I agree that this particular rule seems a bit too restrictive, since it effectively excludes lists of different types of objects that very often do "ultimately" refer to texts in some sense of the term (although DOIs are also used for video content).

Thanks again!

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.