Permalink
Fetching contributors…
Cannot retrieve contributors at this time
225 lines (129 sloc) 6.87 KB
#Mappings:
@prefix r2r: <http://www4.wiwiss.fu-berlin.de/bizer/r2r/> .
@prefix dbpedia-owl: <http://dbpedia.org/ontology/> .
@prefix fb: <http://rdf.freebase.com/ns/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix mo: <http://purl.org/ontology/mo/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix bio: <http://rdf.freebase.com/ns/> .
@prefix mp: <http://www4.wiwiss.fu-berlin.de/ldif/mappings/musicusecase/> .
#######################
### Simple mappings ###
#######################
# Simple one-to-one mappings are expressed with rdfs:subClassOf and rdfs:subPropertyOf
# which R2R converts to R2R mappings when reading the file.
# We only use rdfs:subPropertyOf and rdfs:subClassOf in order to express the direction of the mapping.
# Using equivalence would also map from the object to the subject schema entity.
######################
### Class Mappings ###
######################
#__________ to mo:MusicArtist, mo:MusicGroup, mo:SoloMusicArtist __________#
dbpedia-owl:MusicalArtist rdfs:subClassOf mo:MusicArtist .
mo:MusicArtist rdfs:subClassOf mo:MusicArtist .
mo:SoloMusicArtist rdfs:subClassOf mo:MusicArtist .
mo:SoloMusicArtist rdfs:subClassOf mo:SoloMusicArtist .
mo:MusicGroup rdfs:subClassOf mo:MusicGroup .
<http://rdf.freebase.com/ns/music.artist> rdfs:subClassOf mo:MusicArtist .
<http://rdf.freebase.com/ns/music.musical_group> rdfs:subClassOf mo:MusicGroup .
dbpedia-owl:Band rdfs:subClassOf mo:MusicGroup .
#__________ to mo:Record, dbpedia-owl:Album, dbpedia-owl:Single __________#
dbpedia-owl:Single rdfs:subClassOf mo:Record .
dbpedia-owl:Album rdfs:subClassOf mo:Record .
<http://rdf.freebase.com/ns/music.composition> rdfs:subClassOf mo:Record .
<http://rdf.freebase.com/ns/music.album> rdfs:subClassOf mo:Record .
<http://rdf.freebase.com/ns/music.single> rdfs:subClassOf mo:Record .
dbpedia-owl:MusicalWork rdfs:subClassOf mo:Record .
mo:Release rdfs:subClassOf mo:Record .
mo:Record rdfs:subClassOf mo:Record .
#__________ Performance __________#
#mo:Performance rdfs:subClassOf mo:Performance .
#__________ to mo:Label __________#
mo:Label rdfs:subClassOf mo:Label .
dbpedia-owl:RecordLabel rdfs:subClassOf mo:Label .
<http://rdf.freebase.com/ns/music.record_label> rdfs:subClassOf mo:Label .
#__________ to mo:Genre __________#
mo:Genre rdfs:subClassOf mo:Genre .
dbpedia-owl:MusicGenre rdfs:subClassOf mo:Genre .
<http://rdf.freebase.com/ns/music.genre> rdfs:subClassOf mo:Genre .
#########################
### Property Mappings ###
#########################
#__________ to rdfs:label __________#
foaf:name rdfs:subPropertyOf rdfs:label .
<http://rdf.freebase.com/ns/type.object.name> rdfs:subPropertyOf rdfs:label .
rdfs:label rdfs:subPropertyOf rdfs:label .
dc:title rdfs:subPropertyOf rdfs:label .
#__________ to foaf:nick, foaf:homepage __________#
#foaf:nick rdfs:subPropertyOf foaf:nick .
#foaf:homepage rdfs:subPropertyOf foaf:homepage .
#__________ to mo:similar_to __________#
#mo:similar_to rdfs:subPropertyOf mo:similar_to .
#__________ to mo:collaborated_with __________#
#<http://vocab.org/relationship/#collaborated_with> rdfs:subPropertyOf mo:collaborated_with .
#mo:collaborated_with rdfs:subPropertyOf mo:collaborated_with .
#dbpedia-owl:associatedBand rdfs:subPropertyOf mo:collaborated_with .
#dbpedia-owl:associatedArtist rdfs:subPropertyOf mo:collaborated_with .
#__________ to foaf:member __________#
foaf:member rdfs:subPropertyOf foaf:member .
dbpedia-owl:bandMember rdfs:subPropertyOf foaf:member .
#__________ to mo:performed __________#
#mo:performed rdfs:subPropertyOf mo:performed .
#__________ to dbpedia-owl:birthDate, dbpedia-owl:deathDate __________#
dbpedia-owl:birthDate rdfs:subPropertyOf dbpedia-owl:birthDate .
dbpedia-owl:deathDate rdfs:subPropertyOf dbpedia-owl:deathDate .
#__________ to dbpedia-owl:recordLabel __________#
dbpedia-owl:recordLabel rdfs:subPropertyOf dbpedia-owl:recordLabel .
<http://rdf.freebase.com/ns/music.artist.label> rdfs:subPropertyOf dbpedia-owl:recordLabel .
#__________ to dbpedia-owl:musicalArtist __________#
dbpedia-owl:musicalArtist rdfs:subPropertyOf dbpedia-owl:musicalArtist .
<http://rdf.freebase.com/ns/music.record_label.artist> rdfs:subPropertyOf dbpedia-owl:musicalArtist .
#__________ to dbpedia-owl:genre __________#
dbpedia-owl:genre rdfs:subPropertyOf dbpedia-owl:genre .
<http://rdf.freebase.com/ns/music.album.genre> rdfs:subPropertyOf dbpedia-owl:genre .
<http://rdf.freebase.com/ns/music.artist.genre> rdfs:subPropertyOf dbpedia-owl:genre .
#__________ to foaf:made __________#
foaf:made rdfs:subPropertyOf foaf:made .
<http://rdf.freebase.com/ns/music.artist.album> rdfs:subPropertyOf foaf:made .
#__________ to fb:influenced_by __________#
#<http://rdf.freebase.com/ns/influence.influence_node.influenced_by> rdfs:subPropertyOf <http://rdf.freebase.com/ns/influence.influence_node.influenced_by> .
####################
### R2R mappings ###
####################
mp:moToDBpediaAlbum
a r2r:Mapping ;
r2r:prefixDefinitions "mo: <http://purl.org/ontology/mo/>" ;
r2r:sourcePattern "?SUBJ a mo:Record . ?SUBJ mo:release_type mo:album" ;
r2r:targetPattern "?SUBJ a <http://dbpedia.org/ontology/Album> " .
mp:moToDBpediaSingle
a r2r:Mapping ;
r2r:prefixDefinitions "mo: <http://purl.org/ontology/mo/>" ;
r2r:sourcePattern "?SUBJ a mo:Record . ?SUBJ mo:release_type mo:single" ;
r2r:targetPattern "?SUBJ a <http://dbpedia.org/ontology/Single> " .
mp:moToFoafMember
a r2r:Mapping ;
r2r:prefixDefinitions "mo: <http://purl.org/ontology/mo/> . foaf: <http://xmlns.com/foaf/0.1/>" ;
r2r:sourcePattern "?SUBJ mo:member_of ?o" ;
r2r:targetPattern "?o foaf:member ?SUBJ " .
mp:freebaseToDBpediaBirthDate
a r2r:Mapping ;
r2r:prefixDefinitions "dbpedia-owl: <http://dbpedia.org/ontology/> ." ;
r2r:sourcePattern "?SUBJ <http://rdf.freebase.com/ns/people.person.date_of_birth> ?o" ;
r2r:targetPattern "?SUBJ dbpedia-owl:birthDate ?'o'^^xsd:date" .
mp:bioToDBpediaBirthDate
a r2r:Mapping ;
r2r:prefixDefinitions "bio: <http://rdf.freebase.com/ns/> . dbpedia-owl: <http://dbpedia.org/ontology/> . foaf: <http://xmlns.com/foaf/0.1/>" ;
r2r:sourcePattern "?SUBJ a foaf:Person . ?SUBJ bio:event ?event . ?event a bio:Birth . ?event bio:date ?o" ;
r2r:targetPattern "?SUBJ dbpedia-owl:birthDate ?'o'^^xsd:date" .
mp:dbpediaAlbumToFoafMade
a r2r:Mapping ;
r2r:prefixDefinitions "dbpedia-owl: <http://dbpedia.org/ontology/> . foaf: <http://xmlns.com/foaf/0.1/>" ;
r2r:sourcePattern "?SUBJ a dbpedia-owl:MusicalArtist . ?SUBJ dbpedia-owl:album ?o" ;
r2r:targetPattern "?SUBJ foaf:made ?o" .
mp:dbpediaWriterToMade
a r2r:Mapping ;
r2r:prefixDefinitions "dbpedia-owl: <http://dbpedia.org/ontology/> . foaf: <http://xmlns.com/foaf/0.1/>" ;
r2r:sourcePattern "?SUBJ dbpedia-owl:writer ?o " ;
r2r:targetPattern "?o foaf:made ?SUBJ " .