Skip to content

Not-an-issue: Checking the RDF from JSON-LD #21

Closed

Description

@stuchalk

I would have put this on discussions if it were setup...

Commit 40fb338 just added Python code to create JSON_LD for units (all data for a unit and all its definitions). This has been checked in terms of being converted to RDF and can easily be updated to work for the full list of units and an individual definition of a unit.

I thought a good idea to explain JSON-LD for those that are not familiar. The JSON-LD spec here for reference.

A JSON-LD file is a JSON file with LD specific field names "keywords in JSON-LD" that start with the "@" symbol. The most import keyword is "@context". The context section is where you either define the meaning of each field name in the file, or you reference to a file that contains the the meaning definitions. The JSON-LD file attached to this issue (added as a .txt file as .jsonld extension not allowed) has a context file here (temporarily) and has entries for each field in the JSON-LD file assigning the semantic meaning defined in the .ttl files. The other entries in the context section are the definition of the namespace aliases used in the document, and the base url for the SI related definitions.

To see this, open the JSON-LD file attached and copy and paste in into the JSON-LD playground. This will convert the file to RDF. You can copy and paste the RDF to a text file to see it better and I would copy it as "N-Quads".

ampere.txt

Activity

  1. locked and limited conversation to collaborators on Oct 23, 2023
  2. converted this issue into a discussion #23 on Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions