Module: OpenCalais
- Extended by:
- Configuration
- Defined in:
- lib/open_calais.rb,
lib/open_calais/client.rb,
lib/open_calais/version.rb,
lib/open_calais/response.rb,
lib/open_calais/connection.rb,
lib/open_calais/configuration.rb
Defined Under Namespace
Modules: Configuration, Connection Classes: Client, Response
Constant Summary collapse
- HEADERS =
{ :license_id => 'X-AG-Access-Token', :content_type => 'Content-Type', :output_format => 'outputFormat', :language => 'x-calais-language' }
- CONTENT_TYPES =
{ :xml => 'text/xml', :html => 'text/html', :htmlraw => 'text/htmlraw', :raw => 'text/raw' }
- OUTPUT_FORMATS =
{ :rdf => 'xml/rdf', :n3 => 'text/n3', :json => 'application/json' }
- METADATA_SOCIAL_TAGS =
'SocialTags'- METADATA_GENERIC_RELATIONS =
'GenericRelations'- METADATA_TYPES =
[METADATA_GENERIC_RELATIONS, METADATA_SOCIAL_TAGS]
- TOPICS =
['Business_Finance', 'Disaster_Accident', 'Education', 'Entertainment_Culture', 'Environment', 'Health_Medical_Pharma', 'Hospitality_Recreation', 'Human Interest', 'Labor', 'Law_Crime', 'Politics', 'Religion_Belief', 'Social Issues', 'Sports', 'Technology_Internet', 'Weather', 'War_Conflict', 'Other']
- ENTITY_TYPES =
%w(Anniversary City Company Continent Country Currency EmailAddress EntertainmentAwardEvent Facility FaxNumber Holiday IndustryTerm MarketIndex MedicalCondition MedicalTreatment Movie MusicAlbum MusicGroup NaturalFeature OperatingSystem Organization Person PhoneNumber PoliticalEvent Position Product ProgrammingLanguage ProvinceOrState PublishedMedium RadioProgram RadioStation Region SportsEvent SportsGame SportsLeague Technology TVShow TVStation URL)
- GEO_TYPES =
%w(City Continent Country NaturalFeature ProvinceOrState Region)
- DISAMBUGUATIONS =
%w(er/Company er/Geo er/Product)
- VERSION =
'0.4.2'
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS