public
Description: Homepage/notes
Homepage:
Clone URL: git://github.com/mhermans/mhermans.github.com.git
mhermans.github.com / code / fb-abbrev.ttl
100644 80 lines (70 sloc) 3.952 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fb: <http://rdf.freebase.com/ns/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
 
# Turtle syntax aggregated and parsed from FB on 2009-01-03
 
# (a) The base FB Person-type
fb:people.person
    fb:freebase.type_profile.equivalent_topic fb:en.person ;
    fb:type.object.name "Person" ;
    fb:type.type.instance fb:en.jack_abramoff ;
    a fb:type.type .
 
# (b) The base FB Class-type
fb:base.ontologies.ontology_class
    fb:type.object.name "Ontology Class" ;
    fb:type.type.instance fb:en.person ;
    fb:type.type.properties fb:base.ontologies.ontology_class.equivalent_classes ;
    a fb:freebase.type_profile,
        fb:type.type .
 
# (c) Instance of the class-type (b), i.c.a Person FB Class-type. This
# class type is related to the equivalent FB Person type (a) through
# a equivalent_type property *to* the type, and a equivalent_topic
# property *from* the type. This later property requires cooperation
# from the type-owner.
fb:en.person
    fb:freebase.equivalent_topic.equivalent_type fb:people.person ;
    fb:type.object.name "Person" ;
    fb:type.type.instance fb:en.angela_bassett ;
    a fb:base.ontologies.ontology_class,
        fb:base.ontologies.topic,
        fb:freebase.equivalent_topic .
 
# (d) FB (object) property relating a X to the mapping node (e) containing the
# external class-uri.
fb:base.ontologies.ontology_class.equivalent_classes
    fb:type.object.name "Equivalent Classes" ;
    fb:type.property.expected_type fb:base.ontologies.ontology_class_mapping ;
    fb:type.property.master_property fb:base.ontologies.ontology_class_mapping.freebase_topic ;
    a fb:type.property .
 
# (e) A kind of nexus type, containing the actual mapping between the external Class-uri
# (as a value of the uri-property) and the FB topic (b) (as a value of the freebase_topic-
# property).
fb:base.ontologies.ontology_class_mapping
    fb:type.object.name "Ontology Class Mapping" ;
    fb:type.type.expected_by fb:base.ontologies.ontology.equivalent_classes,
                                fb:base.ontologies.ontology_class.equivalent_classes ;
    fb:type.type.instance fb:guid.9202a8c04000641f8000000008c9848f ;
    fb:type.type.properties fb:base.ontologies.ontology_class_mapping.freebase_topic,
                                fb:base.ontologies.ontology_class_mapping.ontology,
                                fb:base.ontologies.ontology_class_mapping.uri ;
    a fb:freebase.type_profile,
        fb:type.type .
 
# (f) Example of a ontology_class_mapping (e), i.c. between foaf:Person and fb:en.person.
# This is itself a FB topic
fb:guid.9202a8c04000641f8000000008c9848f
    fb:base.ontologies.ontology_class_mapping.freebase_topic fb:en.person ;
    fb:base.ontologies.ontology_class_mapping.ontology fb:en.foaf ;
    fb:base.ontologies.ontology_class_mapping.uri "http://xmlns.com/foaf/0.1/Person" ;
    fb:guid.9202a8c04000641f8000000008ce5fbc "foaf" ;
    a fb:base.ontologies.ontology_class_mapping,
        fb:base.ontologies.topic,
        fb:common.topic .
 
# This is a property relating an instance of a class mapping (e) with the prefix of the
# external ontology we are mapping to. Don't know why the propery-sting itself is so opaque...
fb:guid.9202a8c04000641f8000000008ce5fbc
    fb:type.object.name "Ontology Namespace" ;
    a fb:type.property .
 
# Summary:
# FB Type ---equivalent_topic---> Instance(b) ---equivalent_classes---> Instance(e) ---uri---> <external Class-URI>
# ^-------equivalent_type-------
#
# fb:people.person ---equivalent_topic---> fb:en.person ---equivalent_classes---> fb:guid.920~ ---uri--> foaf:Person