Instructions
Create a fresh ontology
This page allows for the tagging of datasets using concepts defined as SKOS concepts. To create a fresh (untagged) ontology, use the following rest-api
ontology-tagger.herokuapp.com/ontology/create
Example:
$ curl -i https://ontology-tagger.herokuapp.com/ontology/create
HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 47
Server: Werkzeug/0.12.2 Python/3.6.1
Date: Tue, 20 Mar 2018 14:10:31 GMT
{
"db": "30a993dbee4348368095fabf6171ab3f"
}
Tag the ontology
Copy the received uuid and add it to the current URL
http://ontology-tagger.herokuapp.com/index?uid=<UUID>
Example:
http://ontology-tagger.herokuapp.com/index?uid=30a993dbee4348368095fabf6171ab3f
Please give the URL to a DCAT dataset, and select a predefined
Tag from the ontology concepts.
Fetch the tagged ontology
In order to copy locally a tagged ontology, the following REST API can be used:
ontology-tagger.herokuapp.com/ontology/fetch/<UUID>
Example:
$ curl -i https://ontology-tagger.herokuapp.com/ontology/fetch/30a993dbee4348368095fabf6171ab3f
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.7.1
Date: Tue, 20 Mar 2018 14:53:58 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 74253
Via: 1.1 vegur
[
{
"@id": "http://www.w3.org/2004/02/skos/core#editorialNote",
"@type": [
"http://www.w3.org/2002/07/owl#AnnotationProperty"
],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy": [
{
"@id": "http://www.w3.org/2004/02/skos/core"
}
],
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@language": "en",
"@value": "editorial note"
}
],
...