Discussions on Developing Applications
Start a New Discussion
-
-
Hi all, thank you for checking out this post. I am a new user to Freebase and I need some assistence.
I am tasked with a project of obtaining information for dog breeds. Typing into the search box for dog breeds I get a nice relational tabled representation of the data with the name and breed group. Clicking on one of the dog names itself gives me a little further information such as it's height and temperment.
Although if I search for Hypoallergenic Dogs, that base exposes other information immediately, such as their height.
What it comes down to is I need a way to pull this set of criteria (although it seems that Freebase does not have some of this data yet):
dog name, most popular by city, size, excercise needs, temperment, coat length, group, life span, energy level, hypo allergenic, family friendly and apartment friendly.
I've also noticed from runing some of the example queries from the help area, that data comes out as a hierarchical model rather than a relational model used by SQL or Excel. Is there a way to convert this into a kind of tabled form such as if you were to use the search bar on the top right?
Thank you in advance.
-
Create the table that you want with the right filters and right columns displayed, then click on the little gear icon on the top and select "Download as a file."
Don't forget that the Terms of Service require attribution back to Metaweb/Freebase.
Not sure what you mean about the heirarchical vs relational, but the database isn't either really. If you're talking about the information displayed on a topic page in Label: Value form, you can get all that to come out in table views as well with the appropriate amount fiddling about the the table settings (click Edit View and add additional types/columns).
For data that's missing, feel free to add it if you've got a good source that's license compatible.
-
-
-
Tim Kientzle wrote on the developers mailing list:
1) The production site (freebase.com) has a much lower default limit on the amount of
data a single user can write per day. This can be adjusted on a per-
user basis, though; please let us know if you need that.
2) Sandbox data is discarded every Monday and replaced with a fresh
copy of the production database (including account and authentication
data).
3) Sandbox receives new software images a couple of days in advance of
the production site.
-
More recently I was told that there are no write quotas enforced at all on the sandbox currently.
Also, the snapshot process starts in the morning so anything that is desired for the week's snapshot should be written to the production server by 6 am PDT. The resulting snapshot will usually be live between 4 pm and 6 pm PDT (GMT-8)
-
-
-
hello,
im working on an application that uses freebase. So far i've worked out how to search for a type. But is there a way to search for a property of a type??
-
Certainly there is. What are you looking for in particular?
-
for example.
lets say i have a base called Base
Base has a type called Base Type (id is base_type)
and Base Type has a property called Type Property (id is type_property)
I know how to search for Base Type, but i dont know how to search for Type Property.
So maybe i do a search and write "hello", i want to search to find all Type Property in my base that have a value "hello"
Does this make sense? How can i do that?
-
OK, first off, are you using our "search" API (/api/service/search) or our "mqlread" API (/api/service/mqlread)? It sounds like you probably want to be using mqlread, so if that's not what you're doing, it should be.
mqlread will return the results of any MQL query. MQL is our query language used to query our whole database, including metadata about the database. You can learn about MQL in our MQL Reference Guide and experiment with queries using our Query Editor.
It sounds like you're interested in queries to do with the structure of your types, properties, etc. That is, rather than asking questions like "Show me all people born in California whose profession is lawyer" you're asking for things like "Show me the names of all the properties on Person". If that's what you're doing, you might like to look at our Schema Introspection Cookbook, which gives some recipes for queries of that kind.
-
for some reason i cant see your full reply.
But anyway im using the search api
-
ok now i can see the full reply.
thank you...i'll look into that :)
-
,one more question,
with the search api, you can search part of the name. for example if i wanna seach for the music album "hello how are you", i can type hello and it will find it.
Im assuming that with mql read i wont be able to do that? i will have to write the whole album name, right?
-
The answer should be in the MQL reference Guide.
-
You can use wildcards and textual comparisons with any search. Check out sections 3.4 (Property Names in MQL Queries) and 3.6 (MQL Operators) of the MQL Reference Guide for more info.
-
thanks philg, that was a great help :)
what i've managed to do is print out the value of the properties of a certain type.
Just a question though.
Say i have a type called Type, which has two properties : prop1 and prop2.
And then i've made a topic called MyTopic.
So i did a mql read to get the values of prop1 and prop2.
But how do i get that little description that goes at the start of the topic?
I know that its "article" under type /common/topic. But if my query is getting the properties, then the type is /MyBase/MyType, meaning i cant get that description.
Will i have to do two seperate queries? or is there a way of combing the two?
Cheers
-
-
-
-
I need to obtain data across multiple guid's within a single query. E.g. this simple query gets the name for a single guid. Is there a way to pass in multiple IDs to get back information on each? I.e. I don't want to perform 100's of individual queries.
{
"id" : "/guid/9202a8c04000641f800000000023907a",
"name" : null,
}
Thanks,
biosopher-
Your excellent question here (and also on the Query Builder page) might already be answered in the archives of the App developers mail list (linked to on the App page). In fact I know the question about getting the description was answered recently on one of our two mail lists.
-
Thanks for the pointer gmackenz. I was searching for the wrong terms and getting zero results. You pointed me in the right direction:
http://www.freebase.com/api/trans/raw/guid/9202a8c04000641f80000000001170a3
http://www.freebase.com/api/trans/blurb/guid/9202a8c04000641f80000000001170a3
http://www.freebase.com/api/trans/blurb/guid/9202a8c04000641f800000000038e04d?maxlength=300As discussed in detail here
http://markmail.org/message/fot76nyzeprvsgly#query:+page:1+mid:hkzgwbs6pbznui4w+state:results
http://markmail.org/message/fot76nyzeprvsgly#query:freebase.com%20API%2Ftrans+page:1+mid:balofou7axzv53vr+state:resultsThanks,
biosopher
-
-
-
Helo all,
I am trying to analyze user define types in freebase - types defined the users in their default domains or user defined domains, not yet promoted to the standard freebase domains. I have been trying to make up an MQL for that but it doesn't seem to be easy (as I cannot do pattern matching on the "id"). Any ideas?
-
-
-
I'm writing a small app on FreeBase.
I'm trying to build a category tree which shows the main categories (sports, arts & crafts, etc.) and lets the user drill down to additional sub categories.
Is there something like this already built which I can use?
I notice that I can get a list of the categories for "Sports" like this:
{ "query" : [ { "domains" : [ { "id" : null, "name" : null, "type" : "/type/domain" } ], "name" : "Sports", "type" : "/freebase/domain_category" } ]}
but I can't figure out how to get a list of categories under "Sports/Basketball"-
Sports is a "domain category", which has a list of domains (via a property). Sports/Basketball (id: /Basketball) is a domain, and when you say a "list of categories" in that domain, you're referring to the types in that domain. So, the query to look up types in a specific domain by id /Basketball is:
{
"query" : [
{
"id" : "/basketball",
"type" : "/type/domain",
"types" : [
{
"id" : null,
"name" : null,
"type" : "/type/type"
}
]
}
]
}
-
-
-
No mention of the WWW::Metaweb Perl Module?
-
No, and I don’t think any other community-created modules are mentioned here either. Someone has added a Python client to the list of Freebase Application instances; you could add WWW::Metaweb there, too.
-
-
-
-
In Chapter 5, it is mentioned that there is an argument for the mqlwrite (possibly mqlread too?) service which specifies the default language for the text values, but it is not documented anywhere. Is there such an argument and if yes, what is its usage?
-
Though the infrastructure is there for supporting multiple languages when you specifically ask for values, we haven't yet implemented the full support for being able to specify the language in the query envelope.
When that is implemented, you'll be able to say something along the lines of:
{"lang": "/lang/es",
"query": {"id": "/foo/bar", "name": null}}
to get the spanish name of /foo/bar
We'll be sure to make a large announcment when there is significant progress on this front.
-
-
-
-
-