Skip to content

OLD How to turn a Resource Template into an importable Profile

michelleif edited this page Jun 14, 2022 · 1 revision

This document refers to an older version of Sinopia and is maintained here for reference.

From the Resource Templates tab in Sinopia, you can download any Resource Template. This is useful if you want to see exactly how a Resource Template was constructed, or you want to use the Template as a basis for creating your own template. But you'll soon find that you're limited in what you can do with this Resource Template, because the Sinopia Profile Editor only allows you to import or upload Profiles (not Resource Templates).

(Note that you can import a Resource Template into the Sinopia Linked Data Editor. For example, if you have a Resource Template on the stage environment and want to use the same one in the Production environment, you can simply download it from the Resource Templates tab in stage, and then import it directly into the Resource Templates tab in Production.)

To do this manually: in a text editor paste the following text at the top of your Resource Template JSON file. Note that the Profile ID, Title, Description, Author and Date will not be saved anywhere when you import your Profile into the Linked Data Editor, so they are not significant for that purpose.

{
  "Profile": {
    "resourceTemplates": [

And the following at the end of your Resource Template JSON file

],
    "id": "thisisatestanditdoesntmatter",
    "title": "profiletitle",
    "description": "description",
    "author": "someone",
    "schema": "https://ld4p.github.io/sinopia/schemas/0.0.9/profile.json",
    "date": "2019-07-19"
  }
}
Clone this wiki locally