Comments (6)
"Idiomatic" in the sense of a single term without internal structure?
from json-ld-bp.
Relates to #13
from json-ld-bp.
@ajs6f think this is very similar to #18 that you posted.
from json-ld-bp.
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.
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.
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 using absolute URIs when possible
- Unexpected typed value experience HOT 8
- Proposed renaming and sectioning HOT 5
- Semantic lifting tutorial
- Add example on order impact on @protected HOT 8
- Best practices for maintaining list order w/o collections. HOT 10
- References to other documents HOT 4
- Name in the example HOT 2
- Example 5? HOT 2
- Example for cache control (ยง6.1)
- Describe Lists and Compaction HOT 2
- Expand section on "Serializing Large Datasets"
- Add note on streaming HOT 10
- Recommendation for included objects? HOT 3
- Extra framing and validation information for extension HOT 2
- Update spec status and/or publish? HOT 6
- examples HOT 3
- outdated URL in reference
- test GH action
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 json-ld-bp.