Revision 52:e0e12bd2978d common/TypeRegistrar.cpp
| common/TypeRegistrar.cpp | ||
|---|---|---|
| 152 | 152 |
store->addPrefix("property", mapping->getPropertyPrefix());
|
| 153 | 153 |
store->addPrefix("rel", mapping->getRelationshipPrefix());
|
| 154 | 154 |
|
| 155 |
store->add(Triple("classical:Composer", "a", store->expand("owl:Class")));
|
|
| 156 |
store->add(Triple("classical:Composer", "rdfs:subClassOf", store->expand("mo:MusicArtist")));
|
|
| 155 |
store->add(Triple(store->expand("classical:Composer"), store->expand("a"), store->expand("owl:Class")));
|
|
| 156 |
store->add(Triple(store->expand("classical:Composer"), store->expand("rdfs:subClassOf"), store->expand("mo:MusicArtist")));
|
|
| 157 | 157 |
|
| 158 |
store->add(Triple("property:birth", "a", store->expand("owl:ObjectProperty")));
|
|
| 159 |
store->add(Triple("property:birth", "rdfs:subPropertyOf", store->expand("bio:event")));
|
|
| 158 |
store->add(Triple(store->expand("property:birth"), store->expand("a"), store->expand("owl:ObjectProperty")));
|
|
| 159 |
store->add(Triple(store->expand("property:birth"), store->expand("rdfs:subPropertyOf"), store->expand("bio:event")));
|
|
| 160 | 160 |
|
| 161 |
store->add(Triple("property:death", "a", store->expand("owl:ObjectProperty")));
|
|
| 162 |
store->add(Triple("property:death", "rdfs:subPropertyOf", store->expand("bio:event")));
|
|
| 161 |
store->add(Triple(store->expand("property:death"), store->expand("a"), store->expand("owl:ObjectProperty")));
|
|
| 162 |
store->add(Triple(store->expand("property:death"), store->expand("rdfs:subPropertyOf"), store->expand("bio:event")));
|
|
| 163 | 163 |
|
| 164 | 164 |
mapping->addTypeMapping("ClassicalData::Composer", store->expand("classical:Composer"));
|
| 165 | 165 |
mapping->addPropertyMapping("ClassicalData::Composer", "pages", store->expand("foaf:page"));
|
Also available in: Unified diff