Well, Linked Data is RESTful insofar as resources are resolvable (GETtable) and interlinked, cf.:
$ curl -LH "Accept:text/html" http://collection.britishmuseum.org/id/object/EOC3130 $ curl -LH "Accept:text/turtle" http://collection.britishmuseum.org/id/object/EOC3130 $ curl -LH "Accept:application/json" http://collection.britishmuseum.org/id/object/EOC3130 Unfortunately the latter is not yet JSON-LD at the BM, which would be my preference if you want to use JSON alongside CRM descriptions. We mirror the structure and descriptions of (currently Erlangen-identified) CRM terms, allowing: $ curl -LH "Accept:application/json" http://collection.britishmuseum.org/resource/ecrm/E22_Man-Made_Object { "http://erlangen-crm.org/current/E22_Man-Made_Object" : { "http://www.w3.org/2000/01/rdf-schema#subClassOf" : [ { "value" : "http://erlangen-crm.org/current/E19_Physical_Object", "type" : "uri" }, { "value" : "http://erlangen-crm.org/current/E24_Physical_Man-Made_Thing", "type" : "uri" } ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ { "value" : "http://www.w3.org/2002/07/owl#Class", "type" : "uri" } ], "http://www.w3.org/2000/01/rdf-schema#comment" : [ { "value" : "Scope note:\nThis class comprises physical objects purposely created by human activity.\nNo assumptions are made as to the extent of modification required to justify regarding an object as man-made. For example, an inscribed piece of rock or a preserved butterfly are both regarded as instances of E22 Man-Made Object.\n\nExamples:\n- Mallard (the World's fastest steam engine)\n- the Portland Vase\n- the Coliseum", "type" : "literal" } ] } } I’d like to see content-negotiable, JSON-LD supporting individual terms of the CRM at the canonical URLs, and I’d be happy to help. Barry From: Crm-sig [mailto:[email protected]] On Behalf Of Simon Spero Sent: 31 May 2014 23:51 To: Gerald de Jong Cc: [email protected] Subject: Re: [Crm-sig] A CRM API? On Sat, May 31, 2014 at 12:29 PM, Gerald de Jong <[email protected]<mailto:[email protected]>> wrote: I'm wondering if the SIG has some kind of CRM API available so that software can easily retrieve the model and its component parts individually. What I'm thinking of is a REST interface which makes it easy to build CRM browser software in Javascript, exposing scope notes and any other materials (video fragments of Stephen Stead?). The output of X3ML is generally RDF, right? If the data are exposed via a SPARQL endpoint, then that will provide a REST-ish API. GET /sparql/?query=<sparql query> HTTP/1.1 Host: <hostname> Accept: application/sparql-results+json You can also use POST for longer queries (hence the "-ish") see: SPARQL 1.1 Protocol Recommendation: http://www.w3.org/TR/sparql11-protocol/ SPARQL 1.1 JSON Results Format: http://www.w3.org/TR/sparql11-results-json/ SPARQL 1.1 Query Language: http://www.w3.org/TR/sparql11-query/ Simon
