Metaschema

From Freebase

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
{{Stub}}
+
= Overview =
-
[http://metatopic.freebaseapps.com/about Metaschema] is an effort to describe properties (or paths formed through the use of multiple properties) in terms of more general relationships.
+
[[File:Metaschema-map-schema.png|right|x500px]]
 +
 
 +
Metaschema is an effort to describe properties (or paths formed through the use of multiple properties) in terms of more general relationships.
 +
 
 +
For instance, Freebase provides the property /film/director/film that identifies what film's a Film Director has directed. But more generally a Film Director can be viewed as having "ContibutedTo" the film. In simple cases like this, Metaschema is similar in concept to "super-properties" used in other semantic systems. But Metaschema predicates can also represent the higher-order relationships that span multiple properties. For instance, while the a Film Actor's relationship to a Film is mediated by a Film Performance object, Metaschema recognizes that the path from an Actor using the property /film/actor/film to a Film Performance and the property /film/performance/film to a Film represents another form of "ContributedTo," similar to that of the director.
 +
 
 +
These higher-order relationships are viewed as directional. Just as a film director "ContributedTo" a film, a film "HasContributors" which include the director, actors and other crew members. However, some higher-order relationships are viewed as reflexive, meaning the relationship is the same in both directions as in peer like relationships. Tony Scott is the brother of Ridley Scott and are each a "PeerOf" the other.
 +
 
 +
= Properties =
 +
 
 +
Currently over 3500 properties in Freebase have been mapped to 46 higher-order Metaschema patterns. The relationships between Freebase Properties and Metaschema patterns are documented as data in Freebase itself at fbontology.freebase.com. The diagram on the right illustrates the form of the data model.
 +
 
 +
<table><tr><td style="padding: 2px 40px 2px 0;">
 +
 
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/abstract_concrete Abstract/Concrete]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/adaptation Adaptation]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/administration Administration]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/broader_narrower Broader/Narrower]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/categorical Categorical]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/certification Certification]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/characterappearance Character Appearance]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/characterportrayal Character Portrayal]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/composition Composition]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/contribution Contribution]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/creation Creation]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/discovery Discovery]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/distribution Distribution]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/event_location Event/Location]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/exhibition Exhibition]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/fictional Fictional]
 +
 
 +
</td><td style="padding: 2px 40px 2px 0;">
 +
 
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/genre Genre]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/identifier Identifier]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/leadership Leadership]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/location Location]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/meansofdemise Means of Demise]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/meansofexpression Means of Expression]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/measurement Measurement]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/membership Membership]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/name Name]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/ownership Ownership]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/organizationalcenter Organizational Center]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/parent_child Parent/Child]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/participation Participation]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/peer Peer]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/permitteduse Permitted Use]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/placeofoccurrence Place of Occurrence]
 +
 
 +
</td><td style="padding: 2px 0;">
 +
 
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/placeoforigin Place of Origin]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/practitioner Practitioner]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/production Production]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/publication Publication]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/series Series]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/servicearea Service Area]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/status Status]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/subject Subject]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/succession Succession]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/superclass_subclass Superclass/Subclass]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/symbol Symbol]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/timepoint Time Point]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/title Title]
 +
