Code Monkey home page Code Monkey logo

Comments (6)

ajs6f avatar ajs6f commented on September 25, 2024

"Idiomatic" in the sense of a single term without internal structure?

from json-ld-bp.

BigBlueHat avatar BigBlueHat commented on September 25, 2024

Relates to #13

from json-ld-bp.

BigBlueHat avatar BigBlueHat commented on September 25, 2024

@ajs6f think this is very similar to #18 that you posted.

from json-ld-bp.

dlongley avatar dlongley commented on September 25, 2024

If you have consumers from the JSON world (vs. only the RDF world), it is much better to use idiomatic JSON and avoid CURIEs, etc.

from json-ld-bp.

azaroth42 avatar azaroth42 commented on September 25, 2024

Per the discussion on the call today, I think this clearly applies to keys - use {'title': "Title!"} if possible and not {"dc:title": "Title!"}

However it is less clear, and worth discussing, the extent to which it applies to values.
For example:

{
  "type": "HumanMadeObject",
  "classified_as": "http://vocab.getty.edu/aat/painting"
}

Should the value of classified_as be a URI (because you can dereference it to get more information), a CURIE (because aat:painting is shorter and easier to read without having to enumerate all the possible classifications), or an @vocab value in the context, because painting is even shorter and easier).

In https://linked.art/model/ we use the full URI, in order to facilitate the dereferencing. In IIIF (eg https://iiif.io/api/presentation/3.0/#type, https://iiif.io/api/presentation/3.0/#behavior, etc) we use @vocab.

from json-ld-bp.

ajs6f avatar ajs6f commented on September 25, 2024

I'm not sure that we really can or should say very much about values. It's easy for me to think of cases where a CURIE would be better, because the URI is never going to be de-referenced (perhaps the values are really being used as enumerable choices in some UI or processing system) but the data will be inspected by humans. On the other hand, it's easy to think of cases where using a CURIE would be useless or downright harmful because the data is primarily for machine processing. I don't think we (the WG) can have enough context to make a useful recommendation here.

Keys, of course, are a different story and I completely agree that CURIES there are un-idiomatic and just scream that the data is secretly XML or RDF that has been cheaply or thoughtlessly "JSON-ed". I would be happy to send a PR for this, but it won't be for at least a few days (we're heading into winter holidays here and scheduling is getting hectic!).

from json-ld-bp.

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.