PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, May 9, 2022

[FIXED] Where can I find jsonlds (context) in order to create Products in Platform of Trust?

 May 09, 2022     api, platform, platform-of-trust, product     No comments   

Issue

Product API documentation has examples for creating data products.

There are parameters dataContext and parameterContext with dummy values as https://example.com/v1/Context/Data.

Where can I find some real context jsonIds for these? I have tried https://api-sandbox.oftrust.net/contexts/v1/ but dataProducts is an empty array there in response.

Are these context specific for translators?


Solution

The values for the contexts are not actually used or checked, so you need to deploy the translator and give the URL to that (and whatever the other mandatory arguments are). We encourage you to consult this multi-connector git repo to see how context of output is configured there to be returned by connector.

DataProducts contexts started to be defined in standards v2 . They are continuously extending based on business needs.

dataContext should have as value the OutputContext

  • E.g.: https://standards.oftrust.net/v2/Context/DataProductOutput/Sensor/

parameterContext should have as value the ParametersContext

  • E.g.: https://standards.oftrust.net/v2/Context/DataProductParameters/Sensor/


Answered By - ra_tester
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing