No, as far as I can tell the vocabs are identical. My only addition was to install schema.org in both instances.
This is the JSON exported from the first instance:
{
"o:label": "Newspaper",
"o:resource_template_property": [
{
"o:alternate_label": null,
"o:alternate_comment": null,
"o:is_required": false,
"o:is_private": false,
"data_type_name": null,
"data_type_label": null,
"vocabulary_namespace_uri": "http:\/\/purl.org\/dc\/terms\/",
"vocabulary_label": "Dublin Core",
"local_name": "title",
"label": "Title"
},
{
"o:alternate_label": null,
"o:alternate_comment": null,
"o:is_required": false,
"o:is_private": false,
"data_type_name": null,
"data_type_label": null,
"vocabulary_namespace_uri": "http:\/\/schema.org\/",
"vocabulary_label": "Schema.org",
"local_name": "name",
"label": "name"
},
{
"o:alternate_label": null,
"o:alternate_comment": null,
"o:is_required": false,
"o:is_private": false,
"data_type_name": null,
"data_type_label": null,
"vocabulary_namespace_uri": "http:\/\/purl.org\/dc\/terms\/",
"vocabulary_label": "Dublin Core",
"local_name": "description",
"label": "Description"
},
{
"o:alternate_label": "Trove newspaper id",
"o:alternate_comment": null,
"o:is_required": false,
"o:is_private": false,
"data_type_name": null,
"data_type_label": null,
"vocabulary_namespace_uri": "http:\/\/schema.org\/",
"vocabulary_label": "Schema.org",
"local_name": "identifier",
"label": "identifier"
},
{
"o:alternate_label": null,
"o:alternate_comment": "Trove url",
"o:is_required": false,
"o:is_private": false,
"data_type_name": "uri",
"data_type_label": "URI",
"vocabulary_namespace_uri": "http:\/\/schema.org\/",
"vocabulary_label": "Schema.org",
"local_name": "url",
"label": "url"
}
],
"o:resource_class": {
"vocabulary_namespace_uri": "http:\/\/schema.org\/",
"vocabulary_label": "Schema.org",
"local_name": "Newspaper",
"label": "Newspaper"
}
}
All I’m doing is loading the JSON and submitting via POST:
payload = json.load(open('Newspaper.json', 'r'))
params = {
'key_identity': 'blahblah',
'key_credential': 'blahblah'
}
response = requests.post('https://timsherratt.org/wraggelabs/api/resource_templates/', json=payload, params=params)
print(response.json())
And this is what I get back – template created, but no class or props…
{'@context': 'https://timsherratt.org/wraggelabs/api-context', '@id': 'https://timsherratt.org/wraggelabs/api/resource_templates/8', '@type': 'o:ResourceTemplate', 'o:id': 8, 'o:label': 'Newspaper', 'o:owner': {'@id': 'https://timsherratt.org/wraggelabs/api/users/1', 'o:id': 1}, 'o:resource_class': None, 'o:resource_template_property': []}