Skip to content

Question: @profile keyword to specify the profile of a JSON-LD file in its content #923

@ioggstream

Description

@ioggstream

Question

I have to parse different kinds of JSON-LD content:
some are frame, others are framed, others are plain data files.

I see that I can use ; profile=... at content-negotiation time,
but I found no specific keyword I can use to distinguish files
by their content.

Is there a keyword for that?

If not, does it make sense to define a @profile keyword to
espress the specific jsonld profile inside the file?

Ex.1

"@profile": http://www.w3.org/ns/json-ld#frame
"@context": ...
"@explicit": true
name: {}

Ex.2

"@profile": http://www.w3.org/ns/json-ld#framed
"@context": ...
"@graph":
- name: Homer
- name: Marge

Have a nice day, R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions