-
Notifications
You must be signed in to change notification settings - Fork 0
Admin API
Serves information about the service (name, description, version, etc.). Output can be plain text or Turtle.
Checks if data of the Resource Object is valid and there is no inconsictencies in it.
Forces regeneration of SolR index.
curl -v -X POST -H "Authorization: Bearer d2ZhZG1pbjp3ZmFkbWluISEh" http://sandbox.rohub.org/rodl/admin/solr/reindex/
Reschedules all monitoring jobs.
In case of any problems with deleting ROs in standard mode it is possible to force deleting using admin privileges. Authorized admin user can delete one or more Resource Objects.
curl -v -X POST -H 'Authorization: Bearer d2ZhZG1pbjp3ZmFkbWluISEh' -H 'Content-Type: text/uri-list' -d '@list1' http://sandbox.rohub.org/rodl/admin/force-delete
curl -v -X POST -H 'Authorization: Bearer d2ZhZG1pbjp3ZmFkbWluISEh' -H 'Content-Type: text/uri-list' -d '@/Users/rap/Downloads/resources-for-testing-curl-rohub/list1' http://sandbox.rohub.org/rodl/admin/force-delete python /Users/rap/Downloads/resources-for-testing-curl-rohub/force-delete-rohub.py
Working with /Users/rap/Downloads/resources-for-testing-curl-rohub/list2.txt deletes multiple Resource Objects.
curl -v -X POST -H 'Authorization: Bearer d2ZhZG1pbjp3ZmFkbWluISEh' -H 'Content-Type: text/uri-list' -d '@/Users/rap/Downloads/resources-for-testing-curl-rohub/list1' http://sandbox.rohub.org/rodl/admin/force-delete
????
Calls external service which assigns metadata to the Resource Object.
curl -v -X POST -H "Authorization: Bearer cm9kbGNsaWVudDpnd2IzYWtDR1lJYw==" http://sandbox.rohub.org/rodl/service/enrichment/?ro=http://sandbox.rohub.org/rodl/ROs/LandMonitoring_Change_Detecting/
curl -v -X POST -H "Authorization: Bearer cm9kbGNsaWVudDpnd2IzYWtDR1lJYw==" http://sandbox.rohub.org/rodl/service/enrichment/?ro=http://sandbox.rohub.org/rodl/ROs/LMCD/
curl -v -X POST -H "Content-Type: text/plain" -H "Authorization: Bearer ZW5yaWNobWVudDpIODZjMzV3eWdDRHZ1Zw==" --data-asci "this is an example annotation" http://sandbox.rohub.org/rodl/service/callback?nonce=3f4f0f40-4714-4a81-adc0-787c784340f3
????
Forces regeneration of SolR index data for specified Resource Object.
curl -v -X POST -H "Authorization: Bearer ZXNiOmF5WjNTd2tuU1FiNg==" http://sandbox.rohub.org/rodl/service/solr/reindex-ro/?ro=http://sandbox.rohub.org/rodl/ROs/VSM_TAV_Etna_1993_97/
Provides possibility of execution a SPARQL query.
Output could be obtained in different formats. It is similar with input query format.
- XML
- JSON
- RDF
- Turtle
curl -v -X POST http://sandbox.rohub.org/rodl/sparql/ -d query="describe <http://sandbox.rohub.org/rodl/ROs/ra-1/>"
curl -v -X POST -H "Accept: application/rdf+xml" http://sandbox.rohub.org/rodl/sparql/ \
-d query="\
select * where { \
<http://sandbox.rohub.org/rodl/ROs/ra-1/> ?p ?o \
}"