Skip to content
gosiawolniewicz edited this page Jun 26, 2020 · 17 revisions

Table of Contents

/

Serves information about the service (name, description, version, etc.). Output can be plain text or Turtle.

accesscontrol/synchronize/

Checks if data of the Resource Object is valid and there is no inconsictencies in it.

solr/reindex/

Forces regeneration of SolR index.

curl -v -X POST -H "Authorization: Bearer d2ZhZG1pbjp3ZmFkbWluISEh" http://sandbox.rohub.org/rodl/admin/solr/reindex/

monitor/all

Reschedules all monitoring jobs.

force-delete

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

preservation/id/synchronize

????

service/enrichment/

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/

service/callback/

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

service/test/

????

service/solr/

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/

sparql/

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 \
}"

Clone this wiki locally