* [http://www.freebase.com/view/base/fbontology/metaschema/relationship_id/whole_part Whole/Part]
 +
 
 +
</td></tr></table>
 +
 
 +
<!--[http://www.freebase.com/view/base/fbontology/semantic_relationship Browse all Metaschema relations]-->
 +
 
 +
= Search Filters =
 +
 
 +
The [[ApiSearch|Search service]] supports Metaschema as a way of filtering search results.
 +
 
 +
===Female African American lawyers===
 +
  filter=(all category:female category:"african american" practitioner_of:lawyer)
 +
 
 +
[https://www.googleapis.com/freebase/v1/search?filter=%28all%20category:female%20category:%22african%20american%22%20practitioner_of:lawyer%29&indent=true Try it out]
 +
 
 +
===Retreating Swiss glaciers===
 +
  filter=(all type:glacier status:retreating part_of:switzerland)
 +
 
 +
[https://www.googleapis.com/freebase/v1/search?filter=%28all%20type:glacier%20status:retreating%20part_of:switzerland%29&indent=true Try it out]
 +
 
 +
===Google engineers===
 +
  filter=(all title:engineer member_of:google)
 +
 
 +
[https://www.googleapis.com/freebase/v1/search?filter=%28all%20title:engineer%20member_of:google%29&indent=true Try it out]
 +
 
 +
= MQL Queries =
 +
 
 +
Using this model you can ask whether there is a Metaschema description for a specific propety using a query of the form:
 +
 
 +
<pre class="mqlquery">[{
 +
  "name": null,
 +
  "type": "/base/fbontology/semantic_predicate",
 +
  "paths": {
 +
    "properties": "/film/director/film"
 +
  }
 +
}]</pre>
 +
 
 +
Note that because a property could participate in one or more multi-property path a more prudent query would be:
 +
 
 +
<pre class="mqlquery">[{
 +
  "name": null,
 +
  "type": "/base/fbontology/semantic_predicate",
 +
  "paths": {
 +
    "a:properties": "/film/actor/film",
 +
    "b:properties":[{"id":null}]
 +
  }
 +
}]</pre>
 +
 
 +
Which indicates that there are two paths which start with the property /film/actor/film - one representing the path for the actors ContributionTo films, the other which represents characters the actor has "Portrayed."
 +
 
 +
= Learn More =
 +
 
 +
{{#widget:YouTube|id=1oCeLaCjfO0}}
 +
 
 +
 
 +
[[Category:Semantic web]]
 +
[[Category:Glossary]]
[[Category:Semantic web]]
[[Category:Semantic web]]
[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 00:31, 13 December 2011

Contents

Overview

Metaschema-map-schema.png

Metaschema is an effort to describe properties (or paths formed through the use of multiple properties) in terms of more general relationships.

For instance, Freebase provides the property /film/director/film that identifies what film's a Film Director has directed. But more generally a Film Director can be viewed as having "ContibutedTo" the film. In simple cases like this, Metaschema is similar in concept to "super-properties" used in other semantic systems. But Metaschema predicates can also represent the higher-order relationships that span multiple properties. For instance, while the a Film Actor's relationship to a Film is mediated by a Film Performance object, Metaschema recognizes that the path from an Actor using the property /film/actor/film to a Film Performance and the property /film/performance/film to a Film represents another form of "ContributedTo," similar to that of the director.

These higher-order relationships are viewed as directional. Just as a film director "ContributedTo" a film, a film "HasContributors" which include the director, actors and other crew members. However, some higher-order relationships are viewed as reflexive, meaning the relationship is the same in both directions as in peer like relationships. Tony Scott is the brother of Ridley Scott and are each a "PeerOf" the other.

Properties

Currently over 3500 properties in Freebase have been mapped to 46 higher-order Metaschema patterns. The relationships between Freebase Properties and Metaschema patterns are documented as data in Freebase itself at fbontology.freebase.com. The diagram on the right illustrates the form of the data model.


Search Filters

The Search service supports Metaschema as a way of filtering search results.

Female African American lawyers

 filter=(all category:female category:"african american" practitioner_of:lawyer)

Try it out

Retreating Swiss glaciers

 filter=(all type:glacier status:retreating part_of:switzerland)

Try it out

Google engineers

 filter=(all title:engineer member_of:google)

Try it out

MQL Queries

Using this model you can ask whether there is a Metaschema description for a specific propety using a query of the form:

[{
  "name": null,
  "type": "/base/fbontology/semantic_predicate",
  "paths": {
    "properties": "/film/director/film"
  }
}]

Note that because a property could participate in one or more multi-property path a more prudent query would be:

[{
  "name": null,
  "type": "/base/fbontology/semantic_predicate",
  "paths": {
    "a:properties": "/film/actor/film",
    "b:properties":[{"id":null}]
  }
}]

Which indicates that there are two paths which start with the property /film/actor/film - one representing the path for the actors ContributionTo films, the other which represents characters the actor has "Portrayed."

Learn More

Personal tools