One tiny freebase schema example

0 views
Skip to first unread message

jack

unread,
Nov 5, 2009, 9:27:40 PM11/5/09
to bibjson

I created a domain for bkn in a freebase user account called bkn. I
create only a few types so far. There are a lot of decisions to be
made regarding how we want to represent the schema in freebase. The
primary decisions to be made are how much of the existing "common"
freebase we use.

Another decision is to what degree do we want to wrap properties so
that we can add whatever metadata we want to a property instance. This
would be like having the ability to add metadata to a BibJSON "ref".

We also need to decide what we want to call the domain. I will try to
get "bkn" the current "bibliographicknowledgenetwork" is temporary.

For an initial test I created types:

author
organization
affiliation
department
(freebase automatically adds a topic type to a domain)

I created one author instance with one affiliation. To query for
jim_pitman author data I can do,

[{
"affiliation": [{
"organization": {
"name": null,
"id": null
},
"department": {
"name": null,
"id": null
}
}],
"id": "/en/jim_pitman",
"type": "/base/bibliographicknowledgenetwork/author"
}]


the result would be,

{
"code": "/api/status/ok",
"result": [{
"affiliation": [{
"department": {
"id": "/en/statistics",
"name": "Statistics"
},
"organization": {
"id": "/en/university_of_california_berkeley",
"name": "University of California, Berkeley"
}
}],
"id": "/en/jim_pitman",
"type": "/base/bibliographicknowledgenetwork/author"
}],
"status": "200 OK",
"transaction_id": "cache;cache01.p01.sjc1:8101;2009-11-06T02:20:17Z;
0016"
}




To query for some info about all schema in the domain you can do,

[{
"id": "/base/bibliographicknowledgenetwork",
"types": [{
"properties": [{
"expected_type": {
"name": null
},
"name": null,
"id": null
}],
"name": null,
"id": null
}],
"type": "/type/domain"
}]

and get this result,

{
"code": "/api/status/ok",
"result": [{
"id": "/base/bibliographicknowledgenetwork",
"type": "/type/domain",
"types": [
{
"id": "/base/bibliographicknowledgenetwork/topic",
"name": "Topic",
"properties": [
{
"expected_type": {
"name": "Text"
},
"id": "/base/bibliographicknowledgenetwork/topic/alias",
"name": "Also known as"
},
{
"expected_type": {
"name": "Document"
},
"id": "/base/bibliographicknowledgenetwork/topic/
article",
"name": "article"
},
{
"expected_type": {
"name": "Image"
},
"id": "/base/bibliographicknowledgenetwork/topic/image",
"name": "image"
},
{
"expected_type": {
"name": "Webpage"
},
"id": "/base/bibliographicknowledgenetwork/topic/
webpage",
"name": "Web Link(s)"
},
{
"expected_type": {
"name": "Topic"
},
"id": "/base/bibliographicknowledgenetwork/topic/
subjects",
"name": "Subjects"
},
{
"expected_type": {
"name": "Topic"
},
"id": "/base/bibliographicknowledgenetwork/topic/
subject_of",
"name": "Subject of"
}
]
},
{
"id": "/base/bibliographicknowledgenetwork/author",
"name": "Author",
"properties": [
{
"expected_type": {
"name": "Webpage"
},
"id": "/base/bibliographicknowledgenetwork/author/
homepage",
"name": "Homepage"
},
{
"expected_type": {
"name": "Webpage"
},
"id": "/base/bibliographicknowledgenetwork/author/
profile",
"name": "Profile"
},
{
"expected_type": {
"name": "Affiliation"
},
"id": "/base/bibliographicknowledgenetwork/author/
affiliation",
"name": "Affiliation"
}
]
},
{
"id": "/base/bibliographicknowledgenetwork/affiliation",
"name": "Affiliation",
"properties": [
{
"expected_type": {
"name": "Author"
},
"id": "/base/bibliographicknowledgenetwork/affiliation/
member",
"name": "Author"
},
{
"expected_type": {
"name": "Department"
},
"id": "/base/bibliographicknowledgenetwork/affiliation/
department",
"name": "Department"
},
{
"expected_type": {
"name": "Organization"
},
"id": "/base/bibliographicknowledgenetwork/affiliation/
organization",
"name": "Organization"
}
]
},
{
"id": "/base/bibliographicknowledgenetwork/organization",
"name": "Organization",
"properties": [{
"expected_type": {
"name": "Affiliation"
},
"id": "/base/bibliographicknowledgenetwork/organization/
author",
"name": "Author"
}]
}
]
}],
"status": "200 OK",
"transaction_id": "cache;cache01.p01.sjc1:8101;2009-11-06T02:05:43Z;
0007"
}




To query for every bit of detail about the domain you can query with:

[{
"id": "/base/bibliographicknowledgenetwork",
"types": [{*}]
"type": "/type/domain"
}]


the result is includes instance data:

{
"code": "/api/status/ok",
"result": [{
"id": "/base/bibliographicknowledgenetwork",
"type": "/type/domain",
"types": [
{
"attribution": "/user/bkn",
"creator": "/user/bkn",
"default_property": null,
"domain": "/base/bibliographicknowledgenetwork",
"expected_by": [],
"extends": [],
"guid": "#9202a8c04000641f800000000fe07df3",
"id": "/base/bibliographicknowledgenetwork/topic",
"instance": [
"Jim Pitman",
null,
null,
"University of California, Berkeley",
"Statistics"
],
"key": [
"topic"
],
"name": "Topic",
"permission": "/guid/9202a8c04000641f800000000fe07dda",
"properties": [
"/base/bibliographicknowledgenetwork/topic/alias",
"/base/bibliographicknowledgenetwork/topic/article",
"/base/bibliographicknowledgenetwork/topic/image",
"/base/bibliographicknowledgenetwork/topic/webpage",
"/base/bibliographicknowledgenetwork/topic/subjects",
"/base/bibliographicknowledgenetwork/topic/subject_of"
],
"search": [],
"timestamp": "2009-11-05T17:40:58.0039Z",
"type": [
"/type/type"
]
},
{
"attribution": "/user/bkn",
"creator": "/user/bkn",
"default_property": null,
"domain": "/base/bibliographicknowledgenetwork",
"expected_by": [
"/base/bibliographicknowledgenetwork/affiliation/member"
],
"extends": [],
"guid": "#9202a8c04000641f800000000fe15c3c",
"id": "/base/bibliographicknowledgenetwork/author",
"instance": [
"Jim Pitman"
],
"key": [
"author"
],
"name": "Author",
"permission": "/guid/9202a8c04000641f800000000fe07dda",
"properties": [
"/base/bibliographicknowledgenetwork/author/homepage",
"/base/bibliographicknowledgenetwork/author/profile",
"/base/bibliographicknowledgenetwork/author/affiliation"
],
"search": [],
"timestamp": "2009-11-05T22:43:34.0000Z",
"type": [
"/type/type"
]
},
{
"attribution": "/user/bkn",
"creator": "/user/bkn",
"default_property": null,
"domain": "/base/bibliographicknowledgenetwork",
"expected_by": [
"/base/bibliographicknowledgenetwork/author/affiliation",
"/base/bibliographicknowledgenetwork/organization/author"
],
"extends": [],
"guid": "#9202a8c04000641f800000000fe15c72",
"id": "/base/bibliographicknowledgenetwork/
affiliation",
"instance": [
null,
null
],
"key": [
"affiliation"
],
"name": "Affiliation",
"permission": "/guid/9202a8c04000641f800000000fe07dda",
"properties": [
"/base/bibliographicknowledgenetwork/affiliation/member",
"/base/bibliographicknowledgenetwork/affiliation/
department",
"/base/bibliographicknowledgenetwork/affiliation/
organization"
],
"search": [],
"timestamp": "2009-11-05T22:47:27.0000Z",
"type": [
"/type/type"
]
},
{
"attribution": "/user/bkn",
"creator": "/user/bkn",
"default_property": null,
"domain": "/base/bibliographicknowledgenetwork",
"expected_by": [
"/base/bibliographicknowledgenetwork/affiliation/department"
],
"extends": [],
"guid": "#9202a8c04000641f800000000fe15c82",
"id": "/base/bibliographicknowledgenetwork/
department",
"instance": [
"Statistics"
],
"key": [
"department"
],
"name": "Department",
"permission": "/guid/9202a8c04000641f800000000fe07dda",
"properties": [],
"search": [],
"timestamp": "2009-11-05T22:47:28.0000Z",
"type": [
"/type/type"
]
},
{
"attribution": "/user/bkn",
"creator": "/user/bkn",
"default_property": null,
"domain": "/base/bibliographicknowledgenetwork",
"expected_by": [
"/base/bibliographicknowledgenetwork/affiliation/
organization"
],
"extends": [],
"guid": "#9202a8c04000641f800000000fe16414",
"id": "/base/bibliographicknowledgenetwork/
organization",
"instance": [
"University of California, Berkeley"
],
"key": [
"organization"
],
"name": "Organization",
"permission": "/guid/9202a8c04000641f800000000fe07dda",
"properties": [
"/base/bibliographicknowledgenetwork/organization/author"
],
"search": [],
"timestamp": "2009-11-06T00:00:40.0000Z",
"type": [
"/type/type"
]
}
]
}],
"status": "200 OK",
"transaction_id": "cache;cache01.p01.sjc1:8101;2009-11-06T01:32:18Z;
0012"
}

