Is it possible to retrieve a specific BattlePet given a name and a realm via the Warcraft API? - world-of-warcraft

I'm trying to retrieve a specific World of Warcraft Battle Pet's info given its name. Blizzard provide a pretty handy API for such things but I can't see how I'd find a specifically named Battle Pet, given a realm name etc.
I can pull down an array of all of a specific Character's Battle Pets but I want to find the data for a pet that's not part of a specific character's collection.

Related

DialogFlow training phrase

I am building chatbot for universities. In the training phrase, how can I add the generic parameter without specify it. For example, if I need to ask the specific course offered this semester "Is CSCI1000 offered this semester?". And my database had more than 100 courses. So I need to type more than 100 training phrases for each courses with that question. Can I put it in generic form like this "Is course_name offered this semester?". course_name will match with the specific course name that user type in. I know DialogFlow is deprecated template mode. Do we have any other way to make it simpler? Please help.
In DialogFlow (DF) you can do more than that. Based on your provided information, let's assume you have 100 courses ID and names in your database. Here's the steps you should take to make DF recognize them:
Create an entity for your courses name (course_name)
Import course id (CSCI1000) as entity name (you can also import the name of the course as synonym, for situations where the user asks "is Computer Science offered this semester?"). You have to implement all this in your back-end
At this point you have an Entity with name all your courses from your database (so whenever the used types the name of that course DF will recognize it). Note that you can use other tricks for creating entity using regular expressions.
The final step, you have to create one intent 'Open courses' and and add Parameter, and for the entity use your created entity above (#course_name). Then type few training phrases. DF will detect courses id.
This is what came to my mind since I have done something similar before. For your reference Link to DOC

NER: Relate extracted entity to single real world concept

I am processing plain text documents and identifying entities like college/university names present in the document. Some times these names are written in different formats but they refer to a single college/university name.
Example:
Jawaharlal Nehru Technological University Hyderabad
J.N.T.U Hyderabad
JNTU Hyderabad
JNTU-H
Jawaharlal Nehru Technological University (JNTU) Hyderabad
All the above names refer to same college name.
How can we relate all these names to a single college/university names?
(I am looking for some kind of web service or something like Google search because if i search for any of those names it returns same college link.)
This task is named "Entity Linking". Some systems are dedicated to this, in most cases by leveraging Wikipedia (in particular redirects which give possible mentions for entities), such as Babelfy or DBpedia Spotlight.
Those service rely on data to link mentions to unique identifiers: if they have possible mentions for your entities, it should probably work in most cases (but for those that are to ambiguous). But in many cases their lexicon are not sufficient and you'll probably face unknown entities or mentions. In that case, you'll have to build your own system by using an existing framework and provide it with relevant database of entities and their mentions. Acronyms could be automatically generated from their full names.

How to put information from one database to a spesific form in another in Lotus notes

The aim is: to create two DB in the first should be information about all cities and streets, in another there should be an opportunity to fulfill the name, middle name and to choose town and street from the first DB. The problem is that I really don't understand how to put the information about town and street to this fields with an opportunity to choose.
Why have it in two different databases? Who came up with that design?
But it is not very hard to do, it just depends on exactly how you want it to work, if it is a Notes client application or a web application, etc.
Check #DBColumn and #DbLookup in the help, or possibly the GetDocumentByKey method of the NotesView class if you are using Lotusscript.
I suggest that you take some classes in how to develop for Lotus Notes, or pick up a book.

best way to model the following scenario

I am starting of in the world of DD and am attempting to build a simple enough application. I have a few questions on how I am choosing to model my domain.
My application allows users to order greeting cards.
The user can order any number of cards in one order.
When choosing a card to order they browse the card catalogue. THe card catalogue however is not stored locally, its retrieved from an external system, however every card they have browsed to in their current session will be cached locally in the database for the lifetime of that session in case they wish to add to the order.
When they add a card to the order, it goes on a new order line item. THey then must specify some other details for the order line item, colour, greeting etc...
My question is this:
How do I model the card in my domain. I have Order as an aggregate root, with many order line items. Each order line item will have certain attributes, and a card.
However my card catalogue will also have a card concept which will have the same properties as the card on my order line item.
Am I correct in modelling these cards as 2 seperate entities (CatalogueCard and OrderCard) even though they have the same set of properties?
The same question could be posed also for the address a card must be addressed to(each order line item will have an address) and the billing address for the order. Should these be modelled as completley seperate entities?
Thanks in advance
The fact that you're seeing business entity concepts repeated as you model your domain means that you're probably on the right track. But if you have two objects with the same set of attributes you should definitely just use one. CatalogueCard and OrderCard should be instance names, not class names, except if you expect some change then you can inherit from a base Card class. Same goes for your address class. Just use one address class. The address type should just be another attribute which could be an enum value of the types of addresses your model supports.

How to determine the aggregate root

I have an application in which an Engineer accesses gas wells. He can see a list of wells by choosing any combination of 7 characteristics. The characteristics are company, state, county, basin, branch, field, operator in their respective order. The application starts and I need to retrieve a list of companies. The companies the user sees is based on their security credentials. What would be my aggregate root/domain object which to base my repository. I first thought user, but I never retrieve anything about a user. The combination of those items and a couple of other attributes are collectively called wellheader information. Would that be the aggregate root or domain object for my repository?
Thanks in advance
With a short description like that, it can only be a quess on how your design could be.
As I read it, your are really interested in wells for a given engineer. (is the engineer the user you mention?)
So a first try could be to model the concept of a well as an aggregate root.
So maybe something like this:
ICollection<Well> wells = WellRepository.GetWellsForEngineer(engineerInstance);
Maybe your engineer is associated with a characteristics object.
Either way, you have to associate the engineer with wells in a given company, state and so on to be able to extract which wells the engineer is actualy assigned to.
If this dosen't help you, maybe you could elaborate on your domain.

Resources