110 likes | 269 Views
Simple Query Interface (SQI). David Massart, EUN. S imple Q uery I nterface (SQI). Standard API (CWA - 15454, Nov. 2005) For combining highly heterogeneous metadata repositories Neutral in terms of query languages and results format Supports synchronous and asynchronous query mode
E N D
Simple Query Interface (SQI) David Massart, EUN
Simple Query Interface (SQI) • Standard API (CWA - 15454, Nov. 2005) • For combining highly heterogeneous metadata repositories • Neutral in terms of query languages and results format • Supports synchronous and asynchronous query mode • Based on a session management concept
Asynchronous Query Interface • asynchronousQuery • setSourceLocation • queryResultsListener • Session Management • createSession • createAnonymousSession • destroySession SQI Methods • Query Configuration • setQueryLanguage • setResultsFormat • setMaxQueryResults • setMaxDuration • Synchronous Query Interface • setResultsSetSize • synchronousQuery • getTotalResultsCount
Fault Mechanism • Intentionally unsophisticated • Simplicity rather than richness • Only one fault: SQIFault • Thrown by all methods • Allows: • Free-text messages • Predefined error codes
LRE Results XML Header <?xml version="1.0" encoding="UTF-8"?> <strictLomResults xmlns=http://fire.eun.org/xsd/strictLreResults-1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation="http://fire.eun.org/xsd/strictLreResults-1.0 http://fire.eun.org/xsd/strictLreResults-1.0.xsd"> <lom xmlns="http://ltsc.ieee.org/xsd/LOM">...</lom> <lom xmlns="http://ltsc.ieee.org/xsd/LOM">...</lom> </strictLomResults>
Querying the LRE • http://wiki.eun.org/lre-dev-guide/index.php/Main_Page