Benjamin Kalish

unread,
Nov 5, 2009, 11:30:09 PM11/5/09
to bib...@googlegroups.com
Hi Jack,

As I'm coming to this a little late in the game I'm afraid I'm not aware of what the relation between BKN and Freebase is meant to be. Can you explain this, or point me to a source which would offer a good explanation? I gather from your example below that we want to get BibJSON data to live on Freebase, but how will this eventually be used? Will Freebase and BKN be using BibJSON as an interchange format for bibliographic data? And will data be exchanged in both directions, or will only one of these systems be a source which is harvested by the other?

I'm sorry if my questions seem naive. So far I have been focussing on metadata issues with little attention to the larger world of BKN.

Thanks!

Benjamin Kalish
4 Lawn Ave, Apt 2L
Northampton, MA  01060-2221
Phone: 413-687-7738
Email: bka...@gmail.com

pitman

unread,
Nov 6, 2009, 12:01:09 AM11/6/09
to bibjson


On Nov 5, 8:30 pm, Benjamin Kalish <bkal...@gmail.com> wrote:

> what the relation between BKN and Freebase is meant to be. Can you explain
> this, or point me to a source which would offer a good explanation?

OK, let me try to field this. I am interested in leveraging the
Freebase UI for reconciliation of records in BKN.
So I am happy to see any BKN dataset embedded in Freebase, and let it
develop there how it may, so
entities in BKN datasets may be connected to other entities in FB
including ones from other BKN datasets.
BKN nodes may then aquire more data by querying FB and selecting from
the results. I dont know exactly
how this will work. But the FB MQL language looks easy to work with
and close in spirit to BibJSON so I think its worth experimenting a
bit with data exchange with FB to see how it plays out.
> I gather
> from your example below that we want to get BibJSON data to live on
> Freebase, but how will this eventually be used? Will Freebase and BKN be
> using BibJSON as an interchange format for bibliographic data?

I expect we will setup some limited map between suitable portions of
BibJSON and suitable FB Schemas.
First up we should look at person/affiliation/homepage data. FB
support of article data is currently primitive.
But we may be able to persuade FB to support some BKN standard for
article data after demonstrating value of the connection for people
data which where we should be able to connect the schemas more easily
and usefully.

> be exchanged in both directions, or will only one of these systems be a
> source which is harvested by the other?
I'm interested in both directions.
--Jim

Benjamin Kalish

unread,
Nov 6, 2009, 7:16:09 PM11/6/09
to bib...@googlegroups.com
Thanks Jim, your reply gives me a better sense of how this might eventually work. I'll be interested to see how this aspect of the project evolves! I imagine that this kind of partnership will have a significant effect on the kind of dataset metadata we require, so I'll keep that in mind as I read over the spec.

Benjamin Kalish
Reply all
Reply to author
Forward
0 new messages