-
Notifications
You must be signed in to change notification settings - Fork 4
Json web service
jorgeyp edited this page Nov 17, 2014
·
5 revisions
Wesby has a web service that serves the JSON data for each resource. You can get the data for each RDF resource in the route: /data/*uri
, Where *uri
is the route of the resource, and see the structure of the data. The basic structure of the data format is the following:
Json schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Template data",
"description": "Data from the RDF resource for the template",
"type": "object",
"properties": {
"cachedLabel": {
"description": "Label for the RDF resource",
"type": "string"
},
"rdfType": {
"description": "RDF type URI",
"type": "string"
},
"rdfTypeLabel": {
"type": "string"
},
"subjects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
},
"values": {
}
}
}
},
"predicates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
},
"values": {
}
}
}
}
}
}
As an example, you can get the RDF type of an object from Mustace with the tag {{rdfType}}
.
by WESO