| 276 | We give two clear, but brief example of the correct format of the searchRetrieve response that includes just the KWIC DataView type. |
| 277 | |
| 278 | First example, based on http://clarin.ids-mannheim.de/cosmassru?operation=searchRetrieve&version=1.2&query=Gott (but edited). |
| 279 | {{{#!xml |
| 280 | <?xml version="1.0" encoding="UTF-8"?> |
| 281 | <sru:searchRetrieveResponse xmlns:sru="http://www.loc.gov/zing/srw/"> |
| 282 | <sru:version>1.2</sru:version> |
| 283 | <sru:numberOfRecords>339</sru:numberOfRecords> |
| 284 | <sru:records> |
| 285 | <sru:record> |
| 286 | <sru:recordSchema>http://clarin.eu/fcs/1.0</sru:recordSchema> |
| 287 | <sru:recordPacking>xml</sru:recordPacking> |
| 288 | <sru:recordData> |
| 289 | <fcs:Resource xmlns:fcs="http://clarin.eu/fcs/1.0" pid="GOE/AGA.00000" |
| 290 | ref="http://clarin.ids-mannheim.de/cosmassru/redirect/GOE/AGA.00000"> |
| 291 | <fcs:DataView type="kwic"> |
| 292 | <fcs:c type="left"> und so will ich denn hier auch noch anführen, daß ich in |
| 293 | diesem Elend das neckische Gelübde getan: man solle, wenn ich uns erlöst |
| 294 | und mich wieder zu Hause sähe, von mir niemals wieder einen Klagelaut |
| 295 | vernehmen über den meine freiere Zimmeraussicht beschränkenden |
| 296 | Nachbargiebel, den ich vielmehr jetzt recht sehnlich zu erblicken |
| 297 | wünsche; ferner wollt' ich mich über Mißbehagen und Langeweile im |
| 298 | deutschen Theater nie wieder beklagen, wo man doch immer </fcs:c> |
| 299 | <fcs:kw>Gott</fcs:kw> |
| 300 | <fcs:c type="right"> danken könne, unter Dach zu sein, was auch auf der |
| 301 | Bühne vorgehe. </fcs:c> |
| 302 | </fcs:DataView> |
| 303 | </fcs:Resource> |
| 304 | </sru:recordData> |
| 305 | <sru:recordPosition>1</sru:recordPosition> |
| 306 | </sru:record> |
| 307 | <!-- SOME <record> elements skipped here --> |
| 308 | <sru:record> |
| 309 | <sru:recordSchema>http://clarin.eu/fcs/1.0</sru:recordSchema> |
| 310 | <sru:recordPacking>xml</sru:recordPacking> |
| 311 | <sru:recordData> |
| 312 | <fcs:Resource xmlns:fcs="http://clarin.eu/fcs/1.0" pid="GOE/AGX.00008" |
| 313 | ref="http://clarin.ids-mannheim.de/cosmassru/redirect/GOE/AGX.00008"> |
| 314 | <fcs:DataView type="kwic"> |
| 315 | <fcs:c type="left"> 1065 es wäre nicht der Mühe wert, siebzig Jahr alt zu |
| 316 | werden, wenn alle Weisheit der Welt Torheit wäre vor </fcs:c> |
| 317 | <fcs:kw>Gott.</fcs:kw> |
| 318 | <fcs:c type="right"/> |
| 319 | </fcs:DataView> |
| 320 | </fcs:Resource> |
| 321 | </sru:recordData> |
| 322 | <sru:recordPosition>339</sru:recordPosition> |
| 323 | </sru:record> |
| 324 | </sru:records> |
| 325 | <sru:echoedSearchRetrieveRequest> |
| 326 | <sru:version>1.2</sru:version> |
| 327 | <sru:query>Gott</sru:query> |
| 328 | <sru:recordPacking>xml</sru:recordPacking> |
| 329 | <sru:baseUrl>http://clarin.ids-mannheim.de/cosmassru</sru:baseUrl> |
| 330 | </sru:echoedSearchRetrieveRequest> |
| 331 | </sru:searchRetrieveResponse> |
| 332 | }}} |
| 333 | |
| 334 | Second example, based on http://www.meertens.knaw.nl/mimore/srucql/?operation=searchRetrieve&query=koe&version=1.2 (but edited). |
| 335 | |
| 336 | {{{#!xml |
| 337 | <?xml version="1.0" encoding="UTF-8"?> |
| 338 | <sru:searchRetrieveResponse xmlns:sru="http://www.loc.gov/zing/srw/"> |
| 339 | <sru:version>1.2</sru:version> |
| 340 | <sru:numberOfRecords>102</sru:numberOfRecords> |
| 341 | <sru:records> |
| 342 | <sru:record> |
| 343 | <sru:recordSchema>info:srw/schema/1/ccs-v1.0</sru:recordSchema> |
| 344 | <sru:recordPacking>XML</sru:recordPacking> |
| 345 | <sru:recordData> |
| 346 | <ccs:Resource xmlns:ccs="http://clarin.eu/ContentSearch" |
| 347 | pid="http://hdl.handle.net/10744/08d0936b-0987-4486-9671-2d90fab5c568"> |
| 348 | <ccs:ResourceFragment |
| 349 | pid="http://hdl.handle.net/10744/F569019F-B23B-4AEE-8B55-05DF8C6F9133#300" |
| 350 | ref="http://www.meertens.knaw.nl/mand/database/list.php?imdi=&ids=300"> |
| 351 | <ccs:DataView type="kwic"> |
| 352 | <c type="left"/> |
| 353 | <kw>koe</kw> |
| 354 | <c type="right">-e / ku.6 / kuˑə</c> |
| 355 | </ccs:DataView> |
| 356 | <ccs:DataView type="kml"> |
| 357 | <kml> |
| 358 | <placemark> |
| 359 | <name>Midsland / Midslân</name> |
| 360 | <description>Kloekecode A001p</description> |
| 361 | <point> |
| 362 | <coordinates>5.30243930434,53.3942864195</coordinates> |
| 363 | </point> |
| 364 | </placemark> |
| 365 | </kml> |
| 366 | </ccs:DataView> |
| 367 | </ccs:ResourceFragment> |
| 368 | </ccs:Resource> |
| 369 | </sru:recordData> |
| 370 | <sru:recordPosition>1</sru:recordPosition> |
| 371 | </sru:record> |
| 372 | <!-- SOME <record> elements skipped here --> |
| 373 | <sru:record> |
| 374 | <sru:recordSchema>info:srw/schema/1/ccs-v1.0</sru:recordSchema> |
| 375 | <sru:recordPacking>XML</sru:recordPacking> |
| 376 | <sru:recordData> |
| 377 | <ccs:Resource xmlns:ccs="http://clarin.eu/ContentSearch" |
| 378 | pid="http://hdl.handle.net/10744/07eff53c-1a41-475b-a3d5-d9d82441ac62"> |
| 379 | <ccs:ResourceFragment |
| 380 | pid="http://hdl.handle.net/10744/6AB402EA-6434-4000-BEDF-6D983428CBC1#9025" |
| 381 | ref="http://www.meertens.knaw.nl/diddd/?id=9025"> |
| 382 | <ccs:DataView type="kwic"> |
| 383 | <c type="left">Houveul</c> |
| 384 | <kw>koe</kw> |
| 385 | <c type="right">ien het hij kocht en welke precies?</c> |
| 386 | </ccs:DataView> |
| 387 | <ccs:DataView type="kml"> |
| 388 | <kml> |
| 389 | <placemark> |
| 390 | <name>Paterswolde</name> |
| 391 | <description>Kloekecode C148p</description> |
| 392 | <point> |
| 393 | <coordinates>6.55958609175,53.1546061494</coordinates> |
| 394 | </point> |
| 395 | </placemark> |
| 396 | </kml> |
| 397 | </ccs:DataView> |
| 398 | </ccs:ResourceFragment> |
| 399 | </ccs:Resource> |
| 400 | </sru:recordData> |
| 401 | <sru:recordPosition>102</sru:recordPosition> |
| 402 | </sru:record> |
| 403 | </sru:records> |
| 404 | <echoedSearchRetrieveRequest> |
| 405 | <version>1.2</version> |
| 406 | <query>cql.serverChoice = "koe"</query> |
| 407 | <baseUrl>/mimore/srucql/</baseUrl> |
| 408 | </echoedSearchRetrieveRequest> |
| 409 | </sru:searchRetrieveResponse> |
| 410 | }}} |
| 411 | |