Changes between Version 19 and Version 20 of VirtualCollectionRegistry
- Timestamp:
- 08/26/14 13:18:51 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VirtualCollectionRegistry
v19 v20 71 71 A number of core services for marshalling, validation, etcetera can be found in ''eu.clarin.cmdi.virtualcollectionregistry.service'' package (generally interfaces with implementations in the .impl subpackage). 72 72 73 {{{#!comment74 Query language75 }}}76 77 73 More info: 78 74 * [http://docs.oracle.com/javaee/6/tutorial/doc/bnbpz.html JPA introduction] … … 92 88 The CMDI output is generated by marshalling instances of the classes generated by the JAX-B Maven plugin at build time (XJC), based on the [http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1404130561238/xsd VirtualCollection profile schema], a copy of which is included in the sources. 93 89 90 The collections space can be queried by means of a domain specific query language, as described in the [source:/VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/doc/Protocol.txt REST documentation]. The grammar is defined in the file [source:/VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/jjtree/eu/clarin/cmdi/virtualcollectionregistry/query/QueryParser.jjt QueryParser.jjt]. The ''javacc-maven-plugin'' generates the parser at build time (with the JJTree preprocessor). Query string (as optional GET parameters) are passed from the REST resources to the ''VirtualCollectionRegistry'' service, which uses a static method to get it parsed into a ''ParsedQuery'' object, which in turn is used to obtain JPA query objects that can be used to retrieve concrete results. 91 94 92 More info: 95 93 * [https://jersey.java.net/documentation/latest/jaxrs-resources.html JAX-RS resources documentation from Jersey] 96 94 * [https://jersey.java.net/documentation/latest/message-body-workers.html information on custom body providers from Jersey] 97 95 * [http://mojo.codehaus.org/jaxb2-maven-plugin/ jaxb2-maven-plugin] 96 * [http://mojo.codehaus.org/javacc-maven-plugin/ javacc-maven plugin] with links to information about JavaCC and JJTree 98 97 99 98 ==== Wicket application (UI) ====