. . . "d3ba01427dc09e68aef0fee62faa4578" . . . . "VirtCartConfigHotels" . . . "2017-06-13T05:38:37Z" . . "VirtCartConfigHotels" . . . . . "2017-06-13T05:38:37.261852"^^ . . . "2017-06-13T05:38:37.261852"^^ . . . . . . . "VirtCartConfigHotels" . "%META:TOPICPARENT{name=\"VirtSpongerCartridgeSupportedDataSourcesVendorNonRDF\"}%\n---+Hotels.com\n\n%TOC%\n\nIn order to maximize the amount and quality of data extracted, the Sponger's \nsupport for Hotels.com comes in three forms: as a regular extractor cartridge, \nas a query-language cartridge and as a metacartridge.\n\n---++Extractor Cartridge\n\nThis is used for modelling a single identified hotel object as RDF. Typical URL \npatterns take the form \n<http://www.hotels.com/hotel/details.html?hotelId=nnnnn>.\nIn practice, such URLs rarely exist in the wild so we regard this as the \ncanonical URL for a hotel and identify the pattern ?hotelId=nnnnn in other URLs \naccordingly.\n\n---++Query-Language cartridge\n\nThe Sponger's Query-language cartridges are a subset of the extractor \ncartridges, defined as working against resources that are themselves queries. \nIn this case, the hotels.com website allows a user to enter some free-form text \nto locate a hotel; we treat the URL as identifying a resultset and model that \nas a container linking to individual hotels.\n\nFeatures differentiating this from other modes: if a new hotel is built \ntomorrow and matches the search, responging the same page will show new data \ndynamically; there is no hotelId in the URL to restrict the query to one hotel.\n\n---++Metacartridge\n\nThe Sponger's metacartridges enhance data already present in a graph. In this \ncase, the Hotels.com metacartridge searches for triples identifying a location \nin the graph and adds links showing hotels in the vicinity.\n\n---++Configuration\n\nThe hotels.com cartridges are implemented using the Expedia Affiliate Network \n(EAN) API. To use them, you need to sign up with EAN, register a new \napplication and put the API key in the API key field in the sponger cartridge's \nconfiguration page in the Virtuoso Conductor. \n\nExample:\n\nGo to https://developer.ean.com/ and click `sign up' or sign in if already \nregistered.\n\n * \n\nClick on `[[https://developer.ean.com/apps/mykeys][my account]]' and you should \nsee an overview of your applications and their keys and secrets. \n\n * \n\nGo to the Virtuoso Conductor, e.g. \nhttp://localhost:8889/conductor/ (adjust host and port) and \nlog in. In the menus, click Linked Data / Sponger and you'll see the extractor \ncartridges.\n\n * \n\nEnsure the Hotels.com extractor cartridge is enabled and apply. Then scroll \ndown and select it, to change its settings:\n\n * \n\nCopy and paste the API Key from EAN into the cartridge configuration and update.\n\n * \n\nNext, in the sponger menu, go to the Metacartridges tab and similarly enable \nthe cartridge and paste the key in its setings also.\n\n\n * \n * \n\n---++See Also\n\n * [[VirtSpongerCartridgeSupportedDataSourcesVendorNonRDF][Vendor-specific supported data sources]]\n * [[VirtSpongerCartridgeSupportedDataSourcesQueryLanguages][Query-Language Cartridges]]\n * [[VirtSponger][Virtuoso Sponger]]" . "2017-06-13T05:38:37Z" . . . . .