Version 3 (modified by 13 years ago) (diff) | ,
---|
methods
Method | description |
---|---|
jsoInterface?entId=x1 | returns an entity by id |
jsonInterface?codexIdentifier=x1&collection=x2 | returns a codex by its identifier and collection |
examples
- http://localhost:8080/om4-ismi/jsonInterface?entId=432674
Output:
{ "entity": { "id": 432674, "attributes": [ { "name": "name_translit", "value": "ʿAbbās Wasīm Efendī" }, { "name": "url", "value": "http://islamsci.mcgill.ca/RASI/BEA/Abbas_Wasim_Efendi_BEA.htm" } ], "targets": [ { "source": 432672, "name": "is_prime_alias_name_of", "target": 432674 } ], "sources": [ { "source": 432674, "name": "was_born_in", "target": 149169 } ] } }
- http://neruda.mpiwg-berlin.mpg.de:8080/om4-ismi/jsonInterface?codexIdentifier=437&collection=Jawāhir
Output:
{ "codices": [ { "id": 134176, "witnesses": [ { "id": 55153 } ], "repository": "Azad Library", "entity": { "attributes": [ { "name": "identifier", "value": "437" } ], "targets": [ { "source": 55153, "name": "is_part_of", "target": 134176 } ], "sources": [ { "source": 134176, "name": "is_part_of", "target": 149134 } ] }, "collection": "Jawāhir", "identifier": "437", "country": "India", "city": "Aligarh" } ] }