Semantic Federation of Music and Music-Related Information for Establishing a Personal Music Knowledge Base
#Can be described by the Property Reification Vocabulary |
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix cco: <http://purl.org/ontology/cco/core#> .
@prefix wo: <http://purl.org/ontology/wo/core#> .
@prefix ex: <http://example.org/> .
ex:APerson
a foaf:Person ;
foaf:name "John Wayne" ;
cco:skill <http://dbpedia.org/resource/Football> ;
cco:expertise <http://dbpedia.org/resource/Football> ;
cco:interest <http://dbpedia.org/resource/Football> ;
cco:habit [
a cco:CognitiveCharacteristic ;
cco:topic <http://dbpedia.org/resource/Football> ;
cco:characteristic cco:skill ;
wo:weight [
a wo:Weight ;
wo:weight_value 6.0 ;
wo:scale ex:AScale
] ;
cco:activity <http://sw.opencyc.org/concept/Mx4rwJRiEpwpEbGdrcN5Y29ycA>
] ;
...
public static void createPlayCounter(Model model, int playCount,
String playCounterTitle, Resource mediaObject)
{
Resource playCounter = ModelUtil.generateRandomResource(model);
model.addStatement(playCounter, RDF.type, PBO.PlayBackCounter);
addIntegerLiteral(model, playCounter, CO.count, playCount);
addStringLiteral(model, playCounter, DC.title, playCounterTitle);
model.addStatement(playCounter, PBO.media_object, mediaObject);
}
@prefix prv: <http://purl.org/ontology/prv/core#> .
@prefix cco: <http://purl.org/ontology/cco/core#> .
@prefix ex: <http://example.org/> .
ex:SkillReification a prv:PropertyReification ;
prv:shortcut cco:skill ;
prv:shortcut_property cco:characteristic ;
prv:reification_class cco:CognitiveCharacteristic ;
prv:subject_property cco:agent ;
prv:object_property cco:topic .
...