Retrieval of annotations via SPARQL

Function name: get-annotations

Parameters:

  • sparql  a SPARQL query

The SPARQL query must be a SELECT and must contain variable ?annotation. Other possible values are listed in the table.

Returns: list of annotations serialized in JSON format or an empty page if it does not exist or is not public or the SPARQL query is not valid.

Example: https://eudml.org/api/get-annotations?sparql=SELECT ?annotation WHERE {?annotation ?b <urn:type:deleted>}

returns

[{"id":"http://eudml.eu/services/annotation/Annotation1358964435939","type":"http://eudml.eu/annotations/example","owner":"urn:namespace: user:a08186203c61b03f013c623ea4ba0001","status":"urn: type:deleted","target":null,"visibility":"public", "created":1358964435940,"primaryTarget": "urn:eudml:doc:167071","annotationBody":{"content":"test"}},{"id":"http://eudml.eu/services/annotation/Annotation1361273221455","type": "http://eudml.eu/annotations/comment","owner":"urn: namespace:user:a0818620384637110138466650190001", "status":"urn:type:deleted","target":null,"visibility": "public","created":1361273221456,"primaryTarget":"urn: eudml:doc:11111","annotationBody":{"content":"hgbgh"}}]

Remark: Annotation IDs are contained in the code of each EuDML page. You cannot retrieve private annotations. Annotation content cannot be subject of searching via SPARQL endpoint.

AttachmentSize
table_SPARQL.pdf19.22 KB