Comments (3)
Yes, we did say that framing was the right way to do this, but the framing algorithm doesn't presently allow for this.
Defaults are added in 4.7.4 of the Framing Algorithm which iterates over non-keywords, and thus ignores a default for @type
. It is probably sufficient to update the algorithm to also include @type
.
from json-ld-framing.
This issue was discussed in a meeting.
RESOLVED: Accept framing #74 as an oversight to be fixed for <code>@type</code> on node objects
View the transcript
@default
for @type
Rob Sanderson: #74
Rob Sanderson: The only thing you canβt consider
@default
for is @type.
Gregg Kellogg: Also not
@id.
β¦ Framing was mentioned as the proper way to handle these cases, but it does not work right now.
Rob Sanderson: This fits with our general pattern to allow
@type
to allow more functionality and context, such as @container
and @set.
β¦ While our feature window is closed, we can consider this a bug.
Dave Longley: This is indeed an oversight, something we can fix.
Pierre-Antoine Champin: So the idea is that
@type
with @default
would set the type on node object or value objects, or any of them?Gregg Kellogg: I think only on node objects.
β¦ We would have to check the algorithm.
Dave Longley: I think gkellogg is correct.
Rob Sanderson: Me too. Otherwise we would open up weird issues with
@direction
and @value.
Dave Longley: +1 to azaroth
Proposed resolution: Accept framing #74 as an oversight to be fixed for
@type
on node objects (Rob Sanderson)Gregg Kellogg: +1
Jeff Mixter: +1
Rob Sanderson: +1
Ruben Taelman: +1
Dave Longley: +1
Pierre-Antoine Champin: +1
Ivan Herman: +1
Resolution #4: Accept framing #74 as an oversight to be fixed for
@type
on node objectsfrom json-ld-framing.
Resolved, closing :)
from json-ld-framing.
Related Issues (20)
- Should tests for `@embed`: `@last` be restricted to JSON-LD 1.0? HOT 4
- Framing and Arrays HOT 4
- Ex. 41 Playground doesn't contain `@omitGraph: false` + playground does not apply `@omitGraph` HOT 3
- Pattern Matching HOT 4
- Can frames produce id maps? HOT 2
- Possible typos HOT 2
- Use a property several time when framing HOT 1
- validation errors/warnings HOT 1
- Language map with global context HOT 1
- IANA profile should be `frame` not `framed` HOT 5
- how to use the `frame` and `framed` profiles? HOT 12
- Fix invalid WebIDL HOT 1
- Change "Lexicographical Order" (and related) to "Unicode code point order". HOT 1
- Possible bug with `@json` being treated as invalid `type` in frame HOT 24
- How to use specific value inside a frame to filter out credentials those do not contain that value
- Framing on nested graphs
- Add test for `@graph` keyword aliasing
- more JSON-LD framed examples for performance testing
- Framing to a default language for the entire doc HOT 5
- 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-framing.